Google codejam 2020 solution to nesting depth problem x Problem Given a string of digits S, insert a minimum number of opening and closing parentheses into it such that...
Google codejam 2020 solution to vestigium problem x Problem statement Vestigium means “trace” in Latin. In this problem we work with Latin squares and matrix traces. The trace of...
Some of the interesting ways to reverse a linked list in place x In this blog, I will cover some approaches using which, you can reverse linked list in place. Consider we have a...
Algorithm for finding and replacing a pattern in a given string or paragraph x Continuation of my previous blog Demo for the above code is here Please comment if you have any doubts in the...
Algorithm to find substring within a string or a paragraph x Often we come across interview questions like , find all occurances of a given substring within a string. What are the...