- Write a code to determine the length of a string with and without using Recursion?
- Write a code for binary search tree tand how will you determine the height of that tree?
- What is segmentation fault? Write a program to generate segmentation fault?
- Write a program to check whether two strings are anagrams or not? He asked me to write the code in an optimized way.
Anagrams: Two words are said to be anagrams of each other if the letters from one word can be rearranged to form the other word. - What does the below function will do?
func ( char *str1, char *str2) {
while( *str1++ = *str2++);
} - Create mirror image of binary search tree.
Refer the following link: http://www.geeksforgeeks.org/writeanefficientcfunctiontoconvertatreeintoitsmirrortree/ - I am having 5 million files. How will you find out the lager file(in terms of size) among all the files?How will you solve this problem using MapReduce approach?
Technical Round 2:
- Write a code to determine the duplicate elements in the given array and he asked me to optimize the code in terms of time complexity?
- Given an array of elements, how will you find out the mean,median and mode?Which is the best data structure to solve this problem?
- How will you implement the heap data structure and why we need heeps?
- How will you balance the tree? Some questions on AVL tress?
- Asked my B.Tech project in detail and implementation details?
- How will you find out the kth smallest element in the given array? He asked me about optimizations? Solutions: 1. Navie approach 2. Heap datastructure 3. Using partitioning approach(Quick Sort idea)
http://www.geeksforgeeks.org/kthsmallestlargestelementunsortedarray/
Technical Round 3 & HR:
- Why quick sort is best sorting algorithm compared to other sorting algorithms. Give your observations?
- He given some C puzzles and asked me the output?(Basic C concepts:storage classes and memory management)?
- Why TeraData?
- Asked project details
- What are your future goals?
- Asked background, and my personal details
Source: K Chaitanya Priyadarsini (M.Tech IT 2014-16)
No comments:
Post a Comment