Sort the first 100 numbers from a incoming input stream of milions of numbers.
Engineer Software Interview Questions
419,835 engineer software interview questions shared by candidates
Given an array of integers and another integer X - create an algorithm to determine if the sum of any two integers in the array would result in x
Given array A of size n, generate array B of size n, such that: A[i] = B[i]/(Sum(A[0] ... A[n-1])
You are given a binary search tree of integers. Given a target integer, find the greatest integer that is smaller than the target integer.
Given an array of sorted characters and a target character, find the closest character from array.
Largest palindromic substring in the given string. Nearest k points to origin in a given set of n co-ordinates given n>=k
Given a singly linked list, find the kth element from the back and delete it.
Given an array of zeroes and ones, write a method to sort the array with the zeroes on the left and the ones on the right.
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return -1. set(key, value) - Set or insert the value if the key is not already present. When the cache reached its capacity, it should invalidate the least recently used item before inserting a new item.
he gave me two sentences and wanted me to return a list of words that exists in one sentence but not on the other one. for example s1 = "I am happy" s2 = "I am old", you have to return ["happy", "old"]
Viewing 3141 - 3150 interview questions