5 votes
Accepted

Blackjack game in C++

General Observations Playing is fun. There one upgrade could be allowing the player to double down their bet. The program could use some error handling, when the program prompted me with "cash ...
user avatar
  • 18.2k
2 votes

Simple non balancing indexed binary search tree

Use unique_ptr for root, left, and right Because each ...
user avatar
  • 1,141
2 votes

Passwords with C++ Console

Overall A good first go. I have some minor points below. But the main thing I think you need to read up on is passing parameters by reference. ...
user avatar
  • 91.5k
2 votes
Accepted

Three efficient JavaScript functions that converge to pi extremely fast

In terms of more precision, I can't really help there... But, in terms of general code styling and performance, I'd be happy to give some pointers. This is good code, but slightly inconsistent (which ...
user avatar
1 vote

Show/hide depending on ID and Class

We can be a lot shorter easily with a bunch of css selector and js string manipulation and for optimisation purpose we will use JQuery visible selector: Starts with selector: ...
user avatar
  • 561
1 vote

Simple non balancing indexed binary search tree

More horizontal spacing please. Give your operators some breathing space. It is very hard to read things like root==nullptr||i<0||i>=root->size. BTW, I ...
user avatar
  • 53k
1 vote

Sidenav menu that appears when click on button

From a short review; x is not an evocative name, JavaScript is lowerCamelCase so mobile_menu -> ...
user avatar
  • 32.4k
1 vote
Accepted

Python CLI math game

I want to know if there are ways I don't know about to make it even shorter. Shorter isn't always better, and this is not code golf. Strive for good code, and the short code will come naturally as a ...
user avatar
  • 47.9k
1 vote

Clojure Prime Numbers from 1 to 1000

Note: It has been a long time since I actively played with Clojure, so I will mostly refrain from writing and/or reviewing any actual code in my answer and will only provide a high-level review. ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible