781. Rabbits in Forest

781. Rabbits in ForestDifficulty: MediumTopics: Array, Hash Table, Math, GreedyThere is a forest with an unknown number of rabbits. We asked n rabbits "How many rabbits have the same color as you?" an...
0 Read More

2145. Count the Hidden Sequences

2145. Count the Hidden SequencesDifficulty: MediumTopics: Array, Prefix SumYou are given a 0-indexed array of n integers differences, which describes the differences between each pair of consecutive i...
0 Read More