All Questions
8 questions
2
votes
1
answer
144
views
Print the App Name Using Latest Version
I am trying to solve a problem, where we are given an app name, service name, and version number of an api. We need to print the name of app, which is using the latest version for most of the service.
...
5
votes
2
answers
436
views
Find maximum value of Point represented by an Array of values for each coordinate
Suppose there is an array A = {3,2,5}, then points for this array correspond to indexes (i,j) where ...
1
vote
3
answers
152
views
Diffing two lists of business objects
dataListOne and dataListTwo will be full of BO objects (around 4000 - 5000).
Lets say ...
6
votes
3
answers
9k
views
Find a prefix of a query string in the values of a Map
I have a hash map which maps to some strings which serve as prefixes and are of small length (max length is 6):
...
6
votes
1
answer
1k
views
Efficient top k words using MultiMap (Google Guava ext lib JAR)
Basic algorithm:
Open document/huge text file
Use Map and List to separate the words. \$O(K)\$ time complexity (TC) considering ...
11
votes
4
answers
6k
views
Collection with both Set and List interface
Here's something I wrote a while ago. I needed a collection that was ordered, but also guaranteed duplicates did not occur. So I made a class with both Set and List interfaces. It seems to work ...
5
votes
3
answers
486
views
Finding the closest value in a collection in a game-server plugin implementation
I have an array of a instances of an enum type. A random double variable is initialized with a value between 0.... to 1, and should be used to get the closest value'...
1
vote
1
answer
321
views
Displaying plotted data in serpentine order
I have to display some set of:
Data in serpentine order. In an experiment there are replication, range, and plot.
Replications contains range a plot. A range contains a plot.
If there are 2 ...