There is a notepad which accepts only four operations: 1. Character X 2. select all 3. copy 4. paste Given n number of operations, provide the sequence of choices that gives maximum characters in the notepad.
Software Engineers Interview Questions
418,794 software engineers interview questions shared by candidates
sort the array so that the odd number in front of the even number and their relative order doesn't change in O(n)
how to find the closest 2 number in an array of unique positive number
You have five bottles with pills. One bottle has 9 gram pills, the others have 10 gram pills. You have a scale that can only be used once. How can you find out which bottle contains the 9 gram pills?
Output a single linked list in reverse, in linear time and constant space, and recursively
How to implement Sqrt(double k) efficiently?
Given n+1 buckets with n of them with ball inside and move(a,b) function, that moves ball from bucket a to bucket b. Each ball has a different number from [1,n] on it. Move balls, so each bucket has a ball with matching number in it.
Given 2 arrays sorted in ascending orders (a[n] and b[n*2]) with the second half of array a[] being empty, create a function that merges both arrays into a single sorted array.
Given two binary trees, return true if they have same elements (irrespective of tree structure)
Give a dictionary with a huge set of words and a string with wildcard. You are required to find whether there is a match in the dictionary for this given string.
Viewing 581 - 590 interview questions