Choose any programming language of your choose and write a for loop that counts backwards from 10.
Developer Interview Questions
270,915 developer interview questions shared by candidates
Find the dominator in an array.
Implement a method 'find' that will find the starting index (zero based) where the second list occurs as a sub-list in the first list. It should return -1 if the sub-list cannot be found. Arguments are always given, not empty. Sample Input 1 list1 = (1, 2, 3) list2 = (2, 3) Sample Output 1 1 Explanation As second list (2, 3) is sub-list in first list (1, 2, 3) at index 1 Sample Input 2 list1 = (1, 2, 3) list2 = (3, 2) Sample Output 2 -1
given numbers 1 4 2 0 2 0, move all zeros to beginning using minimum sorting technique
Given a list 1,0,3,5,0,0,34,5,0,36 push all the zeroes to the end. Develop an in-place algorithm
How do you detect for the first repeated character in a string? How do you detect whether or not a word is a palindrome?
Define Yourself
How would you test if a binary tree were symmetrical and balanced.
There are 4 people who want to cross a bridge. They each take 1, 2, 5 and 8 minutes. Only 2 people can cross at a time and they take as long as the slowest person. What is the fastest time you can get everyone across? Then I was asked to write the mathematical equation to determine the trade-off point between each of the 2 approaches to solving this.
Given a text file containing the text for Hamlet (/usr/share/file.txt), return the top 5 most frequent words with count.
Viewing 371 - 380 interview questions