Shivam Tyagi

Shivam Tyagi @shivam_tyagi

Joined:
Aug 5, 2024

Shivam Tyagi
articles - 4 total

How to find intersection of two singly linked lists in a simple and optimal way in java

To find the intersection of two singly linked lists in a simple and optimal way, you can use the...

Learn More 0 0Aug 13 '24

Merge two sorted linked lists in java simple and optimal way

Merging two sorted linked lists is a common problem that can be solved efficiently. Here's how you...

Learn More 0 0Aug 12 '24

Uses of @spy annotation in junit testing

The @Spy annotation in JUnit, particularly when used with Mockito, is applied to create a spy on an...

Learn More 0 0Aug 12 '24

How to reverse a linked list in simple and optimal way in java

To reverse a linked list in Java, you can use an iterative approach which is both simple and optimal...

Learn More 0 0Aug 12 '24