79535200

Date: 2025-03-26 01:16:26
Score: 2.5
Natty:
Report link

I am wondering ,what if I initiate a doubly linked list with a head and tail pointers and I traverse the linked list with one pointer starting from the head and the other pointing from the tail , loop until both pointers meet? I undestand that the time complexity is still O(n). but can't there be a way to use like 4 pointers

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Daniel Kpatamia