Filter interviews by
I applied via Campus Placement and was interviewed in Sep 2024. There was 1 interview round.
Count the number of connected components (provinces) in a graph represented by an adjacency matrix.
Use Depth First Search (DFS) or Breadth First Search (BFS) to explore the graph.
Each time you start a new DFS/BFS from an unvisited node, increment the province count.
Example: For a matrix [[1,0],[0,1]], there are 2 provinces.
For a matrix [[1,1],[1,1]], there is 1 province.
I have worked on various projects including a web application for tracking personal finances and a mobile app for managing grocery lists.
Developed a web application using React.js and Node.js for tracking personal finances
Created a mobile app using Flutter for managing grocery lists
Implemented RESTful APIs for communication between frontend and backend systems
Async await in JavaScript is a way to write asynchronous code that looks synchronous, making it easier to manage promises.
Async functions return a promise.
Await keyword is used inside async functions to wait for a promise to resolve.
Async await helps avoid callback hell and makes code more readable and maintainable.
Sharding is a technique used in DBMS to horizontally partition data across multiple databases to improve performance and scalability.
Sharding involves breaking up a large database into smaller, more manageable pieces called shards.
Each shard contains a subset of the data, allowing for parallel processing and improved performance.
Sharding helps distribute the workload across multiple servers, reducing the load on any si...
I appeared for an interview before Oct 2023.
The 'Number of Provinces' problem involves finding connected components in a graph representation of provinces.
Represent the provinces and connections as an adjacency list or matrix.
Use Depth First Search (DFS) or Breadth First Search (BFS) to explore each province.
Count each time a new DFS/BFS starts as it indicates a new province.
Example: For a graph with edges [[0,1],[1,2],[3,4]], there are 2 provinces: {0,1,2} and ...
Async await in JavaScript is a way to write asynchronous code that looks synchronous, making it easier to read and maintain.
Async functions return a Promise.
Await keyword is used to pause the execution of async functions until a Promise is settled.
Async await simplifies error handling in asynchronous code.
I have worked on various projects including a web application for tracking personal finances and a mobile app for managing grocery lists.
Developed a web application using React and Node.js to track personal finances
Created a mobile app using Flutter to manage grocery lists
Collaborated with a team to implement features and fix bugs
Utilized version control systems like Git for project management
Implementing a custom class in C++
Define the class using the 'class' keyword
Add member variables and member functions
Implement constructors and destructors
Overload operators for custom functionality
Top trending discussions
I applied via LinkedIn and was interviewed before May 2023. There were 2 interview rounds.
Logical problems and mathematical questions commonly asked .. English proficiency
I applied via Naukri.com and was interviewed in Jul 2020. There were 3 interview rounds.
posted on 27 Dec 2024
posted on 24 Sep 2022
I applied via Campus Placement and was interviewed before Sep 2021. There were 3 interview rounds.
Case study on AI Machine Learning project to be submitted
Assignment questions on python librabies and implementation
posted on 15 Sep 2021
I appeared for an interview before Sep 2020.
Round duration - 60 minutes
Round difficulty - Medium
Problem Solving and coding interview. Friendly interviewer.
You are given two integer arrays Arr1
and Arr2
of sizes N
and M
respectively. Both Arr1
and Arr2
represent Max-Heaps. Your task is to merge these two arrays wh...
Merge two Max-Heap arrays while retaining order and construct the merged Max-Heap.
Merge the two arrays while maintaining their respective order.
Construct the Max-Heap obtained after merging the arrays.
Ensure the final Max-Heap is valid based on the given heaps.
Your task is to determine if two given strings are anagrams of each other. Two strings are considered anagrams if you can rearrange the letters of one string to form the...
Determine if two strings are anagrams of each other.
Create character frequency maps for both strings
Compare the frequency of characters in both maps
Return True if the frequency maps are equal, else False
Round duration - 30 minutes
Round difficulty - Easy
General round of interview. Questions based on resume (very few).
Behavioural Round
Ninja, the log cutter, has 'K' axes and an infinite amount of logs. Using a log cutting stand with a capacity 'N', he can attempt to cut at most 'N' logs at a time. A...
Yes, this problem can be solved with a worst-case time complexity of N^1/3.
Use binary search to find the maximum number of logs an axe can cut without breaking.
Divide the search space into three parts: low, mid, and high.
Check if the mid value is feasible, if yes, move to the left half, else move to the right half.
Repeat the process until the optimal value is found.
Example: For K=2 and N=6, the minimum number of moves ...
Tip 1 : Never leave any topic from any chapter / Subject
Tip 2 : Learn to explain your thoughts well
Tip 3 : Learn from previous experiences / interviews / problems asked.
Tip 4 : Atleast 4 projects in Resume
Tip 1 : Atleast 4 projects on Resume
Tip 2 : Do not write false things. You always get caught. Be genuine.
I appeared for an interview before Sep 2020.
Round duration - 45 Minutes
Round difficulty - Medium
This was a straight coding round with three questions , I was able to solve all 3
You are given a continuous stream of numbers, and the task is to determine the kth largest number at any moment during the stream.
A specialized data st...
Design a data structure to find the kth largest number in a continuous stream of integers.
Design a specialized data structure to handle continuous stream of numbers
Implement add(DATA) function to add integers to the pool
Implement getKthLargest() function to retrieve the kth largest number
Maintain the pool of numbers and update it based on queries
Output the kth largest number for each Type 2 query
You need to determine all possible paths for a rat starting at position (0, 0) in a square maze to reach its destination at (N-1, N-1). The maze is represented as an N*N ma...
Find all possible paths for a rat in a maze from source to destination.
Use backtracking to explore all possible paths in the maze.
Keep track of visited cells to avoid revisiting them.
Recursively try moving in all directions (up, down, left, right) until reaching the destination.
Add the valid path to the result list when the destination is reached.
Sort the result list in alphabetical order before returning.
Round duration - 60 Minutes
Round difficulty - Medium
As this was my first system design round, I was not expecting to be able to tell anything , but to my surprize he interested in just the idea what I can think , how I can solve some issues which need not be definitely to have a solution / or multiple solutions are possible from common sense.
I was given an Idea based question
Tip 1 : Be focused on the question and keep trying, Project needs to be well understood and somewhat on your tips.
Tip 2 : Don't code till you are sure and got a green signal about the efficiency and correctness of logic
Tip 3 : Just brush up your DS basics and some logical algorithms (Dijkstra, Shortest spanning tree , etc)
Tip 1 : Experience must be highlighted, or the Project whichever you would like to discuss
Tip 2 : Links are always a great way to show your work (deployed/code)
I appeared for an interview before Sep 2020.
Round duration - 60 Minutes
Round difficulty - Medium
The round consisted of 3 questions of medium difficulty to be completed in 60 minutes.
Given a string STR
of length N
composed of lowercase English letters, your task is to determine the minimum number of characters that need to be added to make the s...
Given a string, find the minimum number of characters needed to make it a palindrome.
Iterate through the string from both ends and count the number of characters that need to be added to make it a palindrome.
Use dynamic programming to optimize the solution by considering subproblems.
Handle edge cases such as an already palindrome string or an empty string.
Example: For input 'abb', the output should be 1 as adding 'a' m...
Given a binary tree with 'N' nodes and a specific node in this tree, you need to determine and return a sorted list of the values of the node's cousins. The cousin...
Given a binary tree and a specific node, return a sorted list of the node's cousins.
Traverse the binary tree to find the parent of the given node and its depth.
Traverse the tree again to find nodes at the same depth but with different parents.
Return the sorted list of cousin node values or -1 if no cousins exist.
Rearrange a given array 'ARR' with 'N' integers so that all negative numbers appear before all positive numbers.
Can you solve this in O(1) auxiliary sp...
Rearrange array with negative numbers at the beginning, order not important.
Iterate through the array and swap negative numbers to the beginning using two pointers approach.
Maintain one pointer for negative numbers and another for positive numbers.
Time complexity: O(N), Space complexity: O(1).
Round duration - 40 minutes
Round difficulty - Easy
One interviewer asked the same question to two of us.
Both of us could qualify if we solved it correctly.
Convert a given binary tree into its mirror tree, where the left and right children of all non-leaf nodes are interchanged.
An integer ‘T’ denoting the number o...
Convert a binary tree into its mirror tree by interchanging left and right children of non-leaf nodes.
Traverse the tree in postorder fashion and swap the left and right children of each node.
Recursively call the function on the left and right subtrees.
Modify the tree in place without creating a new tree.
Tip 1 : Before diving aimlessly into a sea of questions, try to create a roadmap for yourself. This roadmap will take into account your strengths and weaknesses and you should be allotting time accordingly.
Tip 2 : Companies like Samsung do check your resume and grill you accordingly. Make sure to have atleast 3 projects with 1 of them being pretty good.
Tip 3 : Ideally, all your projects should be deployed publicly: either on Github/Heroku/Kaggle/App Store depending on the type of development. This will give you an advantage over others.
Tip 1 : Try not to lie. Only put things you are extremely confident about. You don't want to get blacklisted by the company.
Tip 2 : Try not to put trivial skills like Git/Github. Every developer is expected to know of these.
Tip 3 : Do not make any spelling mistakes on your CV. This just goes to show your carelessness.
I appeared for an interview before Sep 2020.
Round duration - 75 minutes
Round difficulty - Easy
Timing it is around 11 am and Environment is good .
A ninja bird can gather fruits from trees arranged in a circle. Each tree has an associated fruit value. The bird can gather all the fruits from a tree i...
The task is to find the maximum number of fruits a bird can gather within a given time frame, moving between adjacent trees.
Start from each tree and calculate the maximum fruits that can be gathered within the time frame.
Use a sliding window approach to keep track of the fruits collected while moving between trees.
Choose the starting tree that gives the maximum total fruits collected.
Example: For input N=7, M=3, ARR={2...
You are given a decimal number 'N'. Your task is to convert this number into a base 58 representation.
The Base58 alphabet is defined by the following characters: “12...
Convert a decimal number to base 58 using a specific alphabet.
Iterate through each test case and convert the decimal number to base 58 using the given alphabet.
Handle the conversion by dividing the number by 58 and taking the remainder to find the corresponding base 58 character.
Build the base 58 representation by appending the characters in reverse order.
Output the final base 58 representation for each test case.
Round duration - 45 mintues
Round difficulty - Medium
Environment was very friendly but questions asked are hard
You are provided with an array ARR
consisting of N
distinct integers in ascending order and an integer TARGET
. Your objective is to count all the distinct pairs in ARR
whose sum...
Count distinct pairs in an array whose sum equals a given target.
Use two pointers approach to iterate through the array and find pairs with sum equal to target.
Keep track of visited pairs to avoid counting duplicates.
Return -1 if no such pair exists with the given target.
Given an array or list ARR
consisting of N
integers, your task is to identify all distinct triplets within the array that sum up to a specified number K
.
A t...
The task is to find all distinct triplets in an array that sum up to a specified number.
Iterate through the array and use nested loops to find all possible triplets.
Use a set to store unique triplets and check if the sum equals the target sum.
Handle edge cases like duplicate elements and no valid triplets.
Return the triplets or -1 if no valid triplet exists.
Tip 1 : Practice Atleast 500 Questions
Tip 2 : Do atleast 1 good projects
Tip 3 : You should be able to explain your project
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.
based on 2 interview experiences
Difficulty level
Duration
Medical Officer
26
salaries
| ₹1 L/yr - ₹7.4 L/yr |
Key Account Manager
21
salaries
| ₹6.9 L/yr - ₹22 L/yr |
Senior Executive
18
salaries
| ₹4.6 L/yr - ₹8 L/yr |
Case Manager
14
salaries
| ₹5 L/yr - ₹7 L/yr |
Inside Sales Executive
13
salaries
| ₹5.2 L/yr - ₹6.5 L/yr |
Housejoy
Technique Control Facility Management
Impressions Services
Sms Integrated Facility Services