Easy
LABLinked List Cycle
Given values and pos where the tail points back, return true if the encoded linked list has a cycle.
EXAMPLES
Example 1
Input
{
"values": [
3,
2,
0,
-4
],
"pos": 1
}
Output
trueFUNCTION SHAPE
values: intArraypos: int→bool