Write a function to take a BST and a value k as input and have it print the kth smallest element in the BST.
Engenheiros De Software Interview Questions
374,746 engenheiros de software interview questions shared by candidates
You have an analog clock with two hands, one for the hour and one for the minute. Given a time of the day, what is the angle between the two hands?
Write a program to count the number of words in a file.
Given an array of unsorted integers, determine which number appears most often.
How to detect loops in a linked list without using a data structure
Write out merge sort and apply it to two arrays of integers.
Given a string that has various brackets (e.g. “{“, “(“, “[“, “}”, “)”, “]”) built into it, how would one tell that the string has a balanced number of brackets and in order?
Find 2 or more missing numbers in a set of 100 natural numbers
You have 10 boxes of balls (each ball weighing exactly10 gm) with one box with defective balls (each one of the defective balls weigh 9 gm). You are given an electronic weighing machine and only one chance at it. How will find out which box has the defective balls?
Write C code to check if an integer is a power of 2 or not in a single line?
Viewing 471 - 480 interview questions