Santosh Kumar MishraMerge SortMerge Sort is a popular and efficient sorting algorithm that uses a divide-and-conquer strategy to sort an array or a list of elements. The…Jan 16, 2023Jan 16, 2023
Santosh Kumar MishraSearch a 2D MatrixYou are given a m x n integer matrix and a target value and we need to find whether the target is in matrix or not. The matrix has the…Dec 10, 2022Dec 10, 2022
Santosh Kumar MishraRotate ListGiven the head of a linked list, rotate the list to the right by k places.Dec 9, 2022Dec 9, 2022
Santosh Kumar Mishra𝐑𝐞𝐯𝐞𝐫𝐬𝐞 𝐚 𝐋𝐢𝐧𝐤𝐞𝐝 𝐋𝐢𝐬𝐭We have given the head of a singly linked list, reversed the list, and returned the reversed list.Nov 14, 2022Nov 14, 2022