Write a function to check if a given tree is a valid binary search tree or not.
Financial Engineer Interview Questions
1,105 financial engineer interview questions shared by candidates
Find the smallest two values in an array
Given an array with building sizes, find the building to be knocked over from the left (assuming you are Godzilla) so as to knock over maximum number of buildings. The buildings once knocked over, can reach as far as their height. So, if the array is (2, 4, 0, 0, 0, 1) , We would have to knock over 2, which will knock over 4, 2 and 1. Also notice in (2, 6, 4, 0, 0, 0, 0, 1) the 6 would reach over the 4 and knock over the 1. (Something that I confirmed with the interviewer)
Is there any algorithm to verify whether a linked list is circular or not?
gave me a tree of 3 level and provided me a number that contains the level number and asked me to code a program that would print the nodes on that level in the tree.
Counting the number of anagrams of one string in another string
Given a list of integers, all from 1 to n, except for 2 which are marked as "0", find the 2 values that are missing. For example, for n = 5: arr = [1,5,0,0,3] => the two missing values are 2 and 4.
Reverse a string
Advantage of Process Over thread ??
How many bytes are actually allocated by malloc(n)? How does free() know how many bytes to free?
Viewing 131 - 140 interview questions