String is traditionally a sequence of characters, either as a literal constant or as some kind of variable. The latter may allow its elements to be mutated and the length changed, or it may be fixed (after creation).

Learn more..

Luhn Algorithm

Luhn is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers. Below is how this algorithm works: From the rightmost digit, which is the check d ...
Mert Deniz Güngör
Published on Mar 20th, 2018

Bookshelf Organizing

You have an enormous book collection and want to buy some shelves. You go to a store and they sell all kinds of shelves. The weird part is, some shelves are different in length but they all cost the ...
Erkan Ercan
Published on Feb 6th, 2018

Program to compare two strings

Write an algorithm to compare two strings. Check if they are equal or not. If equal return True. Else False. Example If string1 is "codela" and string2 is "cdl" output return must be False.
Erkan Ercan
Published on Jan 29th, 2018

Program to delete vowels from a string

Write an algorithm to delete vowels from a string. Given a string. You need to delete vowels of this string and return string. Example If string is "codela", return must be "cdl".
Erkan Ercan
Published on Jan 29th, 2018

Exponention

Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many computer systems ...
Coder
Published on Jan 18th, 2018

Sum of Big Numbers

In this problem, you are given two big numbers as string and you are expected to print sum of them. However, You should keep in your mind that the numbers you are given may be too large to fit in int ...
Coder
Published on Jan 17th, 2018

Find An Equal Point In a String of Brackets

Given a string of brackets, the task is to find an index k which decides the number of opening brackets is equal to the number of closing brackets. The string must consist of only opening and closing ...
Berkan Teber
Published on Jan 16th, 2018

Check If Two Expressions Are Same

Given two expressions in the form of strings, the task is to compare them and check if they are the same. Expressions consist of lowercase alphabets, '+', ‘'-' and '( )'. Examples: "-(a+b+c)"and "- ...
Berkan Teber
Published on Jan 16th, 2018

Minimum Word Break

Given a string s, break s such that every partition can be found in the dictionary. Return the minimum number of breaks needed. Example: Given a dictionary ["Cat", "Mat", "Ca", "tM", "at", "C", "D ...
Berkan Teber
Published on Jan 16th, 2018

Find All Possible Interpretations

Consider a coding system for alphabets to integers where ‘a’, ‘b’, ..., ‘z’ are represented as 1, 2, ..., 26. Given a string of digits 1..9 as input, write a function that prints all valid interpre ...
Berkan Teber
Published on Jan 16th, 2018