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?
Engineer Developer Interview Questions
466,953 engineer developer interview questions shared by candidates
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.
Find largest element in array without using any extra variables or any functions
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?
Given any number of arrays containing numbers, write a function which finds the numbers that appear in exactly two arrays. arrays = [ [6, 2, 2, 0, 4], [5, 0, 2, 6, 7, 1], [6, 7, 9, 9], ] find_in_two(arrays) should return [2, 0, 7]
input log = [ { 'user': 'A', 'page': 1}, { 'user': 'B', 'page': 5}, { 'user': 'A', 'page': 2}, { 'user': 'A', 'page': 1}, { 'user': 'B', 'page': 2}, { 'user': 'C', 'page': 7}, { 'user': 'C', 'page': 3}, { 'user': 'A', 'page': 3}, { 'user': 'C', 'page': 1}, ] please implement discover_site_map(log) discover_site_map returns a representation of the links between pages, using whatever data structure you think is suitable: 1 -> 2, 3 2 -> 1 3 -> 1 5 -> 2 7 -> 3
Why is a manhole cover round?
Viewing 551 - 560 interview questions