Give an array that has only the values 1, 2 or 3, sort the array in place.
Software Interview Questions
551,683 software interview questions shared by candidates
Puzzle question: A Floating ship contains 1 stone , If I drop that stone in sea,,What will happen with water level??? Is it increase or decrease n why??
Given an array of numbers, replace each number with the product of all the numbers in the array except the number itself *without* using division.
Wie erstellt man einen verteilten Algorithmus, mit dem sich die Verteilung der Klammern berechnen lässt?
Write an algorithm to calculate the total number of paths possible from point (0, 0) to point (m, n) in an m by n grid. (You cannot retrace a line you already made when forming a path.)
Given an array of (unsorted) integers, arrange them such that a < b > c < d > e... etc.
three friends with different salaries need to find out their average salary without revealing individual salaries to each other. how?
A rabbit wants to climb some stairs and it can do steps of 1 or 2. How many possible paths are there to follow ( e.g 1-1-1... or 2-2-2 ... or 2-1-2-1... etc)
given the output from the first question write a algorithm to calculate how many possible inputs could have created that output. for example. "1211" could be interpreted as one two and one one || one hundred and twenty one ones.
Given a binary tree with the usual left and right pointers on each node, and additionally a parent pointer, make an algorithm to discover the closest ancestor to 2 nodes on the tree.
Viewing 281 - 290 interview questions