Good to see an actual change vs. SWEs that suck at LeetCode-style questions complain about these algorithmic questions... It's ironic considering how MSFT pioneered the original brain teasers/problem solving questions.
This is a pretty standard linked list question (called cycle detection) – one of the easiest questions on LeetCode. You can use the two-pointer method to just detect if there's a cycle. If you want to find the node that…
Good to see an actual change vs. SWEs that suck at LeetCode-style questions complain about these algorithmic questions... It's ironic considering how MSFT pioneered the original brain teasers/problem solving questions.
This is a pretty standard linked list question (called cycle detection) – one of the easiest questions on LeetCode. You can use the two-pointer method to just detect if there's a cycle. If you want to find the node that…