hoanhan101 / algo

101+ coding interview problems in Go
https://hoanhan.co/posts/101-challenges
MIT License
3.54k stars 374 forks source link

Useless code #2

Closed alistra closed 4 years ago

alistra commented 4 years ago

https://github.com/hoanhan101/algo/blob/64a58f1b486f9de749b5741f669111c19d6e81eb/interviewcake/reverse_string_test.go#L52

Isn’t this part useless? Code below will not run in those cases anyway, as start < end is false

hoanhan101 commented 4 years ago

That's correct. Thanks for the catch! I will update it right now.