Redundant Connection (LeetCode 684)
The problem You start with a tree on nodes to , then one extra edge is added…
Tag
7 posts
The problem You start with a tree on nodes to , then one extra edge is added…
The problem You get the of a singly linked list. Some node’s may point back to…
The problem You get the of a singly linked list that may contain a cycle…
The problem Take a positive integer . Replace it with the sum of the squares of…
The problem You get an array of length . Every value is between and , and…
The problem You get a circular array of non-zero integers. Standing on index…
Fast & slow pointers (Floyd’s “tortoise and hare”) is a small, elegant trick…