Riot Games Interview Questions
Showing 5 questions
Teemo attacks an enemy, applying poison for a certain duration. Given the times of Teemo's attacks, calculate the total time the enemy is poisoned.
#1. Teemo Attacking
Fill in the empty cells of a partially completed Sudoku grid according to the game's rules. The goal is to complete the grid so that each row, column, and 3x3 subgrid contains all digits from 1 to 9 without repetition.
#2. Sudoku Solver
Determine if a given 9x9 Sudoku board is valid. Check if each row, column, and 3x3 subgrid contains the digits 1-9 without repetition.
#3. Valid Sudoku
Compress a string by replacing consecutive repeating characters with the character and its count. Optimize the compression by potentially combining adjacent compressed segments if it results in a shorter string.
#4. Better Compression of String
Simulate the Game of Life, updating the state of a board based on the rules of cell survival and death in each generation. Modify the board in place to represent the next generation.
#5. Game of Life