HR: hash function search time, what is O(n) Programming: write a function that get an int array, each int has category which can receive by a given function. category is one of (0,1,2). eg Array[1]=20, get_category(20)=1 sort the int array by the int category. following question, sort without addition array\space
Software Interview Questions
551,386 software interview questions shared by candidates
Given an integer array and an input int x, return value of one or more int in the array that equals to int x.
NDA
convert foo bar in an array to oof rab
Finding the minimum k elements of a list
write a function to check the validity of a binary search tree
If we have a string : "abc ef 12 g", write a function that takes the pointer to the string reorganizes the string to be: "g 12 ef abc". Note that there are 3 spaces after abc, 2 spaces after ef, and 1 space after 12 in the original string, but the spaces are reversed. So in essence, write a function to reverse a string and then put the words between the spaces back in order. And the string length can be known or not.
write a function to check if an unsigned integer is a power of 2. if it is a power of 2, return the power. otherwise return 0.
Given some indeterminate amount of possible values for a coin, count all different ways that those coins could be used to make some specified number n. Return the number of different ways possible.
Given a binary tree, print the nodes level by level
Viewing 3071 - 3080 interview questions