Mark As Completed Discussion

Build your intuition. Click the correct answer from the options.

The proposed solution iterates through the linked list thrice. Can you solve the problem in two iterations? If so, how?

Click the option that best answers the question.

  • Using a heap
  • By shifting pointers
  • Using hashmap
  • Cannot be solved in two iterations