(i.e. we have 2n+2 numbers and n numbers are occurring twice and remaining two have occurred once).
Find those two numbers in the
Interview Questions asked in Google, Microsoft, Amazon
by Dhaval Dave
by Dhaval Dave
by Dhaval Dave
The list is a most versatile datatype available in Python which can be written as a list of comma-separated values (items) between square brackets. Good thing about a list is that items in a list
by Dhaval Dave
three of the most common data types used in programming: numbers, strings and booleans. We assigned those data
by Dhaval Dave
Given a sorted array and a number x, find a pair in array whose sum is closest to x.
Examples:
Input: arr[] = {10, 22, 28, 29, 32, 40}, x = 54
Output: 22 and
by Dhaval Dave
by Dhaval Dave
Several Companies like MS, Amazon and Flipkart has started asking this question to Generate next palindrome number.
Say K is given, Generate N such that N is palindrome and N > K.
Logic 1) Create
by Dhaval Dave
This question was asked first in FACEBOOK On Campus for Internship.
by Dhaval Dave
by Dhaval Dave