You have two methods: one method takes long time to run and the other completes in short time. You execute the long method first and after that you execute the short method. Which one will complete first. There is no setTimeout involved.
Developer Interview Questions
640,302 developer interview questions shared by candidates
Suppose you have an array of positive and negative integers. Given X as input, find two numbers that add up to X.
What are different types of interrupts?
Write a function that takes an integer and prints out the digits separated by commas. Example, pass in 345 print out 3,4,5
Find the numbers occur odd times (e.g. 1,3,5,7,...) in the given array. e.g. { 2, 2, 1, 1, 1, 4, 4 } You should print 1.
How would you implement a sparse array (key could be any integer, but only a few would be used) with limited memory.
Extract the N largest floating point numbers from a large file of floating point numbers.
Given an integer, re-arrange the integer such that first and last digit will be at first and second, second and second last digit will be at third and fourth position from left of the re-arranges integer and so on. Example: Input -> 12345678, Output -> 18273645 Input -> 1234567, Output -> 1726354
find number of 1's in a number
if i type character 'A' in text file and save it, what will be size of the file
Viewing 941 - 950 interview questions