All Questions
22 questions
1
vote
2
answers
108
views
simple Text Table utility
A small utility to print data in an ascii table
TextTable
...
2
votes
1
answer
587
views
Basic Ticket booking code with Unit tests
I am going to run a session for a few other developers who are new to Junit, mocking, etc.
I have designed a very simple application with classes and tests to demonstrate how to do unit testing. ...
0
votes
1
answer
425
views
Unit tests for User class with JUnit 5
This is a follow-up question for Android app class serialization. Some problems have been mentioned in forsvarir's answer. Then, I am following JUnit 5 User Guide to redesign the test cases for ...
2
votes
1
answer
106
views
Android app class serialization
I am attempting to build an Android APP with the custom serializable class User. The public method Save is to save class ...
3
votes
2
answers
313
views
Replace words from a file with words from a dictionary based file
I'm working on a coding challenge that tasks me with taking a file with a dictionary, reading from it, and then replacing the matching words from the input file with what is found in the dictionary.
I ...
5
votes
3
answers
3k
views
Mars Rover technical Challenge in OOP
I am trying to practice OOP and TDD concepts,
I have written this code for Mars rover challenge from
marsrovertechchallenge .
Can you please review my code from my GitHub repository?
Or you can ...
4
votes
3
answers
101
views
Print the first, last, and in-between integers of a range
Given our spec from Code Golf:
Given two integers, output the two integers, and then the range between them.
The order of the range must be the same as the input.
Examples:
...
6
votes
3
answers
3k
views
Reverse Polish Notation calculator with unit tests
I had an interview with a global company yesterday. They had given me a programming assignment. I shared my screen and I must have finished the task in 1.5 hours.
Task was programming Reverse Polish ...
7
votes
2
answers
331
views
Object-oriented Quarantine implementation
I am a newbie in thinking object oriented solution for a problem, so I am trying to improve. I have tried to implement a quarantine assignment.
Here is a requirement with unit test cases. I am trying ...
5
votes
5
answers
1k
views
Taxi Meter App Business Logic Using TDD
The following problem has been written using TDD. Please review the following:
Unit tests
OOP
Design Principles (SOLID)
Cleanliness and naming
Anything that could make the program better.
Problem ...
3
votes
1
answer
175
views
Simple Wizard Goblin User Story Test Driven Development
I have written this to practice Test Driven Development. I would like to know if the process is right and how it could be improved.
Problem Statement : A wizard can cast spell on goblin and make his ...
5
votes
2
answers
6k
views
Mars Rover Simulator
Problem Statement
Consider a rover and a plateau of size nxn. The rover takes three type of instructions L,R and M. 'L' and 'R' rotate the rover in the left and right direction. 'M' moves the ...
2
votes
1
answer
885
views
Raindrops in Java
Problem Statement:
Write a program that converts a number to a string, the contents of
which depends on the number's prime factors.
If the number contains 3 as a prime factor, output '...
4
votes
3
answers
2k
views
Binary string to decimal conversion
Problem Statement:
Write a program that will convert a binary number, represented as a
string (e.g. '101010'), to its decimal equivalent using first
principles
Implement binary to decimal ...
5
votes
1
answer
474
views
Let's revisit Roman numbers
Problem Statement:
Write a function to convert from normal numbers to Roman Numerals:
e.g.
1 => I
10 => X
7 => VII
Code:
...