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.Oct 16, 20211Oct 16, 20211
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.Oct 16, 2021Oct 16, 2021
Preet KamalJump Game IVGiven an array of integers arr, you are initially positioned at the first index of the array.Oct 15, 2021Oct 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…Oct 15, 2021Oct 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…Oct 15, 2021Oct 15, 2021
Preet KamalJump Game IIGiven an array of non-negative integers nums, you are initially positioned at the first index of the array.Oct 15, 2021Oct 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…Oct 9, 2021Oct 9, 2021
Preet Kamal72. Edit DistanceGiven two strings word1 and word2, return the minimum number of operations required to convert word1 to word2.Oct 2, 2021Oct 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.Oct 2, 2021Oct 2, 2021
Preet KamalLargest Continuous Sequence Zero SumFind the largest continuous sequence in a array which sums to zero.Oct 1, 2021Oct 1, 2021