Detect a cycle in a linked list.How do you do? Yeah, there is this Floyd’s algorithm but do you know how complex it is to explain. It may not be complex if you remember…Oct 24, 2019Oct 24, 2019
Palindrome Partitioning II (Leetcode Problem) — Simple answerI was thinking for some days about this problem if i can solve in O(n). I still think there must be better than O(n²) algorithm, couldn’t…Nov 18, 2018Nov 18, 2018
All Nodes Distance K in Binary TreeI had come across this question in an interview some years back and recently in Leetcode. I recently got interested in solving problems…Nov 17, 2018Nov 17, 2018
Factorial Program for large Numbers100,000! in less than 5 minutes using 8GB RAM machine.Oct 7, 20171Oct 7, 20171
Big O — Calculating the right wayOur simple question is to find nth Fibonacci number and time complexity for the proposed algorithm.Oct 5, 2017Oct 5, 2017
The Backbencher’s psycheAs i am trying to put what makes a person to sit in backbench and of-course there are always exceptions.Sep 26, 2017Sep 26, 2017