Skip to main content

All Questions

Filter by
Sorted by
Tagged with
4 votes
2 answers
530 views

Simple Java program to aggregate lines of a text file

I have just written a small application to aggregate the lines of a text file, for example to group the lines according to the frequency of IP addresses in a log file. Would the code be sufficiently ...
Tobias Grothe's user avatar
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)....
Michu93's user avatar
  • 145
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 ...
Vivek kumar's user avatar
2 votes
0 answers
69 views

Generic Graph Traverser

I have built this Generic Graph traverser, I have this implemented with DFS, I feel it will work equally fine with BFS too. What do you think of this implementation? I want help in reviewing the <...
Karthik's user avatar
  • 121
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 ...
Uday Kiran's user avatar
4 votes
1 answer
6k views

Basic Internet banking application

I programmed in Java before, but I feel that I lack the "true way" of programming (OOP concepts, design, algorithm), so I started to learn all of these but I need your opinions and suggestions so I ...
Alexandru Cosmin's user avatar
2 votes
0 answers
250 views

Using the Template Design Pattern to reduce code duplication between two algorithms

I have made a Skyline query solver which for now can solve the query with two different algorithms. The first is Block-nested loop (BNL) and the second is Sort filter skyline (SFS). The two are ...
Aki K's user avatar
  • 1,329
6 votes
5 answers
865 views

DP solution to min triangle path

I am studying for interviews for various companies. I wrote a solution to this problem, but if an experience programmer looks at it I am sure there are certain areas the code can be made in to a more ...
Mark Isenberg's user avatar
4 votes
2 answers
2k views

Move object by one up or down algorithm in a custom order

Basically, I did an object (using hibernate) with a field called sorting_order. This field needs to be unique and I wish to swap two object by one. So one element has to be after or before the current ...
fneron's user avatar
  • 251
0 votes
1 answer
175 views

Redesign a module to be generic

I am having trouble designing a module, can anybody help me? Because it will be hard to maintain this kind of module, I also think that this can test my skill of design pattern usage. Requirement This ...
VIckyb's user avatar
  • 675