Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
The solution contains unnecessary variables `start` and `end`

davemednikov

Nov 10, 2023

These variables are defined in the solution code however they are not used for anything. This is sort of confusing because they follow a similar naming pattern to the start and end properties of each interval. Also it causes the space complexity to be increased.

The solution still passes when those variables are removed.

0

0

Comments
Comments

On this page