The Wayback Machine - https://web.archive.org/web/20240910091117/https://www.geeksforgeeks.org/flipkart-interview-set-8-sde-1/
Open In App

Flipkart Interview | Set 8 (For SDE 1)

Last Updated : 07 Aug, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Applied through LinkedIn

  • Online Coding Round (Interviewstreet)

    One of the many ways of representing a tree is to have an array(of length same as a number of nodes), where each element in the node denotes the parent of that node.
    Please note –

    • An element with parent = -1 is the root element.
    • An element with the least index becomes the leftmost child. (ie. a node with always be on the left of all its siblings that have a higher index than it)
    • When printing a level of tree you need to maintain left to right order.

    Eg –

    {-1, 0, 0, 1, 1} would represent a tree with - 
    * 0 as root 
    * 1 and 2 as children of 0 
    * 3 and 4 as children of 1 

    Given a similar representation, you have to print reverse level order traversal of the corresponding tree.
    Level order traversal of a tree is where we traverse levels of a tree one by one.

    Eg –
    For the above-given tree, level order traversal would be –

    0 
    1 2 
    3 4 

    And hence, the reverse level order traversal is –

    3 4 
    1 2 
    0 
  • Telephonic Round 1
    1. Find the square root of a given integer. e.g 27 output should be 5, for 32 output should be 6.
    2. Given a 2D matrix of integers find the maximum sum path in the matrix.
  • Telephonic Round 2
    1. Given a number n, find the largest number small than having the same digits as of n. E.g. 231 output will be 213.
      Article Link: https://www.geeksforgeeks.org/find-largest-number-smaller-than-n-with-same-set-of-digits/

    2. Given a long stream of numbers find the largest k numbers at any given point.(I told him I know the question and told the solution, he moved on).
      Article Link: https://www.geeksforgeeks.org/kth-largest-element-in-a-stream/
      Practice Link: https://www.geeksforgeeks.org/problems/kth-largest-element-in-a-stream/0

    3. Given k arrays of sorted integers, find the minimum range which contains the number from each of the k arrays.
      e.g. {-1,4,7},{5,9,15,23},{8,24,25,31} output should be 2 range of {7,8,9}

    4. Given a binary tree find all the nodes at k distance from a given node.
  • F2F-R1 Machine Coding Round
    • Create an employee database structure in which Employee has id, name, manager. Three functionalities required were
      a) Given any id return all the employee details
      b) Given any name(or id) list all the subordinates of the given employee.
      c) Given a name search with prefix search property.

      45 minutes of time was given and running code was asked. The interviewer first asked the approach and then after coding, he reviewed the code thoroughly.

  • F2F-R2 Data Structure and Algorithm
    1. Given a list of words and a 2D matrix(of characters) find all the valid words(present in the given list) which are possible inside the given matrix.
      Words can be formed in all 8 directions from a given cell.
      The first discussion about the approach and then implementation of the logic.

    2. Given a binary tree serialize the tree such that it can be retrieved in the same form again.
    3. Given a double linked list with one pointer pointing to the next node and the other pointer to any arbitrary node in the list, duplicate the given linked list.
      Article Link: https://www.geeksforgeeks.org/a-linked-list-with-next-and-arbit-pointer/
      Practice Link: https://www.geeksforgeeks.org/problems/clone-a-linked-list-with-next-and-random-pointer/1

    F2F-R3 Hiring Manager

    1. Introduction about the organization and the work being done.
    2. My introduction and the work is done by me.
    3. Asked some of the new ideas ( wow!!!!! features ) which can be implemented in the smartphone.
    4. Few other general questions.

    F2F-R4 Design Round

    1. Design the Tic-Toe game for a smart phone. Discussion about the class diagrams, structure of the code, code flow, abstraction of code and functionalities.
    2. Interviewer asked the approach to implement the above in android.
    3. Various android questions.

    F2F-R5 Hiring Manger + Reporting Manager

    Hiring manager was on leave so this happened after a gap of one month after R4.

    1. Introduction about work.
    2. I asked various questions about work and my role.
    3. Design a mobile cab booking application (just screens and functionalities) on board. Asked questions about the things which I missed during the design.
      And what all requirements are needed to before the application goes in development phase.

