menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Productivity News

>

This week experience
source image

Dev

1w

read

118

img
dot

Image Credit: Dev

This week experience

  • This week experience: My second week in practicing data structure problems.
  • Solved three linked list related problems: Intersection of two linked lists, Remove nth node from end of list, and Reverse nodes in k-group.
  • Intersection of two linked lists can be solved using two pointers to determine if they meet at a common node.
  • Remove nth node from end of list can be achieved by using two pointers, fast and slow, to find the node just before the nth node.
  • Reverse nodes in k-group involves creating a dummy node and iterating to find the kth node, then reversing the linked list in groups.
  • Experience and practice are key in improving problem-solving skills.

Read Full Article

like

7 Likes

For uninterrupted reading, download the app