i
Cult.fit
Filter interviews by
I appeared for an interview in Nov 2020.
Round duration - 45 Minutes
Round difficulty - Medium
The first Round was held on Hackerrank and the questions were of medium difficulty based on Data Structures and Algorithms.
The time of test was 1:00 PM and it was of 45 minutes with 2 coding questions to be solved.
You are provided with 'N' intervals, each containing two integers denoting the start time and end time of the interval.
Your task is to merge all overlapping intervals a...
Merge overlapping intervals and return sorted list of merged intervals by start time.
Sort the intervals based on start time.
Iterate through intervals and merge overlapping intervals.
Return the list of merged intervals sorted by start time.
Consider 'N' individuals standing in a circle, numbered consecutively from 1 to N, in a clockwise direction. Initially, the person at position 1 starts counting and will skip K-...
The Josephus problem involves eliminating every Kth person in a circle until only one person remains. Determine the position of the last person standing.
Use a circular linked list to simulate the circle of people.
Iterate through the list, skipping K-1 nodes and removing the Kth node until only one node remains.
Return the position of the last remaining node.
Example: For N=5, K=2, the last person standing is at position
Round duration - 75 minutes
Round difficulty - Medium
A google Doc was shared with us and we were supposed to write code there.
Use of IDEs was not allowed so we had to write correct code on Google Docs which was later checked by them through online IDEs.
The Interviewer were friendly and observative and helped us through code if we made some silly error.
You are given an array/list HEIGHTS
of length N
, where each element represents the height of a histogram bar. The width of each bar is considered to be 1.
Compute the area of the largest rectangle that can be formed within the bounds of a given histogram.
Iterate through the histogram bars and maintain a stack to keep track of increasing heights.
Calculate the area of the rectangle by considering the current height and the width of the rectangle.
Update the maximum area found so far as you iterate through the histogram.
Handle edge cases like when the stack is empty or when ...
Given a binary tree of integers, your task is to return the boundary nodes of the tree in Anti-Clockwise direction starting from the root node.
The first line ...
Return the boundary nodes of a binary tree in Anti-Clockwise direction starting from the root node.
Traverse the left boundary nodes in top-down order
Traverse the leaf nodes in left-right order
Traverse the right boundary nodes in bottom-up order
Handle duplicates by including them only once
Round duration - 60 minutes
Round difficulty - Easy
The face to face round was held on Google Meet where initially interviewer asked a DS/Algo problem. Later the manager joined and asked about our resume projects in detail.
The time was 10:00 AM.
Given an array of numbers, the task is to find the maximum sum of any contiguous subarray of the array.
The first line of input contains the size of the arr...
Find the maximum sum of any contiguous subarray in an array of numbers in O(N) time.
Use Kadane's algorithm to find the maximum subarray sum in O(N) time.
Initialize two variables: max_sum and current_sum to keep track of the maximum sum found so far and the current sum of the subarray being considered.
Iterate through the array and update current_sum by adding the current element or starting a new subarray if the current...
Given a sorted array that has been rotated clockwise by an unknown amount, you need to answer Q
queries. Each query is represented by an integer Q[i]
, and you must ...
Search for integers in a rotated sorted array efficiently using binary search.
Use binary search to efficiently find the index of each query integer in the rotated sorted array.
Handle the rotation of the array by finding the pivot point first.
Check which half of the array the query integer falls into based on the pivot point.
Return the index of the query integer if found, else return -1.
Tip 1 : Prepare OS,DBMS,OOPs too
Tip 2 : Mention at-least one project or past work experience in your resume
Tip 3 : Try maintaining 8+ CGPA as sometimes shortlist is done based on CGPA
Tip 4 : Try past interview questions from Leetcode,Interviewbit.
Tip 1 : Try to Keep Resume 1 Pager
Tip 2 : Have atleast one project or past work experience mentioned
Tip 3 : Don't put false things on Resume as questions are asked in detail from Resume
I appeared for an interview before Sep 2020.
Round duration - 60 Minutes
Round difficulty - Medium
It was early in the morning from 8 am. It was a test from home itself. It was a conducted on HackerEarth and was of 60 minutes duration. 30 students were shortlisted. I was also shortlisted.
You are given a list of N
strings called A
. Your task is to determine whether you can form a given target string by combining one or more strings from A
.
The strings from A
c...
Given a list of strings, determine if a target string can be formed by combining one or more strings from the list.
Iterate through all possible combinations of strings from the list to form the target string.
Use recursion to try different combinations of strings.
Check if the current combination forms the target string.
Return true if a valid combination is found, otherwise return false.
Your task is to break a board of given dimensions 'L' by 'W' into 'L' * 'W' smaller squares, ensuring the total cost of breaking is minimized.
The first line con...
The task is to minimize the cost of breaking a board into smaller squares by making horizontal and vertical cuts.
Iterate through all possible horizontal and vertical cuts to find the minimum cost
Use dynamic programming to optimize the solution by storing intermediate results
Calculate the total cost by summing up the costs of all cuts
Round duration - 45 Minutes
Round difficulty - Hard
This round was scheduled around 12 pm. It was a virtual round with one interviewer who was a Cure.Fit employee. My resume was scanned and a brief introduction was asked. After that a question was put up which I had to find solution to and code it. In the end, I asked questions regarding the type of projects they work on etc. I was selected for the next round
Given a string of length 'N' containing only the characters: '[', '{', '(', ')', '}', ']'. At certain places, the character 'X' appears in place of any bracket. Your go...
Determine if a valid balanced sequence can be achieved by replacing 'X's with suitable brackets.
Iterate through the string and keep track of the count of opening and closing brackets.
If at any point the count of closing brackets exceeds the count of opening brackets, return False.
If all 'X's can be replaced to form a valid balanced sequence, return True.
Round duration - 60 Minutes
Round difficulty - Easy
As soon as the HR round got over. I was asked to sit for my next round. It was again a problem solving round along with Data Structure questions in the end. The interviewer was an employee of Cure.Fit and after a brief introduction, I was given a question. After solving it, I was asked questions on Hashmaps, their implementation, time complexities. Finally, I was selected :)
You are given the ‘root’ of a Balanced Binary Search Tree and an integer ‘target’. Your task is to determine if there exists any pair of nodes such ...
Given a Balanced BST and a target integer, determine if there exists a pair of nodes with sum equal to the target.
Traverse the BST in-order to get a sorted array of values.
Use two pointers approach to find the pair with sum equal to target.
Consider edge cases like negative numbers and duplicates.
Time complexity can be optimized to O(n) using a HashSet to store visited nodes.
Tip 1 : Do competitive programming and maintain a decent rating across platforms. This will make you comfortable with the coding rounds and thinking under pressure and in a time-bounded manner.
Tip 2 : Practice some company wise questions, especially of Google, Facebook, Amazon, Microsoft from Leetcode 1-2 months before the placement/internship season to get yourself accustomed to good interview type questions.
Tip 3 : Practice Dynamic Programming using a top-down approach as this not only improves DP but also improves recursion thinking. Recursion in turn help you to solve questions on Trees, graphs, and backtracking.
Tip 4 : Have at least 2 good projects on your resume which is solving some real-life problems. I won't recommend making just clones, rather add more functionalities. Web Development projects are good to start with.
Tip 5 : Study the core subjects for internships in the following priority manner: OOPS>>OS>=DBMS. Some colleges may have System Design as well. That can be studied in the same manner like OS.
Tip 6 : Get yourself a good mentor to guide yourself.
Tip 1 : Keep your resume simple and formal.
Tip 2 : Having a past internship opportunity is a plus.
Tip 3 : Have good projects and mention them only if you know the depth of it.
Tip 4 : List your achievements chronologically and focus on participating in various competitions and getting recognition.
I appeared for an interview before Sep 2020.
Round duration - 60 minutes
Round difficulty - Easy
Had to solve 2 easy coding problems. Could be solved in 25 minutes if you are well prepared with DS-Algo.
Given a list of ‘N’ jobs, each associated with a deadline and a profit obtainable if completed by the deadline, schedule the jobs to maximize the total profit. Each job ta...
The job scheduling problem involves maximizing profit by scheduling jobs with deadlines and profits optimally.
Sort the jobs in decreasing order of profit.
Iterate through the sorted jobs and schedule them based on their deadlines.
Keep track of the maximum profit achievable by scheduling jobs within their deadlines.
Example: For input Jobs: 'A'(profit=20, deadline=1), 'B'(profit=30, deadline=2), 'C'(profit=40, deadline=2)...
Given a matrix A
with dimensions 'N' x 'M', where each cell represents the height of water in that location, determine the coordinates from which water can flow to both the Pa...
Given a matrix representing water heights, find coordinates where water can flow to both Pacific and Atlantic oceans.
Create a function that performs a depth-first search to find coordinates where water can flow to both oceans.
Keep track of visited cells and check if a cell can flow to both oceans by comparing its height with neighboring cells.
Return the coordinates in lexicographical order as the output.
Round duration - 40 minutes
Round difficulty - Medium
Questions on Computer science subjects like OS, DBMS, OOP
Different types of memory in operating systems include RAM, ROM, virtual memory, cache memory, and registers.
RAM (Random Access Memory) - volatile memory used for storing data that is actively being used by the CPU
ROM (Read-Only Memory) - non-volatile memory that stores firmware and boot-up instructions
Virtual Memory - a memory management technique that uses disk space as an extension of RAM
Cache Memory - high-speed me...
Round duration - 40 minutes
Round difficulty - Easy
General Discussion on Resume, some in depth questions on a project of interviewer's choice.
Tip 1 : Never leave any topic from any chapter or subject
Tip 2 : Learn to explain your thoughts well
Tip 3 : Learn from previous experiences / interviews / problems asked.
Tip 4 : At least have 4 projects in Resume
Tip 1 : At least have 4 projects on Resume
Tip 2 : Do not write false things. You always get caught. Be genuine.
Top trending discussions
posted on 2 May 2024
I applied via LinkedIn and was interviewed in Dec 2023. There were 3 interview rounds.
Java script questions, promise, linked list
posted on 1 Sep 2023
Initial will be coding test on array , loops
posted on 13 Sep 2024
Asked dsa problem. It was a sliding window problem.
This was taken by the engineering manager. asked couple of oops qns and dsa problem
This was taken by the cofounder. more of a get to know
Logical
Difficult
I applied via Recruitment Consultant and was interviewed in May 2019. There was 1 interview round.
Center Manager
304
salaries
| ₹2.4 L/yr - ₹5.8 L/yr |
Associate Center Manager
183
salaries
| ₹2.4 L/yr - ₹6 L/yr |
Assistant Manager
61
salaries
| ₹3 L/yr - ₹9.8 L/yr |
Operations Manager
55
salaries
| ₹2.3 L/yr - ₹7.1 L/yr |
Fitness Trainer
47
salaries
| ₹2 L/yr - ₹5.6 L/yr |
Forever Living Products
Amway India Enterprises
Vestige
Fitelo