Questions tagged [beginner]

Add this tag to your question to indicate that you are new to the language of your code. This will often be taken into consideration by reviewers when assessing your code.

Filter by
Sorted by
Tagged with
6
votes
1answer
69 views

Vampiric text-based adventure game

Here is my vampire based text adventure game. I recently started learning Python and Googled for some good projects to practice with. I wrote all this code myself after checking out some examples on ...
3
votes
0answers
40 views

Lua Datastore Code to be used by beginners

Context: This code is going to be used to demonstrate how to use Datastores and pcall with lua on Roblox. What does the code do and what are you not satisfied with? I feel like it's a bit too wafelly ...
3
votes
1answer
43 views

7-Day Agenda in Python

This is a personal project of mine. I made a simple seven day agenda program in Python that stores tasks as a string, saves it into a .dat file, and returns that task when you input a day of the week....
4
votes
2answers
83 views

Complex Calculator in C

I am Relatively new to C, and did a calculator for my first year project. Could you guys, rate the calculator's efficiency and suggest some improvements? Link to the previous version of this ...
6
votes
3answers
125 views

First project in Javascript: NearestNeighbor Calculator

I just finished my first project in Javascript. It takes an array of locations (with coordinates on position 6 and 7) as Input, then the first location is checked against all other locations. After ...
5
votes
1answer
50 views

Hailstone Sequence in NASM

For practice, I wrote some NASM code that prints out the hailstone sequence of a (unfortunately, hardcoded) number. This is by far the most complex code I've ever written in NASM. I'd like advice on ...
1
vote
2answers
77 views

LeetCode 913: Cat and Mouse

I'm posting my code for a LeetCode problem. If you'd like to review, please do so. Thank you for your time! Problem A game on an undirected graph is played by two players, Mouse and Cat, who ...
6
votes
1answer
74 views

First-time F#: A simple Rock Paper Scissors

This is my first F# program. It's a simple Rock-Paper-Scissors implementation. I am looking for feedback of all sorts, e.g. the choice of types (e.g. List vs Array), whether there are parts that could ...
1
vote
1answer
42 views

LeetCode 952: Largest Component Size by Common Factor

I'm posting my code for a LeetCode problem copied here. If you would like to review, please do so. Thank you for your time! Problem Given a non-empty array of unique positive integers A, consider the ...
5
votes
2answers
94 views

Pin and Password Generator JAVA

I am reaching my one year on programming and decided to create a simple pin and password program to better help me understand arrays. As far as coding standards, best practices, and functionality what ...
3
votes
1answer
48 views

Simple blackjack game using OOP

I've decided to learn python as my main language and after watching some tutorial on youtube I decided to write this blackjack game using OOP. Im sure it has a lot of beginner mistakes and might be ...
7
votes
3answers
117 views

Stopwatch interface OOP (Vanilla JS)

I'm learning OOP and the first exercise of the course was to made a Stopwatch class. I did it really fast and decided to make an interface for this little app. I created the interface. Basically I ...
0
votes
2answers
77 views

LeetCode 126: Word Ladder II

I'm posting my code for a LeetCode problem copied here. If you would like to review, please do so. Thank you for your time! Problem Given two words (begin and <...
1
vote
0answers
21 views

RPG Library Design

The RPG Library (the ERD-model here) is used to create Prototypes of Monsters and Items. These prototypes will later be used to create Instance in my RPGGame. I do not have much (de facto: none) ...
1
vote
1answer
43 views

LeetCode 149: Max Points on a Line

I'm posting my code for a LeetCode problem copied here. If you would like to review, please do so. Thank you for your time! Problem Given n points on a 2D plane, ...
2
votes
1answer
48 views

LeetCode 1463: Cherry Pickup II

I'm posting my code for a LeetCode problem copied here. If you would like to review, please do so. Thank you for your time! Problem Given a rows x cols matrix grid ...
2
votes
0answers
36 views

Vuejs Dynamic inputs and displaying data

I am accepting dynamic input from the user if they have any i.e - Children/Siblings/Previous Employement etc through Vue Components. A form is created and they input their data which is validated and ...
1
vote
1answer
41 views

Simple tip calculator code

I have built a super simple tip calculator to help me try and get a hold of the javascript knowledge I've gained. I just wanted to see if there was any feedback I could get for it... Basic ...
-1
votes
0answers
30 views

Created a basic registration page

My first time writing javascript. I wrote some horrific code for a registration page, and refactored it as above. Would this be considered good code? I'd welcome any criticism. ...
1
vote
1answer
74 views

Python - Password Generator & Strength Checker

I am a beginner in Python and I have attempted to create a small script/program which allows the user to do the following: Generate a single random password Generate a number of passwords specified ...
5
votes
0answers
69 views

LeetCode 37: Sudoku Solver

I'm posting my code for a LeetCode problem. If you'd like to review, please do so. Thank you for your time! Problem Write a program to solve a Sudoku puzzle by filling the empty cells. A sudoku ...
4
votes
1answer
68 views

LeetCode 924: Minimize Malware Spread

I'm posting my code for a LeetCode problem copied here. If you would like to review, please do so. Thank you for your time! Problem In a network of nodes, each node i is directly connected to another ...
2
votes
1answer
25 views

Database playground

This is my very first interaction with databases. The goal is to setup a safe playground on an Arch box to create tables and make queries. I want to learn the basics without risking ...
2
votes
1answer
101 views

Java-like listeners in C++

I'm coming from languages like Java and Python and I'm completely new to C++. Therefore, my knowledge is somewhat limited. My goal is to implement a listener in C++ myself and I came up with a ...
3
votes
1answer
34 views

Should I unpack a Maybe with maybe or pass value around

