Write a function to make a power set (as a list of lists) from a set (as a list). Wrote code in ocaml, although I was told that any language would do.
Software Intern Interview Questions
17,721 software intern interview questions shared by candidates
I was asked to implement a function in a functional programming language (since I had listed in on my resume) that would test to see if two lambda expressions were alpha-equivalent.
What is a project that challenged you in the past?
Which byte occurs most frequently in an array? Write a function that returns the byte that occurs most frequently in an array of bytes Parameters: Array of bytes Count of the number of bytes in the array (if you want it)
Implement a function that takes in two unsigned integers and returns a boolean indicating whether you will have overflow if they are added together. Language of your choice.
Walk me through your resume
The most difficult question was to design a oops system. We asked to design a system using oops.
some medium/hard leetcode questions, the platform they used was codesignal
Let's say a triple (a, b, c) is a zigzag if either a < b > c or a > b < c. Given an array of integers numbers, your task is to check all the triples of its consecutive elements for being a zigzag. More formally, your task is to construct an array of length numbers.length - 2, where the ith element of the output array equals 1 if the triple (numbers[i], numbers[i + 1], numbers[i + 2]) is a zigzag, and 0 otherwise. Example • For numbers = [1, 2, 1, 3, 4], the output should be solution(numbers) = [1, 1, 0]. o (numbers[0], numbers[1], numbers[2]) = (1, 2, 1) is a zigzag, because 1 < 2 > 1; o (numbers[1], numbers[2] , numbers[3]) = (2, 1, 3) is a zigzag, because 2 > 1 < 3; o (numbers[2], numbers[3] , numbers[4]) = (1, 3, 4) is not a zigzag, because 1 < 3 < 4; • For numbers = [1, 2, 3, 4], the output should be solution(numbers) = [0, 0]; Since all the elements of numbers are increasing, there are no zigzags. • For numbers = [1000000000, 1000000000, 1000000000], the output should be solution(numbers) = [0]. Since all the elements of numbers are the same, there are no zigzags.
so tell me about yourself
Viewing 1931 - 1940 interview questions