Preet KamalMinimum Appends for Palindrome!Given a string s we need to tell minimum characters to be appended (insertion at end) to make a string palindrome.3 min read·Oct 16, 2021--1--1
Preet KamalMinimum Deletions to Make Character Frequencies UniqueA string s is called good if there are no two different characters in s that have the same frequency.2 min read·Oct 16, 2021----
Preet KamalJump Game IVGiven an array of integers arr, you are initially positioned at the first index of the array.3 min read·Oct 15, 2021----
Preet KamalJump Game VIIYou are given a 0-indexed binary string s and two integers minJump and maxJump. In the beginning, you are standing at index 0, which is…2 min read·Oct 15, 2021----
Preet KamalJump Game IIIGiven an array of non-negative integers arr, you are initially positioned at start index of the array. When you are at index i, you can…2 min read·Oct 15, 2021----
Preet KamalJump Game IIGiven an array of non-negative integers nums, you are initially positioned at the first index of the array.2 min read·Oct 15, 2021----
Preet KamalKnuth Morris Pratt Algorithm for pattern matching in linear timeOne of the most elegant and impressive string algorithm which I have seen is KMP algorithm. Its beautiful. The idea of matching a pattern…3 min read·Oct 9, 2021----
Preet Kamal72. Edit DistanceGiven two strings word1 and word2, return the minimum number of operations required to convert word1 to word2.4 min read·Oct 2, 2021----
Preet KamalLongest Common SubsequenceGiven two strings text1 and text2, return the length of their longest common subsequence. If there is no common subsequence, return 0.3 min read·Oct 2, 2021----
Preet KamalLargest Continuous Sequence Zero SumFind the largest continuous sequence in a array which sums to zero.2 min read·Oct 1, 2021----