Given a library of numbers to corresponding letters (1 = a, 2 = b, 3 = c, etc.) and a string made up of digits, return how many different ways those digits can be translated to letters. ex: “1111”: “aaaa” “kaa” “aka” “aak” “kk” => 5 different ways
Intern Software Interview Questions
17,742 intern software interview questions shared by candidates
Pascal's Triangle - print a row
Write a function that prints a binary tree level-by-level.
I was given a short function in C (dictated because we were hanging on a phone): int foo(int a) { int result = 0; while (a >>= 1) result += 1 return result } And my task was to say what's wrong with this function, what's its purpose and what would I write my colleague who submitted it for a code review
Find two integers in an unsorted array that produced a certain sum in linear time.
Technical Question. Given a string such as 3 + 2 / 5 - 3 * 4, calculate it.
Given a mathematical expression, what data structure would you use to evaluate the expression? How would you design the above question to use Trees/Graphs.
You have two operations: add by one and multiply by 2. Find the minimum number of operations to get from 0 to any particular integer.
Use C to count the number of set bits in an int.
Not very difficult - logic questions involving a different language.
Viewing 401 - 410 interview questions