A file system search question, but using a set of predefined apis and data structures which included pre-populated files.
Software Engineers Interview Questions
419,775 software engineers interview questions shared by candidates
1.Add two numbers without using addition operator? 2.Print your name without using semicolon? 3.find maximum number in three numbers with conditional operator?
SQL (weight: 10%) Consider the table below: table A ( id integer primary key, name varchar(20), age integer ) Write a query to return the list of unique names from table A
Binary tree?
Given an array of character you must delete all the characters that got repeated 3 or more times consecutively and add " " in the end of the array for every deleted character Example "aaabbbcddddd"->"c "11 spaces "xxaaavbbbc" ->"xxvc " "xavvvarrrt"->"xaat " The problem must be solved in: O(1) memory O(n) time And you can't overwrite a cell in the array more than once
Given a sum, find two numbers in an array with that sum.
Given a binary tree (not a BST), print the nodes at a given level n passed as an input parameter. Here is how method definition looked like: public void printLevel(root, level)
Find the k largest elements of a constant input stream of values.
Brain teaser: two person have two pizza for food, but only one of them is holding the knife. One cut per pizza. Each has only one chance to have the priority to choose one slice of a pizza. It means a process of cutting, choosing, cutting choose. How many of the pizza can the one with knife get maximum?
Flatten a 2D linkedList . A node contains 3 parameters namely, data , pointer to left, pointer to down . The aim of the function is to flatten the linkedlist. Ex: 1-->2-->4 | V 3 Answer is 1-->2-->3-->4 Ex: 1 --> 2--> 3--> 4 | 5-->6-->7 | | 8 9 Answer is 1-->2->5 -> 8 -> 6->9 ->7-> 3-> 4 He asked me to make the same linkedlist flatten not to create a new LinkedList or print the elements
Viewing 2411 - 2420 interview questions