top of page
Search
Doubly Linked Lists operation example in core java
Doubly Linked List basic operation example: /** * */ /** * @author Abhinaw.Tripathi * */ class Link { public long dData; public Link...

Abhinaw Tripathi
Jun 9, 20162 min read
5 views
0 comments
Queue implemented by a Linked List in core-java
Queue implemented by a Linked List: /** * @author Abhinaw.Tripathi * */ class Link { public long dData; public Link next; public...

Abhinaw Tripathi
Jun 9, 20161 min read
3 views
0 comments
A Stack Implemented by a Linked List in core-java
Stack implementation by a Linked List: /** * @author Abhinaw.Tripathi * */ class Link { public long dData; public Link next; public...

Abhinaw Tripathi
Jun 9, 20161 min read
7 views
0 comments
Sorted Link List example in core-java
Sorted Linked List: /** * @author Abhinaw.Tripathi * */ class Link { public long dData; public Link next; public Link(long dd) ...

Abhinaw Tripathi
Jun 9, 20161 min read
3 views
0 comments
Double-Ended Lists in core-java
Double-Ended List A double-ended lists is similar to an ordinary linked list but it has one additional feature that a reference to the...

Abhinaw Tripathi
Jun 8, 20161 min read
2 views
0 comments
Continuing on Linked Lists(Finding and Deleting Specified Links)
Finding and Deleting Specified Links: Search a linked list for a data item with a specified key value and to delete an item with a...

Abhinaw Tripathi
Jun 8, 20162 min read
2 views
0 comments
Linked List Discussion in Core-Java
Linked-Lists : As we know that Arrays had certain disadvantages as data storage structures .in an unordered array ,searching is...

Abhinaw Tripathi
Jun 7, 20162 min read
3 views
0 comments
Given a circular linked list,implement an algorithm which returns the node at the beginning of the l
Solution Approach: Create two pointers ,Fast Pointer and Slow Pointer. Move Fast Pointer at a rate of 2 and slow pointer at rate of 1....

Abhinaw Tripathi
Jun 2, 20161 min read
2 views
0 comments
Write code to partition a linked list around a value x, such that all nodes less than x come before
Approach: We iterate through the linked list ,inserting elements into our before list or our after list.Once we reach the end of the...

Abhinaw Tripathi
May 26, 20161 min read
28 views
0 comments
Delete a node in the middle of a singly linked list,given only access to that node.
Very simple problem but there is only issue with the solution is if the node to be deleted is the last node in the linked list. public...

Abhinaw Tripathi
May 26, 20161 min read
1 view
0 comments
Write an algorithm to find the k'th to last element of a singly linked list.
We can approach this problem in two ways one using recursive way and other using non recursive way.if you will use recursive way then its...

Abhinaw Tripathi
May 26, 20161 min read
3 views
0 comments
Linked List Programming Question and its Best Solution by Abhinaw
Question: Write code to remove duplicates from an unsorted linked list.if temporary buffer is not allowed. Solution: In order to solve...

Abhinaw Tripathi
May 26, 20161 min read
5 views
0 comments
bottom of page