The first thing that we have to keep in my mind while solving this kind of problem is that the strings are immutable i.e,...
Given a string of size n, write functions to perform the following operations on a string-...
Given a string str which has various HTML Entities in it, the task is to replace these entities with their corresponding special character....
Given a set of strings, find the longest common prefix. Examples:...
The atoi() function in C takes a string (which represents an integer) as an argument and returns its value of type int. So basically the function is used to convert a string argument to an integer....
Problem Statement: Given a set of strings, find the longest common prefix.Examples:...
Given a Romal numeral, the task is to find its corresponding decimal value....
Given two strings s1 and s2, find if s1 is a substring of s2. If yes, return the index of the first occurrence, else return -1....
Given a large positive number as string, count all rotations of the given number which are divisible by 4....
Write code to find lexicographic minimum in a circular array, e.g. for the array BCABDADAB, the lexicographic minimum is ABBCABDAD.Source: Google Written TestMore Examples:...
Given two strings s1 and s2, check whether s2 is a rotation of s1. Examples:...
Before getting into at() method we should know about what arrays, strings and Typed array in JavaScript is and also how to access arrays...