## Reverse linked list | Part 2 (Recursive Solution)

Given a singly list it, reverse it using recursion.

Read More Reverse linked list | Part 2 (Recursive Solution)Coding made easy

Given a singly list it, reverse it using recursion.

Read More Reverse linked list | Part 2 (Recursive Solution)Given a singly linked list it, reverse it.

Read More Reverse linked list | Part 1 (Iterative Solution)In the previous two posts (here and here), we have introduced linked list data structure and discussed about various types of linked lists.. We also covered in great detail the various methods to construct a linked list which inserts every new node onto the front of the list. In this post, we will discuss various …

Read More Linked List Implementation | Part 2In previous post, we have introduced linked list data structure and discussed about various types of linked lists. We have also covered the applications of linked list data structure and its pros and cons with respect to arrays. In this post, we will discuss various techniques in detail to construct a singly linked list.

Read More Linked List Implementation | Part 1A linked list is a linear data structure consisting of a group of nodes where each node point to the next node by means of a pointer. Each node is composed of data and a reference (in other words, a link) to the next node in the sequence.

Read More Introduction to Linked ListsGiven a string containing all distinct characters, find all permutations of it.

Read More Find all Permutations of a given stringGiven a text, find all occurrences of a given pattern in it.

Read More Introduction to Pattern MatchingGiven a sorted array of integers and a target value, find out if a target exists in the array or not in O(log(n)) time. If target exists in the array, print index of it.

Read More Binary SearchGiven an array of integers, sort it using quick sort algorithm. Quicksort is an efficient in-place sorting algorithm and can be about two or three times faster than its main competitors, merge sort and heapsort when implemented well.

Read More Quicksort AlgorithmGiven an array of integers, sort it using merge sort algorithm. Merge sort is an efficient, general-purpose sorting algorithm which produces a stable sort, which means that the implementation preserves the input order of equal elements in the sorted output.

Read More Merge Sort AlgorithmGiven an array of integers, sort it using bubble sort algorithm. Bubble sort is a stable, in-place sorting algorithm that is named for the way smaller or larger elements “bubble” to the top of the list. Although the algorithm is simple, it is too slow and impractical for most problems even when compared …

Read More Bubble sort | Iterative & RecursiveGiven an array of integers, sort it using selection sort algorithm. Selection sort is a unstable, in-place sorting algorithm known for its simplicity, and it has performance advantages over more complicated algorithms in certain situations, particularly where auxiliary memory is limited. It can be implemented as a stable sort.

Read More Selection sort | Iterative & RecursiveGiven an array of integers, sort it using insertion sort algorithm. Insertion sort is stable, in-place sorting algorithm that builds the final sorted array one item at a time. It is not very best in terms of performance but it is more efficient in practice than most other simple O(n2) algorithms such as …

Read More Insertion sort | Iterative & RecursiveGiven a source vertex s from set of vertices V in a weighted graph where all its edge weights w(u, v) are non-negative, find the shortest-path weights d(s, v) from given source s for all vertices v present in the graph.

Read More Single-Source Shortest Paths – Dijkstra’s Algorithm