Given 8 balls and one of them is heavier than the other and also given you a balance. What's the minimum ways to find the heavier ball using the balance?
Software Interview Questions
551,205 software interview questions shared by candidates
The first question is the most difficult question in this round.
Print a Binary Tree level by level
A disc is spinning on a spindle - you don't know which way. You are given a set of pins - describe how you would use them to determine which way the disc is spinning.
Write a function that takes a string as an input and outputs an integer, e.g. turning "1234" into 1234.
You are given 8 identical looking balls. One of them is heavier than the rest of the 7 (all the others weigh exactly the same). You a provided with a simple mechanical balance and you are asked to find out the minimum amount of weighings necessary to identify the heavier ball.
Design an algorithm to search an element in a singly linked list in O(1) complexity without using any other data-structure.
Write a method to compute if a string is a palindrome, disregarding spaces.
Signed NDA
How do you find if there are duplicates in a list?
Viewing 2211 - 2220 interview questions