You have input arrays and one output. The output one contains only the elements that are only in one of the arrays. Fallow u question is what is the complexity of problem and algorithm
Software Engineer Android Interview Questions
666,374 software engineer android interview questions shared by candidates
Input. String 1: chair String 2: mat String 3: phone Out put should be: cmpahhaotiner
You have to measure exactly 4 liters of water, but you only have a 3-liter bottle and a 5-liter bottle. How do you do it?
Given an array A, find the count of the ordered pairs. An ordered pair is defined as any number A[j], such that A[j]>A[i] and j>i. You have to do this in optimal time.
Write a code for finding a certain element in an unsorted array assuming element definitely exists. How can we improve the efficiency?
What is stack?
Print a Binary Tree level by level
You are given 8 identical looking balls. One of them is heavier than the rest of the 7 (all the others weigh exactly the same). You a provided with a simple mechanical balance and you are asked to find out the minimum amount of weighings necessary to identify the heavier ball.
can class run without main method ?
Design an algorithm to search an element in a singly linked list in O(1) complexity without using any other data-structure.
Viewing 2081 - 2090 interview questions