-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a068973
commit 3053ec5
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { } |