Manpreet SinghMerge Sort with Java codeMerge sort is an efficient comparison-based sorting algorithm. It works by dividing an array into two halves, recursively sorting each…Jan 11, 2023Jan 11, 2023
Manpreet SinghReverse a LinkedListLinkedList is a famous data structure used to store a collection of elements, similar to an array. However, where and when to use a linked…Aug 22, 2022Aug 22, 2022
Manpreet SinghBubble SortAdding to the list of sorting algorithms that I have shared, here is another famous sorting algorithm that everyone comes across whether…Aug 13, 2022Aug 13, 2022
Manpreet SinghLCS: Longest Common SubsequenceOne of the popular problems that we come across in the interviews or while learning about dynamic programming is the longest common…Jul 13, 2022Jul 13, 2022
Manpreet SinghInsertion SortInsertion sort is one of the first few algorithms that you would come across when learning about sorting algorithms. It is an easy to…Jul 5, 2022Jul 5, 2022
Manpreet SinghJava: Merge 2 sorted Linked ListsJava programming language provides us with a variety of inbuilt data structures that can be leveraged to perform different data operations…Apr 12, 2022Apr 12, 2022
Manpreet SinghInterview Question: K most frequent elements (Java)A very common interview question that you might already have encountered or will encounter in the near future is to find the K most…Mar 5, 2022Mar 5, 2022
Manpreet SinghBFS: Breadth First Search (Java)BFS or Breadth first search is a graph algorithm where you traverse the graph or tree horizontally, going through each node, on at a time.Feb 19, 2022Feb 19, 2022