All Questions
24 questions
2
votes
0
answers
43
views
JavaScript Linter in Java
I wrote a simple Linter that checks for matching opening and closing braces for one line of JavaScript. It utilizes a stack to store opening braces found in the line, then compares the first closing ...
2
votes
2
answers
197
views
Parking places design
I got a question:
Design a parking system. There are 3 types of parking spaces: big, medium and small.
Implement ParkingSystem class(int big, int medium, int small)....
2
votes
0
answers
185
views
Design a parking lot [closed]
I have tried to design the parking lot problem. Here is the problem statement.
Design a parking lot with multiple floors where customers can park
their cars. Each parking floor will have many parking ...
2
votes
2
answers
100
views
(Java) Read .txt and organize activities for hours / minutes
Doubts in logic to generate the output file according to the example
I need that even if he reaches the total_min <720 condition he continues to travel the lines. 720 is the total number of minutes ...
3
votes
1
answer
464
views
How to design shopping cart Java application which satisfy modular, extensible and maintainable
I am new in Application Design. I have use-case as below
As per the above story I have implemented code as below without any Modularity, Extensible and Maintainable. Could someone share the thoughts ...
4
votes
1
answer
343
views
Object-Oriented Breadth-First Search Implementation
My goal is to write a GUI application where a user can create a maze and select an algorithm. The passage of the algorithm from a selected start and end point should be visualized.
The following ...
3
votes
1
answer
1k
views
Word Chain Implementation
The idea originaes from the CodeKata19, find a word chain for two words of a wordlist
example 1 turning lead into gold:
...
3
votes
2
answers
472
views
Java console banking
So I wanted to write a basic console based banking app to practice my skills. It makes use of BigDecimal to ensure accuracy. Here is the MVP I plan to enhance it with all banking features soon. I ...
1
vote
1
answer
2k
views
Deque implementation with array in Java
I'm trying to implement a deque data structure with an iterator in Java using array. Please help to review and point out things that I can improve on.
...
1
vote
1
answer
631
views
Website Spell Checker in Java - follow-up
After receiving some great feedback on my original program, I tried to implement everything that was shared and I just want to see if there's anything else that I can change to make my program clean ...
2
votes
1
answer
613
views
Jesse and Cookies
Jesse loves cookies. He wants the sweetness of all his cookies to be greater than value K. To do this, Jesse repeatedly mixes two cookies with the least sweetness. ...
3
votes
1
answer
3k
views
Simple Calculator in Java and Swing
I'm new at this and I'm almost done with learning basic Java. I made this just to see if I could do it. I just want to know if there's anything I can do to make it better.
...
1
vote
1
answer
125
views
Finding pair in an array with the OO approach
Description:
I am trying to solve algorithmic problems mixing them with Object oriented design as part of my interview preparation. So, the question is given an array of integers find the pair of ...
6
votes
4
answers
683
views
Count number of nodes in a binary tree the OO way
I am trying to write a simplify the algorithm of finding the number of nodes in a binary tree by using good object oriented design. I have been into good OOP style recently and found it really ...
3
votes
1
answer
5k
views
A*, Uniform cost and Greedy Best first search implementations
I am writing the code for A*, Uniform cost search and Greedy best first search algorithms in Java. I have finished the code which is working fine but I have used a bit different design strategy while ...