i
Jupiter
Money
Filter interviews by
Check if a given binary tree is a Partial Binary Search Tree (BST). A Partial BST adheres to the following properties:
Check if a binary tree is a Partial Binary Search Tree (BST) based on specific properties.
Traverse the tree in level order and check if each node satisfies the properties of a Partial BST.
Use recursion to check if the left and right subtrees are also Partial BSTs.
Compare the data of each node with its children to ensure the BST properties are maintained.
Example: For input 1 2 3 4 -1 5 6 -1 7 -1 -1 -1 -1 -1 -1, the...
You are provided with two sorted linked lists. Your task is to merge them into a single sorted linked list and return the head of the combined linked list.
Merge two sorted linked lists into a single sorted linked list.
Create a new linked list to store the merged result.
Iterate through both input linked lists simultaneously, comparing and adding nodes to the result list.
Handle cases where one list is empty or both lists are empty.
Ensure the final merged list is sorted in ascending order.
Use constant space complexity and linear time complexity for the solution.
The city of Ninjaland is represented as an unweighted graph with houses and roads. There are 'N' houses numbered 1 to 'N', connected by 'M' bidirectional roads. A road ...
Implement a function to find the shortest path in an unweighted graph from a given start house to a destination house.
Use Breadth First Search (BFS) algorithm to find the shortest path in an unweighted graph.
Maintain a queue to explore neighboring houses and keep track of visited houses to avoid revisiting them.
Return the path once the destination house is reached.
Example: For input N=8, M=9, S=1, T=8 and roads (1...
You are given a matrix having N
rows and M
columns. Each cell of the matrix contains either 'X' or 'O'. Your task is to flip all the regions of 'O' that are completely surr...
Given a matrix with 'X' and 'O', flip all 'O' regions completely surrounded by 'X' to 'X'.
Iterate through the matrix and identify 'O' regions completely surrounded by 'X'.
Use DFS/BFS to mark all 'O's in the surrounded region.
Update the matrix by flipping all marked 'O's to 'X'.
Given an array of integers where each element appears an even number of times except for one element which appears an odd number of times, find the element that app...
Find the element that appears an odd number of times in an array of integers.
Iterate through the array and use XOR operation to find the element that appears odd number of times.
Keep a count of occurrences of each element using a hashmap.
Return the element that has an odd count of occurrences.
Given an array of integers, determine the maximum possible sum of any contiguous subarray within the array.
array = [34, -50, 42, 14, -5, 86]
Find the maximum sum of any contiguous subarray within an array of integers.
Iterate through the array and keep track of the maximum sum of subarrays encountered so far.
Use Kadane's algorithm to efficiently find the maximum subarray sum.
Handle cases where all elements are negative by returning the maximum element in the array.
Example: For array [34, -50, 42, 14, -5, 86], the maximum subarray sum is 137.
I appeared for an interview in May 2022.
Round duration - 90 minutes
Round difficulty - Medium
Timings: it was late night. I started the test at 10 pm
Check if a given binary tree is a Partial Binary Search Tree (BST). A Partial BST adheres to the following properties:
Check if a binary tree is a Partial Binary Search Tree (BST) based on specific properties.
Traverse the tree in level order and check if each node satisfies the properties of a Partial BST.
Use recursion to check if the left and right subtrees are also Partial BSTs.
Compare the data of each node with its children to ensure the BST properties are maintained.
Example: For input 1 2 3 4 -1 5 6 -1 7 -1 -1 -1 -1 -1 -1, the outp...
Round duration - 45 minutes
Round difficulty - Medium
It was the interviw round.
the environment was good.
the interviewer was very nice to me.
You are provided with two sorted linked lists. Your task is to merge them into a single sorted linked list and return the head of the combined linked list.
...Merge two sorted linked lists into a single sorted linked list.
Create a new linked list to store the merged result.
Iterate through both input linked lists simultaneously, comparing and adding nodes to the result list.
Handle cases where one list is empty or both lists are empty.
Ensure the final merged list is sorted in ascending order.
Use constant space complexity and linear time complexity for the solution.
Tip 1 : Please have a strong hold on data structures mainly linked lists, arrays, maths, stacks, trees
Tip 2 : Must explore about DBMS. Means SQL, writing efficient queries, about indexing and other SQL backend process.
Tip 3 : Should work on spring boot. try build some project using spring boot with java (Gradle) as Jupiter's backend tech is mainly based on spring boot with java.
Tip 1 : Mention only those skills on which you have worked on properly. no need to flood the resume with skills about which you need a little.
Tip 2 : Must mention the links of projects which you have worked on.
I appeared for an interview in Oct 2021.
Round duration - 120 minutes
Round difficulty - Medium
The online test was for 2 hrs in which 5 coding questions were asked. 3 questions were pretty easy and 2 were of medium difficulty level. I was able to solve all 5 questions.
The city of Ninjaland is represented as an unweighted graph with houses and roads. There are 'N' houses numbered 1 to 'N', connected by 'M' bidirectional roads. A road...
Implement a function to find the shortest path in an unweighted graph from a given start house to a destination house.
Use Breadth First Search (BFS) algorithm to find the shortest path in an unweighted graph.
Maintain a queue to explore neighboring houses and keep track of visited houses to avoid revisiting them.
Return the path once the destination house is reached.
Example: For input N=8, M=9, S=1, T=8 and roads (1, 2),...
Round duration - 60 minutes
Round difficulty - Medium
It started with the introduction and then we had a discussion on the projects I had made. He asked for several Backend and Database concepts like locking in DB, sessions, etc as I had mentioned backend internship in my resume. It took around half an hour.
Then he gave me a coding question based on the graph
You are given a matrix having N
rows and M
columns. Each cell of the matrix contains either 'X' or 'O'. Your task is to flip all the regions of 'O' that are completely sur...
Given a matrix with 'X' and 'O', flip all 'O' regions completely surrounded by 'X' to 'X'.
Iterate through the matrix and identify 'O' regions completely surrounded by 'X'.
Use DFS/BFS to mark all 'O's in the surrounded region.
Update the matrix by flipping all marked 'O's to 'X'.
Tip 1 : Practice 250+ standard quality questions.
Tip 2 : Do some good real-life projects in Front-end or Backend Development
Tip 3 : Try to find an internship that will not only enhance your development skills but also increase your resume selection chances.
Tip 1 : Add quality projects (2 will be sufficient)
Tip 2 : Add your coding profile links.
I appeared for an interview in Feb 2021.
Round duration - 45 minutes
Round difficulty - Medium
Two DSA questions were asked in this round in 45 min.
Given an array of integers, determine the maximum possible sum of any contiguous subarray within the array.
array = [34, -50, 42, 14, -5, 86]
Find the maximum sum of any contiguous subarray within an array of integers.
Iterate through the array and keep track of the maximum sum of subarrays encountered so far.
Use Kadane's algorithm to efficiently find the maximum subarray sum.
Handle cases where all elements are negative by returning the maximum element in the array.
Example: For array [34, -50, 42, 14, -5, 86], the maximum subarray sum is 137.
Given an array of integers where each element appears an even number of times except for one element which appears an odd number of times, find the element that ap...
Find the element that appears an odd number of times in an array of integers.
Iterate through the array and use XOR operation to find the element that appears odd number of times.
Keep a count of occurrences of each element using a hashmap.
Return the element that has an odd count of occurrences.
Tip 1 : Practice dsa from leetcode
Tip 2 : Compete in coding contests
Tip 3 : Do at least 2-3 projects
Tip 1 : If you have some past experience, add it.
Tip 2 : Also add your projects.
Top trending discussions
I appeared for an interview before Sep 2020.
Round duration - 90 mins
Round difficulty - Hard
There were questions related to DP and DFS.
You are given a long type array/list ARR
of size N
, representing an elevation map. The value ARR[i]
denotes the elevation of the ith
bar. Your task is to determine th...
Calculate the total amount of rainwater that can be trapped between given elevations in an array.
Iterate through the array and calculate the maximum height on the left and right of each bar.
Calculate the amount of water that can be trapped at each bar by taking the minimum of the maximum heights on the left and right.
Sum up the trapped water at each bar to get the total trapped water for the entire array.
Round duration - 60 mins
Round difficulty - Medium
At first, I was asked about the different projects that I have done so far. We had a detailed discussion on the same.
He also checked my OOP concepts
Designing an LRU Cache involves implementing a data structure that stores a fixed number of items and removes the least recently used item when full.
Start by defining the data structure for the cache, typically using a combination of a hashmap and a doubly linked list.
Implement methods for getting and setting key-value pairs in the cache.
When a new item is added to the cache, check if it exceeds the maximum capacity. I...
Given a Singly Linked List of integers, your task is to reverse the Linked List by altering the links between the nodes.
The first line of input is an intege...
Reverse a singly linked list by altering the links between nodes.
Iterate through the linked list and reverse the links between nodes
Use three pointers to keep track of the current, previous, and next nodes
Update the links between nodes to reverse the list
Return the head of the reversed linked list
You are given the head node of a singly linked list. Your task is to return a pointer pointing to the middle of the linked list.
If there is an odd number of elements, return the ...
Return the middle element of a singly linked list, or the one farther from the head if there are even elements.
Traverse the linked list with two pointers, one moving twice as fast as the other
When the fast pointer reaches the end, the slow pointer will be at the middle
If there are even elements, return the one that is farther from the head node
Handle edge cases like linked list of size 1 or empty list
Round duration - 60 mins
Round difficulty - Medium
It is HR + Technical round
asked about the Behavioural questions and how you justify yourself in an argument .questions related to current technology.
They gave me feedback on how well I had performed so far and gave me suggestions on what more can I do to further improve myself.
Tip 1 : Be thorough about your projects
Tip 2 : Prepare Ds and Algo and Practice all standard questions
Tip 3 : Know the complexities of the code that you’ve written.
Tip 1 : Mention at least 2 projects.
Tip 2 : Don't make any silly spelling mistakes on resume
I appeared for an interview in Dec 2020.
Round duration - 50 minutes
Round difficulty - Easy
Your task is to rearrange a given array ARR
such that all zero elements appear at the beginning, followed by non-zero elements, while maintaining the relative order of...
Rearrange an array such that all zero elements appear at the beginning, followed by non-zero elements, maintaining relative order of non-zero elements.
Iterate through the array and move all zero elements to the left side of the array while maintaining the relative order of non-zero elements.
Use two pointers approach to swap elements efficiently.
Ensure to solve the problem in linear time and constant space complexity.
Ex...
Given a maze of size N * N
with a rat placed at the top-left corner, find and print all possible paths that the rat can take to reach the bottom-right corner. The rat can m...
Find and print all possible paths for a rat to reach the bottom-right corner of a maze.
Create a recursive function to explore all possible paths in the maze.
Keep track of the current path and mark visited cells.
Return the paths as matrices with 1 for cells in the path and 0 for others.
Round duration - 60 minutes
Round difficulty - Medium
First 10 minutes started with the Introduction. Then he asked about my projects. He seemed interested in my projects and asked a lot of questions about them.
You are provided with a chain of matrices A1, A2, A3, ..., An. The goal is to determine the minimum number of scalar multiplications needed to multiply these ...
The goal is to determine the minimum number of scalar multiplications needed to multiply a chain of matrices together.
Understand the matrix chain multiplication problem statement and how the dimensions of matrices are defined by the input array.
Implement a dynamic programming approach to find the minimum cost of matrix multiplication.
Consider the constraints provided and optimize the solution accordingly.
Test the solut...
Designing an application like Instagram involves creating a platform for sharing photos and videos with social networking features.
Implement user profiles with the ability to upload, like, comment, and share photos/videos
Develop a news feed algorithm to display content based on user preferences and interactions
Include features like filters, hashtags, geotagging, and direct messaging
Integrate push notifications for like...
Round duration - 20 minutes
Round difficulty - Easy
Tip 1 : Good understanding OOPS
Tip 2 : Practice standard Ds and Algo questions
Tip 3 : Be confident
Tip 1 : Resume should be one page.
Tip 2 : Don't mention those things your not confident of
I appeared for an interview before Jun 2023.
Design a parking lot system with multiple levels and spots for cars.
Create a class for ParkingLot with attributes like levels, spots per level, etc.
Implement methods for parking a car, removing a car, checking availability, etc.
Consider implementing a ticketing system for tracking parked cars.
Utilize data structures like arrays, lists, or maps to manage parking spots efficiently.
Use external sorting algorithm like merge sort to efficiently sort numbers in a large file.
Break the large file into smaller chunks that can fit into memory
Sort each chunk individually using a sorting algorithm like merge sort
Merge the sorted chunks back together to get the final sorted result
I applied via Approached by Company and was interviewed in Sep 2022. There were 2 interview rounds.
Find number of group of 1s in a 2D array of Os and 1s, Second question is to design a data structure which can perform crud operation.
Design a Ride sharing app, lld question, in java
I applied via Campus Placement and was interviewed in Nov 2023. There were 4 interview rounds.
Mcqs based on cs fundamentals and 2_3 coding questions
Merge two sorted linked lists into one.
Create a new linked list to store the merged list.
Compare the values of the nodes from both lists and add the smaller value to the new list.
Move the pointer of the list with the smaller value to the next node.
Repeat the comparison and addition until one of the lists is empty.
Add the remaining nodes from the non-empty list to the new list.
Return the new merged list.
I appeared for an interview in May 2022.
Round duration - 60 Minutes
Round difficulty - Medium
This round was scheduled with the SDE-2, we started with the introduction than he jumped to the dsa questions. First question he asked me was leetcode 3 sum problem, we discussed the approach than I wrote the code for that problem. Second question was of arrays and maps I didn't remember the exact question but that was also some modified version of k sum subarray. Than he asked many questions related to oops, I answered most of them than he asked me for any qiuestions and we dropped the call.
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 all possible triplets using three nested loops.
Check if the sum of the triplet equals the target sum.
Print the triplet if found, else print -1.
You are provided with an array arr
of size N
and an integer K
. Your objective is to compute the maximum sum of a subset of the array such that this sum does not exceed K
.
Find the maximum sum of a subset of an array that does not exceed a given value K.
Sort the array in descending order to maximize the sum.
Iterate through the array and add elements to the sum until it exceeds K.
Return the sum obtained before exceeding K.
Round duration - 40 Minutes
Round difficulty - Medium
This round was arranged with the Engineering Manager, we started with the introduction then he asked me to explain my project, I did that. After that he asked me one pattern question, I coded that than he asked me one more array question of finding mean, mode, median, I partially solved that question. Than he asked me for any questions and we dropped the call.
Create a grid pattern of size R rows and C columns, where each cell contains a diamond-like shape of size S. The diamond shape is made with characters ‘/’ and ‘\’ for the bord...
Create a grid pattern with diamond shapes of given size in each cell.
Iterate through each cell in the grid and construct the diamond shape based on the size provided.
Use 'e' for the outer space, '/' and '' for the borders, 'o' for the inner space of the diamond.
Adjust the positioning of characters based on the size of the diamond to create the desired pattern.
Given an integer array ARR
of size N
, you need to compute the following three statistical measures:
mean()
to calculate the mean o...Implement functions to calculate mean, median, and mode of an integer array.
Calculate mean by summing all elements and dividing by total count
Calculate median by sorting array and finding middle element(s)
Calculate mode by finding element with highest frequency, return smallest if multiple
Tip 1 : Practice at least 300 Questions from leetcode
Tip 2 : Prepare your project.
Tip 1 : Add at least 4 projects.
Tip 2 : Add your coding profiles and GPA.
I applied via Approached by Company and was interviewed before Sep 2023. There was 1 interview round.
based on 1 review
Rating in categories
Customer Support Executive
20
salaries
| ₹3.8 L/yr - ₹6 L/yr |
Customer Service Executive
17
salaries
| ₹5 L/yr - ₹6.5 L/yr |
Software Development Engineer II
16
salaries
| ₹23.8 L/yr - ₹48 L/yr |
Product Manager
12
salaries
| ₹13 L/yr - ₹39 L/yr |
Software Engineer
10
salaries
| ₹22 L/yr - ₹30 L/yr |
Rupeek
Razorpay
ACKO
Revolut