Vishal Sharma wrote a new post

read moreGiven three strings, concatenate the strings in lexicographically increasing order to create a single string. For example, given firstString = one, secondString = two, thirdString = three, concatenated in lexicographical order, the result = onethreetwo. Function Description Complete the function compareStrings in...

Vishal Sharma wrote a new post

read moreThere is a tournament between two teams. The tournament consists of N rounds. Each team has N competitors. Each competitor has a power between a-z and if the power of two competitors matches in a round then that round...

Vishal Sharma wrote a new post

read moreA subsequence of a sequence is a sequence which is obtained by deleting zero or more elements from the sequence. You are given a sequence A in which every element is a pair of integers i.e A = . For...

Vishal Sharma wrote a new post

read moreConsider an array of integers, arr =, arr, ... , arr] . We define the absolute difference between two elements, a and a (where i != j), to be the absolute value of a - a . Given an array of integers, find and print the minimum absolute difference between any...

Vishal Sharma wrote a new post

read moreLena is preparing for an important coding competition that is preceded by a number of sequential preliminary contests. Initially, her luck balance is 0. She believes in "saving luck", and wants to check her theory. Each contest is described...

- Load More Posts

Vishal Sharma wrote a new post

Vishal Sharma wrote a new post

Vishal Sharma wrote a new post

Vishal Sharma wrote a new post

Vishal Sharma wrote a new post

- Load More Posts