Given a coin with probability x (= U[0, 1] showing head at each flip, what is the probability that you got a second head after getting the first one.
Software Interview Questions
550,171 software interview questions shared by candidates
Find the integer pairs in an integer array, so that they sum up to a specific number n.
how would you find the shortest path between two nodes in a social network?
Design a vector that can grow with the size with time complexity of O(1)
Given a list of strings, write a function to calculate the longest common prefix (LCP) of all those strings.
Given a binary tree, write a function to find the length of the longest path in the tree.
Write a function that computes log2() using sqrt().
Create a linked list with 3 char (A,B,C) in it and print the list in reverse.
Write a C function to return the number of set bits in an integer.
Given the following struct definition in C, what would sizeof(myStruct) return? typedef struct { short a; long b; char c; } myStruct;
Viewing 291 - 300 interview questions