top of page
Search
Abhinaw Tripathi
Jun 9, 20162 min read
Doubly Linked Lists operation example in core java
Doubly Linked List basic operation example: /** * */ /** * @author Abhinaw.Tripathi * */ class Link { public long dData; public Link...
5 views0 comments
Abhinaw Tripathi
Jun 9, 20161 min read
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...
3 views0 comments
Abhinaw Tripathi
Jun 9, 20161 min read
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...
7 views0 comments
Abhinaw Tripathi
Jun 9, 20161 min read
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) ...
3 views0 comments
Abhinaw Tripathi
Jun 8, 20161 min read
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...
2 views0 comments
Abhinaw Tripathi
Jun 8, 20162 min read
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...
2 views0 comments
Abhinaw Tripathi
Jun 7, 20162 min read
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...
3 views0 comments
Abhinaw Tripathi
Jun 2, 20161 min read
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....
2 views0 comments
Abhinaw Tripathi
May 26, 20161 min read
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...
28 views0 comments
Abhinaw Tripathi
May 26, 20161 min read
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...
1 view0 comments
Abhinaw Tripathi
May 26, 20161 min read
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...
3 views0 comments
Abhinaw Tripathi
May 26, 20161 min read
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...
5 views0 comments
bottom of page