Skip to content

Commit

Permalink
Add riot games #3
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnyoodles committed Jun 20, 2017
1 parent a068973 commit 3053ec5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions java/interview/largest-killstreak.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* @Company Riot Games
*
* Given a list of kill events where a kill event is defined as [ timestamp, killerId, victimId ].
* Return a list of the users who have the largest killstreak. A killstreak is defined as a sequence
* of kills where each kill is no more than 15 units of time from the next kill.
*
* If there is a tie of users with the largest killstreak, then return an array of them.
* The return format should be a list of all the users with the largest killstreak in the format of an array.
* [ killerId, number of kills ]
*
* Note: the list of kills are not in any specific order.
*/
public int[][] largestKillstreak(int[][] kills) { }

/**
* Part 2 expands on the definition of killstreak.
* Killstreak is now defined as a sequence of kills where each kill is no more than 15 units of time from the next
* as well as not dying from the beginning of the sequence to the end of the sequence.
*
* This is more commonly the actual definition of a multi killstreak found in games.
*/
public int[][] largestKillstreak(int[][] kills) { }

0 comments on commit 3053ec5

Please sign in to comment.