Showing 3 of 6 questions
Given a word and a character, reverse the prefix of the word up to the first occurrence of that character. If the character is not found, return the original word.
#1. Reverse Prefix of Word
Given a grid representing land and water, count the number of distinct islands. An island is formed by connected land cells.
#2. Number of Islands
Design a data structure that tracks string frequencies. Your structure must efficiently support increasing or decreasing a string's count, and finding the strings with the highest and lowest counts.
#3. All O`one Data Structure
Page 1 of 1 · 6 total