Category: string
Given an input string, reverse the string word by word. Example 1: Input: “the sky is blue” Output: “blue is sky the” Example 2: Input: ” hello world! ” …
Given two strings s1 and s2, write an algorithm to determine if s1 is one permutation of s2. For example: s1 = “abc”, s2 = “bca” output: true s1 …
In C++, there is no inbuilt split method for string. It is very useful to split a string into a vector of string. We can use the following string …
HTML entity parser is the parser that takes HTML code as input and replace all the entities of the special characters by the characters itself. The special characters and …
Given two strings text1 and text2, return the length of their longest common subsequence. A subsequence of a string is a new string generated from the original string with …