Valid Parentheses LeetCode Solution

In Valid Parentheses LeetCode problem we have given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, determine if the input string is valid. Here we will provide a Valid Parentheses LeetCode Solution to you. An input string is valid if: Open brackets must be closed …

Read more

PHP Replace String

In PHP, we can replace a string or an array of string with another string or an array of string using str_replace. In this article, we will explain about PHP replace string operation. Syntax of PHP replace String str_replace(find,replace,string,count) This method uses 4 parameters as described below: find – This …

Read more

Longest Common Prefix using Trie

In the Longest Common Prefix using Trie problem we have given a set of strings, find the longest common prefix. i.e. find the prefix part that is common to all the strings. Example Input1: {“tutorialcup”, “tutorial”, “tussle”, “tumble”} Output: “tu” Input2: {“baggage”, “banana”, “batsmen”} Output: “ba” Input3: {“abcd”} Output: “abcd” …

Read more

Guess The Word

Guess The Word is an interactive problem. An interactive problem means the data which is given to us is not predetermined. We can print values or call the specific function to interact or get more information regarding the solution. After each step, we also need to FLUSH the buffer to …

Read more

Translate »