New answers tagged

5 votes
Accepted

Rock, Paper, Scissors game in object-oriented Python

Welcome to codereview! First of all: that was quite good already! Your use of classes was appropriate making Hand an Enum was appropriate! You tried to make your ...
  • 387
3 votes

Generating random number of randomly sized Squares/Rectangles using numpy arrays

Welcome to Code Review. I'm afraid I don't have time for as detailed a review as I'd like as I have to go to work. But I wanted to mention one thing about idiomatic library use. When you use a big ...
  • 5,751
2 votes
Accepted

Linked List implemented in C++

Defeating namespacing Don't using namespace std; ever! It pollutes your local namespace. If the standard ever added std::Node, ...
  • 32.1k
2 votes
Accepted

Library system in Java with OOP

It is not a good idea to hold a map of books to booleans in this case. Why would we want to store a false when we can just store nothing at all? Use a set instead. ...
  • 53.1k
2 votes
Accepted

Segmentation of list to minimize the largest sum

One could approach this from the goal: What is the business of a Segmentation instance, what are its business methods? You tagged ...
  • 4,926
1 vote

ArrayPractice with shifting arrays, generate new arrays populated with even numbers, and more

This can make use of the Stream API, and is better-expressed that way in some (not all) of your methods. For multi-line comments like ...
  • 53.1k
3 votes

Simplify creating result objects from two Map<Boolean, List<Map<String, Object>>

Your INVALID_KEY and DUPLICATE_KEY are never used, so delete them and reduce that enum to a <...
  • 53.1k

Top 50 recent answers are included