How to create a calculator that gets a string as an input. for example "2+3*4-(4+5)*3"?
Developer Interview Questions
269,303 developer interview questions shared by candidates
Optimize this code (like what compiler would reconstruct an equivalent source code as): int fn (int a, int b) { int sum = 0; for(int i=4*a;i>0;i--) { sum+=b*i*i; } return sum; }
1. Populate an array of numbers from 1 to N (inclusive). Given two numbers, p and q , if a number in the array is divisible by p print OUT if a number is divisible by q print THINK. If the number is divisible by both p and q, print OUTTHINK. Otherwise, print the number.
Finding squares given a set of points, questions on concurrency and race conditions, memory layout for objects with multiple inheritance and virtual functions.
FizzBuzz
First, they sent a coding assessment on Codility which had 2 questions - one was to return the number formed by interleaving the decimal digits of 2 numbers. Then during the phone interview I was asked to serialize and deserialize a vector of strings in C++.
Difference between Linked List/Array List. Which is better for insertion in the middle?
Assignment on Mac
Given a large file that does not fit in memory (say 10GB), find the top 100000 most frequent phrases. The file has 50 phrases per line separated by a pipe (|).
What is class?
Viewing 2021 - 2030 interview questions