All Questions
5 questions
6votes
1answer
1kviews
Piece class as part of implementation for the Tetris game
Here is my Piece class as part of implementation for the Tetris game. If possible, I want my code to face the same level of scrutiny as actual production code. ...
3votes
4answers
709views
Unit testing for concatenating two int arrays
Using Java 1.8, I created the following implementation to concat two int arrays: ...
0votes
1answer
135views
A Java subclass of ArrayList that supports rotation in constant time - follow-up
(See the previous (and initial) iteration.) Compared to the previous iteration, I have added more methods that maintain the invariant required for constant time rotations, such as bulk add/remove, ...
7votes
3answers
713views
A Java subclass of ArrayList that supports rotation in constant time
(See the next iteration.) I have subclassed java.util.ArrayList in order to be able to "rotate" it in constant time simply by moving a finger index. See what I ...
4votes
1answer
10kviews
Ranking and sorting on Array/List
My apology, I am quite new to posting a question in this forum. I had a task where I was supposed to write a solution to sort entries(Name, score - in an array/list) in order of score and generate ...