I'm beginning (for the third time in 5 years) to learn Haskell and decided to do a "More or less" console game (game pick a random number, you then have to guess which). First the code, then ...
1
vote
1answer
76 views

Ruby calculator for a grocery store

I have been working on this code to meet the best OOP standards for production. The code is working but I wish to make this a more efficient code. Could someone help me out here to make this efficient ...
5
votes
2answers
96 views

Removing OO style coding from Haskell

Having coded in Objected-Oriented style my entire programming career, it's hard to adapt to functional style fully. I implemented a simple Hangman game: ...
2
votes
2answers
91 views

LeetCode 273: Integer to English Words

I'm posting my code for a LeetCode problem copied here. If you would like to review, please do so. Thank you for your time! Problem Convert a non-negative integer to its English words representation. ...
2
votes
1answer
48 views

LeetCode 639: Decode Ways II

I'm posting my code for a LeetCode problem copied here. If you would like to review, please do so. Thank you for your time! Problem A message containing letters from A-Z is being encoded to numbers ...
2
votes
2answers
68 views

LeetCode 862: Shortest Subarray with Sum at Least K

I'm posting my code for a LeetCode problem copied here. If you would like to review, please do so. Thank you for your time! Problem Return the length of the shortest, non-empty, contiguous subarray ...
4
votes
0answers
23 views

Printing a number from memory in assembly

I'm trying to work up to being able to print the hailstone sequence in assembly. To do that though, I first needed to learn how to actually print a number out using the ...
6
votes
1answer
58 views

Chemical reactor with UV light project in python

Introduction I'm new to python and made this code which computes the decay of sulphur dioxide (SO2) pollutant in a chemical reactor by ozone (O3) when it is hit by UV light. Code description Short ...
5
votes
1answer
54 views

A simple reactjs form to calculate the liquidity ratio, daily cost of running, and days cash on hand

This is just a very simple form that tells you the liquidity ratio, daily cost of running, and days cash on hand of a company, given their current assets, current liabilities, and total expense of the ...
4
votes
1answer
56 views

LeetCode 894: All Possible Full Binary Trees

I'm posting my code for a LeetCode problem copied here. If you would like to review, please do so. Thank you for your time! Problem A full binary tree is a binary tree where each node has exactly 0 ...
1
vote
1answer
43 views

LeetCode 410: Split Array Largest Sum

I'm posting my code for a LeetCode problem copied here. If you would like to review, please do so. Thank you for your time! Problem Given an array which consists of non-negative integers and an ...
3
votes
1answer
32 views

Simple program to print from a buffer until a newline is found

For practice, I wrote a small program that goes through a string in the data section (although, it could be easily adapted to take user input), and print out the characters in the string until it ...
5
votes
0answers
47 views

LeetCode 284: Peeking Iterator

I'm posting my code for a LeetCode problem. If you'd like to review, please do so. Thank you for your time! Problem Given an Iterator class interface with methods: ...
5
votes
3answers
107 views

Hotel booking with multiple options. Improvement through subclasses?

The code below runs perfectly fine as I want it to. I'd like to create more subclasses to get a better overview over the whole code. Can I place the setter and getter as well as the methods into the ...
1
vote
0answers
43 views

LeetCode 212: Word Search II

I'm posting my code for a LeetCode problem. If you'd like to review, please do so. Thank you for your time! Problem Given a 2D board and a list of words from the dictionary, find all words in the ...
0
votes
1answer
35 views

LeetCode 652: Find Duplicate Subtrees

I'm posting my code for a LeetCode problem copied here. If you have time and would like to review, please do so. Thank you! Problem Given a binary tree, return all duplicate subtrees. For each kind ...
4
votes
1answer
35 views

Bubble Sort in Forth (for strings)

I wrote the following Forth code for sorting a string with the Bubble Sort method. It looks nice to my eyes, but I'd like your experienced opinion and any comments about the code you might have. In ...
2
votes
1answer
80 views

Finding the type of number entered by the user

I am making a fractions calculator that can calculate fractions, whole numbers and mixed fractions. So there is a String fraction, which is the input. Also, the user will enter the fraction in a ...
2
votes
2answers
62 views

Rock Paper Scissors Lizard Spock in C#

A few days ago I made a "Rock Paper Scissors" game in C# and got my code reviewed on this site. Someone suggested writing a "Rock Paper Scissors Lizard Spock" game and I did. I ...
4
votes
1answer
84 views

Solution to the n-queens puzzle in Ruby

I started studying programming in January of this year and found a free online course that teaches Ruby. Below is my solution to the Eight Queens problem. I wanted my solution to be able to return any ...
4
votes
2answers
103 views

LeetCode 1032: Stream of Characters

I'm posting my code for a LeetCode problem copied here. If you have time and would like to review, please do so. Thank you! Problem Implement the StreamChecker ...
15
votes
4answers
2k views

Calculator application

I am new to C programming, I previously studied Python. Below is my year one project in C. My project's name is "Advanced Calculator", it's a menu-driven calculator application with several ...
1
vote
1answer
59 views

Rock paper scissor game in Python

Hello am a new to Python and my programming concept is catching up to me. I just created my first ever project. I did not look else where for an answer, and it took me 6 hours to write. How can I ...
10
votes
3answers
949 views

Convert Roman Numerals to integers

I am a beginner, and so I have decided to program a Roman Numeral to Arabic integer converter. I came up with all of the code on my own. There are differing opinions about what constitutes 'proper' ...
4
votes
1answer
58 views

Calculator console app in Java

Here is my source code for my very first app in Java. I am completely new to the language; any help and criticism is welcomed! ...
6
votes
0answers
56 views

Using get_dummies to create a Simple Recommender System - Cold Start

Question: was using get_dummies a good choice for converting categorical strings? I used get_dummies to convert categorical ...