Category: string
I am doing a C++ coding exercise, as usual…. And to split a string in C++, the best/easy way is to use the boost library… However, this is not …
Given any string (assume both lowercase or uppercase letters), check if a permutation of the string could form a palindrome. For example, canPermutePalindrome(“aab”) = true while canPermutePalindrome(“ab”) = false. …
Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. Allocate a string and assign input string to it. Change uppercase letters to …
The Javascript has the includes function that can be used to test if a given array or string contains an element or character. For example: .includes("a"); true .includes("aa"); false …
Given a 32-bit integer (signed or unsigned), convert it to its hexadecimal in lowercase. The result should not have leading zero unless it is equal to zero. Please do …