Tip 1 : Code More till you like it
Tip 2 : Study Data Structures & Algorithms
Tip 1 : Skills Relevant to Job Description
Tip 2 : Do not put false things on a resume, in-depth knowledge of everything there on the resume




For the given graph, we have to find the shortest distance between vertices 1 and 3.
The shortest distance between 1 and 3 is 2 (via 1 <-> 2<-> 3). Hence, the answer is 2.



A majority element is an element that occurs more than floor('N' / 2) times in the array.
Return Middle element of the array that is return A[n/2].



For 'ARR' = [1, 2, 1, 3, 2, 4] and 'B' = 3, one of the good subarrays which contains three distinct integers is [1, 2, 1, 3].
An array 'C' is a subarray of array 'D' if it can be obtained by deletion of several elements(possibly zero) from the beginning and the end from array 'D'.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?