Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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. ...
vikash srivastava's user avatar
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 ...
ripudamanrs's user avatar
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 ...
Koray Tugay's user avatar
  • 1,547
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): ...
Jim's user avatar
  • 239
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 ...
JustVirtually's user avatar
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 ...
markspace's user avatar
  • 522
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'...
user3123545's user avatar
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 ...
VIckyb's user avatar
  • 665