Tell us about your projects?
Software Developer Intern Interview Questions
2,852 software developer intern interview questions shared by candidates
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.
They asked me the basic DSA question like reverse a string.
There are two arrays A1 and A2. Find out the pairs of numbers in A2 which were in reverse order in A1. For ex. A1 = 2 6 5 8 1 3 A2 = 1 2 3 4 5 6 Answer: 1 & 2 1 & 3 5 & 6
An Optimization Problem based on 12 floors and 3 lifts.
What made you apply to Ellucian
Given some rules of an alphabet (like a->c, 'a' comes before 'c'), find the alphabet.
Difference between memmove() and memcpy() in c. Implement your own memmove() and memcpy() functions.
A technical question about traversing a made up data structure somewhat similar to a binary tree but with additional restrictions. Was not too difficult to do recursively but then they asked for an iterative solution which was more challenging.
How will you implement the shuffle function in iPod given a random number generator (0, 1) API?
Viewing 301 - 310 interview questions