The numbers 1-5 are inserted, in order, into a stack. Numbers are removed from the stack one-by-one and pushed into another array (numbers could be removed at any time, even before all the numbers have been added to the stack). What order of numbers in the array could NOT be produced by this scenario? Write code to determine if a sequence of numbers could have been produced by this scenario.
Engineer Software Interview Questions
419,267 engineer software interview questions shared by candidates
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.
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
what was a technical difficulty and how have you overcome it.
You have 10 bags that weighs the same except for one that weighs less. With a scale, what's the shortest number of tries to find the bag that weighs less?
Given a string of the form: "{Valery,Jason,Peter} was in {good,bad} mood and he went to the {beach, party, library}"; Print out all the permutations of the string. Eg: Valery was in good mood and he went to the beach.
why should i hire you
In interview, for DS: link list , stack, queues , Quicksort etc, JAVA(core) .
Viewing 891 - 900 interview questions