Compare Version Numbers InterviewBit SolutionProblem: Compare Version Numbers Problem Statement: Compare two version numbers version1 and version2. If version1 > version2 return 1,...
Reverse the String InterviewBit SolutionGiven a string A. Return the string A after reversing the string word by word.
Length of Last Word InterviewBit SolutionGiven a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the
Longest Palindromic Substring InterviewBit SolutionGiven a string S, find the longest palindromic substring in S. Substring of string S: S[i...j] where 0 <= i <= j < len(S) Palindrome string:
Convert to PalindromeGiven a string A consisting only of lowercase characters, we need to check whether it is possible to make this string a palindrome after rem