Showing 3 of 6 questions
The count-and-say sequence is generated iteratively. Given a starting number, compute the next number in the sequence by describing the previous one.
#1. Count and Say
Compress a given string by replacing consecutive repeating characters with the character followed by the count of repetitions. If the compressed string isn't shorter, return the original.
#2. String Compression
You are given an array where each element represents your maximum jump length at that position. Determine if you can reach the last index starting from the first index.
#3. Jump Game
Page 1 of 1 · 6 total