Tag Archives: Strings

Combinations of a String

Problem: Write an algorithm to print all possible combinations of characters in a string. Solution: Since we need to generate combinations, we can start with a single character and then continue to add a character to combinations we have seen … Continue reading

Posted in Interview Puzzles | Tagged , , , , , | 1 Comment

How to replace in Javascript, when replacement string is a variable

How to replace in Javascript, when replacement string is a variable Very often we use replace method in javascript while replacing a string literal by another string literal.But what if we need to replace a string whose value is held … Continue reading

Posted in Client Side Programming, JavaScript, jQuery | Tagged , , , , | Leave a comment