Given an array of items of three different colors red, green, blue. How would you sort the items in the array so that all the items with a certain color would be grouped together.
Development Engineer Interview Questions
37,123 development engineer interview questions shared by candidates
Find the character with longest repitition in the string e.g. aaacccddddeefffffffg the result should be 'f'.
find duplicated item from an array, output the duplicated item with their times
Reverse an integer. Looking for optimized solution and definitely no tostring type of solution
Didnt ask anything about me or my resume. They sent ma link to write the code. Asked me to write the code for finding the number of words in a string without using split and scanner. Then asked me to improve the code to accommodate corner case i.e if multiple spaces or null string etc. Asked me to write the test cases for the program.
How to discover if the given number is Power of 2 ?
Sort an array of integers with only 1s and 0s. Then sort an array of integers with numbers between 0 and 99.
Implement a reverse hash table
Given the upper left and lower right coordinates of two rectangles, determine if they overlap
Print the number of occurrences of a number in a sorted array of numbers. Input: 1 2 3 4 4 4 4 4 5 6 7 | 4 Ouput: 5
Viewing 161 - 170 interview questions