Tags » String

One Edit Distance - leetcode

Question:
Given two string, check to see if they are 1 edit distance apart from each other.

Thought:
Approach 1, we can use DP to see if they are 1 distance away, solution will be the same as Edit distance. 195 more words

String

Charlie.....NOOOOOOOO!!!!!!

Sometimes cats can be TOO Helpful. Especially with a new macrame project. All that lovely string that needs to be tested and re-arranged. Lets unravel everything–YEAH! 23 more words

String replaceAll in JS

Replace All is not a function that is by default available in JS

Here is one very simple and fast way to achieve the same… 28 more words

The importance of knowing your bowstrings!

Archers are very specific about the bow they use, the sites they mount and the release they settle on, but often overlooked is the actual bow string.   546 more words

Wawang Lake Resort

Palindrome Partitioning - leetcode

Question:
Given a string s, partition s such that every substring of the partition is a palindrome.

Return all possible palindrome partitioning of s.

For example, given s = “aab”, 177 more words

DFS

High Ceiling Decorations

When choosing the venue each client needs to be careful and needs to make sure that he/she had examined the venue from A-Z. Another advise is to make sure you visit the location and have a walk around it, and imagine your event being held in the venue you are visiting. 346 more words

Wedding

Valid Palindrome - leetcode

Question:
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.

For example,
“A man, a plan, a canal: Panama” is a palindrome. 148 more words

String