Response was positive from the recruiter side.

Thanks to all the contributors of GeeksforGeeks for bringing up this helpful platform for us. Hope to contribute further.

Many many congratulations to the author.



Previous Article
Next Article

Similar Reads

Flipkart Interview Experience | Set 44 (On-campus for SDE-1)
Round 1: Coding Round - 90 minutes - Hackerrank Problem 1 : Given an array of N integers. Find number of sub-arrays with M number of odd integers. Problem 2 : N gears were given each with their own cost ci and radius ri. One extra gear was also given with radius r1. A distance d was given and we had to find the gear with minimum cost following the
4 min read
Flipkart SDE Interview Experience | Set 45 (On Campus)
Round 1: Online coding test (90 mins) 3 questions, 90 mins on Hackerrank platform. Questions 1 :  Find the number of connected components in a graph represented by matrix of 0s ans 1s. Question 2 : In a given string, find the substring which occurs maximum number of times with atmost K unique characters and length of substring should be in between
3 min read
Flipkart Interview Experience | Set 46 (On-Campus for SDE-1)
Round 1: Coding Round There were 3 questions to be solved on hackerrank in 90 minutes. Questions were: Given an array of length n and an integer m, find number of contiguous subarrays in the array which contain exactly m odd numbers.Given an array of long numbers, find number of distinct sum that can be made using any number of elements from the ar
3 min read
Flipkart Interview Experience | Set 48 (For SDE-1)
Round 1: Telephonic Round (90 minutes) It was a telephonic round. The interviewer started with brief discussion about my projects and technologies I know. Then he asked me following questions: Given an unsorted array - arr find a pair arr[i] & arr[j] such that  arr[i]<arr[j] & i<j and (arr[i] + arr[j]) is maximum.  Expected time compl
2 min read
Flipkart Interview Experience | Set 51 (Off Campus SDE-1)
The off campus drive was done in Delhi recently. Round 1: HackerRank Test Online Q1. Given 2 coordinates as an excel sheet cell number like (2, AA), return true or false whether the line formed between the two points will pass through the origin. e.g. 1, AA 2, AB False Explanation : 1, AA => 1, 27 and 2, AB => 2, 28 . The line between (1, 27)
3 min read
Flipkart Interview Experience| Set 38 (For SDE II)
1) Coding Round: Write down code in any language for a simple employee hierarchy which has 3 types of employees. 1. CEO 2. Manager 3. employee Where an employee can have only 1 mgr, and a mgr has 1+ employees. Give salary, rating details of each employee. Now we need to give bonus to top k performers under each manager. (Criteria is based on rating
2 min read
Flipkart SDE Interview Experience | Set 43 (On-campus for Internship)
Recently Flipkart came to my college for SDE interns. GeeksForGeeks helped me a lot in preparing for the coding tests as well as for interviews. 1st Round. – Online – 60 mins The first round was an online round which was hosted on hackerrank.com . There were 3 Coding questions each of more than average level. 13 students were shortlisted after this
2 min read
Flipkart Interview | Set 1 (For SDE 2)
Hi, I have interviewed for Flipkart SDE 2 role 2 months back. I want to share interview experience with other geeks. Telephonic Interview (45 minutes) There is a stream of characters and at any time we need to find and remove (means set occurrence = 0) character which has maximum occurrence till now. Design data structure and algorithm for same. (I
3 min read
Flipkart Interview | Set 2 (For SDE 1)
Hi, I had Flipkart interviews for SDE 1. I would like to share my experience. Online Coding Round (1 hour 30 minutes): On interviewstreet, there were 2 problems. It was long description for a DNA problem. Main DNA sequence(a string) is given (let say strDNA) and another string to search for(let say strPat). You have to find the minimum length windo
4 min read
Flipkart Interview | Set 4 (For SDE-1)
Company: Flipkart Profile: SDE 1 Experience: 7 months Round 1: Online Coding Exam (2 hour on interviewstreet) (Need to pass 4 test cases + if time permits 4 hidden test cases) There are two strings s1 and s2. Find the maximum of percentage word matching from s1 to s2 and s2 to s1. Where, percentage word matching= (Total words matched in s2 /total n
3 min read
Flipkart Interview | Set 5 (Off-Campus for SDE-1)
I recently attended Flipkart interviews(off-campus). I would like to share my experience with everyone. Round 1 : Telephonic Interview Print the left view of a tree. Given a set of words that are lexicographically sorted, find the grammar. Eg: abc acd bcc bed bdc dab The order of letters for the given example would be a→b→c→e→d
3 min read
Flipkart Interview | Set 7 (For SDE II)
Online Coding round Find all the Node at the distance K from a given node in a Binary tree. Print them in any order. Design a LRU cache. Telephone screening rounds Given two sorted linked lists. You start with a one of the two lists and then move till the end. You may switch to the other list only at the point of intersection (which mean the two no
2 min read
Flipkart Interview | Set 10 (On-Campus For SDE-1)
Round 1(Online): There were 2 questions time limit 90 mins. A person wants to go from origin to a particular location, he can move in only 4 directions(i.e East, West, North, South) but his friend gave him a long route, help a person to find minimum Moves so that he can reach to the destination. Input – NESNWES Output – E You need to print the lexi
4 min read
Flipkart Interview | Set 15 (For SDE-II)
1st round (machine coding) You are given a catalog of books, which have following attributes. Name Author Publisher Publish year Category Price Count (sold) Implement following APIs on top of this catalog addBookToCatalog(Book) searchBook(by partial book name/author) getMostSoldBooks(by author name/category, limit) Expectations: Maintain DB on memo
2 min read
Flipkart Interview Experience | Set 17 (For SDE II)
I was interviewed for SDE - II position @ Flipkart. Below is my experience. Round 1 : Telephonic Round (around 90 minutes) He started with his and my introduction, the products I have worked on, the challenges I have faced during its development ( basic questions). Then he asked me 2 questions. Find the LCA (least common ancestor of 2 nodes) in a B
3 min read
Flipkart Interview Experience | Set 18 (For SDE I)
I have recently attended Flipkart for SDE 1 @ Bangalore. Thanks to GeeksforGeeks team which has been the only single source of my preparation and helped me a lot. Below is my experience. Machine Coding Round: Design a book catalogue search (API’s were given for the search, full needs to be implemented as running application) Second Round: Discussio
3 min read
Flipkart Interview Experience | Set 20 (For SDE-II)
I was recently interviewed for SDE-II in Flipkart. A lot of emphases was on designing and GeeksforGeeks has been a lot of help. These are my interview questions: Round 1 : Machine Round (2-3 hours) Company hierarchy/bonus question. Write down the code in any language for a simple employee hierarchy which has 3 types of employees. CEO Manager employ
2 min read
Flipkart Interview Experience | Set 22 (For SDE 2)
Telephonic Round - 1: 1) Inversion count in an array - https://www.cdn.geeksforgeeks.org/counting-inversions/ 2) Iterative pre order traversal. Telephonic Round - 2: 1) Given an array and a number x, check for pair in array with sum as x - https://www.cdn.geeksforgeeks.org/write-a-c-program-that-given-a-set-a-of-n-numbers-and-another-number-x-deter
1 min read
Flipkart Interview Experience | Set 27 (For SDE)
Telephonic Round: It was an exploratory discussion with the hiring manager. More about the current work and behavioral questions. Machine Coding Round: Design and build tic tac toe game. The code should be up and running. It should be scalable to multi-users and nXn grid. Discussion of Machine Coding Round: Follow up questions on various modificati
1 min read
Flipkart Interview Experience | Set 30 (For SDE 2)
Machine Coding Round: (1 hour) ----------------------------------------- Implement a finite state machine. - The machine should have one start state and can have multiple end states - It should be extensible (I should be able to add any number of states or transitions at any time) - I should be able to set notifications on or off for any state or f
2 min read
Flipkart Interview Experience | Set 32 (For SDE-1)
Flipkart recently visited my college for recruiting SDE-1. Here I am sharing my interview experience. First Round: 2 coding questions on HackerRank (90 minutes). 1. Given some data about computer systems (like RAM, ROM, processor speed, battery, etc). You need to print the top-k computers based on (i) RAM (ii) If RAM is same then ROM (iii) If ROM i
9 min read
Flipkart Interview Experience | Set 33 (For SDE-1)
Flipkart has done a drive in Delhi. Round 1: Machine Coding You are given some equations which may contain > or = on different-different operand. For example there are valid input and invalid (a=5, b<a=50) String e1 = "a>b=1"; String e2 = "a>b=2"; String e3 = "a>c>e=3"; String e4 = "a>c>f=4"; String e5 = "b>a=5"; String e
2 min read
Flipkart Interview Experience | Set 34 (On-Campus for SDE-1)
Flipkart recently visited my college for recruiting for SDE-1 profile. Here I am sharing my interview experience. First Round: 2 coding questions on HackerRank (90 minutes). 1) Given a matrix of n*n. Each cell contain 0, 1, -1. 0 denotes there is no diamond but there is a path. 1 denotes there is diamond at that location with a path -1 denotes that
3 min read
Flipkart Interview Experience| Set 35 (On-Campus for SDE 1)
Recently flipkart visited our campus for hiring interns as well as SDEs Here is the interview process: Round 1 : Online coding test on Hackerrank 2 questions were asked: Duration 90 minutes a. Given an array and an integer b, traverse the array and if the element in array is b , double b and continue traversal. In the end return value of b. Eg: I/p
3 min read
Flipkart Interview Experience| Set 36 (On-Campus for SDE 1)
Recently Flipkart visited our campus for hiring interns as well as SDE.. Coding Round 1 (90 min) : Q1(Simple brute force solves 12 testcases....O(n) using dequeue solves all 13 testcases) https://www.cdn.geeksforgeeks.org/maximum-of-all-subarrays-of-size-k/ Q2(Simplest Greedy) https://www.cdn.geeksforgeeks.org/greedy-algorithms-set-1-activity-selec
4 min read
Flipkart Interview Experience| Set 37 (On-Campus for SDE 1)
coding round 1--(1 hr) - hackrrank 1. given a string of any length, check if first half of the string (n/2+1 in case of odd length) is an anagram of the second half of the string or not. 2.in a 2d matrix, some cells are obstacles and others are clear. find the number of paths from 0,0 to m,n.(0 paths if 0,0 is the obstacle, wasn't specified but was
2 min read
Flipkart Interview Experience| Set 38 (On-Campus for SDE)
I was interviewed on-campus for Software Development Engineering (SDE1) role Flipkart. Coding round: (90 minutes) Coding round was done on hackerrank . Given two numbers a and b, find kth digit from right of a^b. (Naïve method will only help you to pass half of the test cases) Second question was based on reducing a given expression in its smallest
3 min read
Flipkart Interview Experience | Set 40 (For SDE 1)
I was interviewed for Software Development Engineering (SDE1) role Flipkart. Round 1: Machine Coding round: (90 minutes) Given a binary tree as a sequence of (parent, child) tuples: (A B)(A C)(B G)(C H)(E F)(B D)(C E) Write a program to find following errors in the tree: E1: More than 2 children E2: Duplicate Tuples E3: Cycle present E4: Multiple r
2 min read
Flipkart Interview Experience | Set 41 (For SDE 1)
Round 1: Machine Coding - 90 mins (You need to code this on the interview site)(Any programming language) Best Selling Price You need to make a program in which 1.) You can add a product -> addProduct("p1") 2.) A user can purchase a product -> purchase("u1","p1") 3.) A user can return a product -> returnProduct("u1","p1") 4.) A user can be blacklis
2 min read
Flipkart Interview Experience | Set 42 (On Campus for SDE 1)
Round 1: Online Coding Round There were 3 questions and 90 minutes. 1. Question was based on union find algorithm (all test cases passed only if union by rank and path compression was used). Refer this. 2. Check if a given array can represent Preorder Traversal of Binary Search Tree. Refer this. 3. A simple ad-hoc problem. Round 2: Technical Interv
2 min read
Practice Tags :