Filter interviews by
I applied via Referral and was interviewed before Oct 2023. There was 1 interview round.
Use a hash set to find duplicates in an array of strings.
Create a hash set to store unique elements.
Iterate through the array and check if the element is already in the hash set.
If it is, then it is a duplicate. If not, add it to the hash set.
Split a string without using any library into an array of strings
Iterate through the characters of the string and split based on a delimiter
Use a loop to find the delimiter and create a new substring
Store each substring in an array
Top trending discussions
I was interviewed in Mar 2022.
Round duration - 60 minutes
Round difficulty - Medium
Mcq + Data structures questions
O(1) because the extra space being used (looping vari...
Round duration - 70 minutes
Round difficulty - Medium
Standard System Design round
Design a Doctor Appointment System with some testcases
Tip 1 : Implement using OOPs
Tip 2 : Try to tell your approach to the interviewer as much as you can side by side
Round duration - 90 minutes
Round difficulty - Medium
Interview of DSA + OOPS + Databse(SQL query) + Operating System
If the input tree is as depicted in the picture:
The Left View of the tree will be: 2 35 2
This problem can be solved through recursion.We will maintain max_level variable which will keep track of maxLevel and will pass current level in recursion as argument. Whenever we see a node whose current level is more than maxLevel then we will print that node as that will be first node for that current level. Also update maxLevel with current level.
Space Complexity: O(n)Explanation:O(N), where ‘N’...
What is the difference between CHAR and VARCHAR2 datatype in SQL?
Write an SQL query to find names of employees starting with ‘A’?
What are the various types of constructors in C++?
What is the difference between overloading and overriding?
What is a process? What are the different states of a process?
What is IPC? What are the different IPC mechanisms?
Round duration - 60 minutes
Round difficulty - Easy
Hr round - normal hr questions + situational
Thoughtworks community discussion
Why should we hire you?
Tip 1 : Read all Thoughtworks community page and be honest
Tip 2 : Be open-minded and answer whatever you are thinking, in these rounds I feel it is important to have opinion.
Tip 3 : The cross-questioning can go intense sometimes, think before you speak.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I was interviewed before May 2021.
Round duration - 45 minutes
Round difficulty - Medium
This was a technical round.
Concept of indexing can be used to solve this question.
Traverse the array. For every element at index i,visit a[i]. If a[i] is positive, then change it to negative. If a[i] is negative, it means the element has already been visited and thus it is repeated. Print that element.
Pseudocode :
findRepeating(arr[], n)
{
missingElement = 0
for (i = 0; i < n; i++){
element = arr[abs(arr[i])]
if(element < 0){
...
Sorting can be used to solve this problem. Next, two -pointer technique can be applied on the sorted array.
Traverse the array and fix the first element of the triplet. Now use the Two Pointer technique to find if there is a pair whose sum is equal to x – array[i].
• Algorithm :
1. Sort the given array.
2. Loop over the array and fix the first element of the possible triplet, arr[i].
3. Then fix two pointers, one at i...
Round duration - 45 minutes
Round difficulty - Medium
This was a technical interview round with questions on Programming and algorithms.
The direct approach to solve this problem is to run two for loops and for every subarray check if it is the maximum sum possible.
Time complexity: O(N^2), Where N is the size of the array.
Space complexity: O(1)
The efficient approach is to use Kadane's algorithm. It calculates the maximum sum subarray ending at a particular index by using the maximum sum subarray ending at the previous position.
Steps :
D...
Round duration - 50 minutes
Round difficulty - Medium
This was a difficult on to face as we have to hold phone and concentrate and explaining is also very difficult.
The idea is to traverse the given list of prices and find a local minimum of every increasing sequence. We can gain maximum profit if we buy the shares at the starting of every increasing sequence (local minimum) and sell them at the end of the increasing sequence (local maximum).
Steps :
1. Find the local minima and store it as starting index. If not exists, return.
2. Find the local maxima. and store it as an endi...
Dijkstra's Algorithm basically starts at the source node and it analyzes the graph to find the shortest path between that node and all the other nodes in the graph.
The algorithm keeps track of the currently known shortest distance from each node to the source node and it updates these values if it finds a shorter path.
Once the shortest path between the source node and another node is found, that node is marked as "visi...
Round duration - 30 minutes
Round difficulty - Easy
This was a small interaction just to make us familiar in Mumbai office.
1. Introduce Yourself.
2. What do you think about Directi?
3. What are your favourite subjects?
4. Which programming language do you prefer?
Tip 1 : The cross questioning can go intense some time, think before you speak.
Tip 2 : Be open minded and answer whatever you are thinking, in these rounds I feel it is important to have opinion.
Tip 3 : Context of questions can be switched, pay attention to the details. It is okay to ask questions in these round, like what are the projects currently the company is investing, which team you are mentoring. How all is the
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
posted on 31 May 2022
I was interviewed in Mar 2022.
Round duration - 90 minutes
Round difficulty - Medium
It consists of 3 questions:
The first question was related to DP (Hard)
Second was related to math(Easy)
Third was related to string (Medium)
I was able to pass only 1 test case out of 5
1. Trailing zeros in a number can be defined as the number of continuous...
I was able to pass only 3 test case out of 5
Example: String "aabb...
I was able to pass all test cases
Round duration - 45 minutes
Round difficulty - Medium
Standard DS/Algo round. It was at around 12 PM
1. Rightmost element is alwa...
Start the iteration from the right side and keep the track of the maximum array till that particular element of the array.
First I solved this question in O(n) space and O(n) time then they asked me to optimize it and solve it without extra space.
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. The...
The brute force approach is to use recursion. First, we reach the end of the Linked List recursively and at last node, we return the last node, which becomes the new head of the partially reversed Linked List. While coming back from each recursion call we add the current node in the current recursion call to the last node of the partially reversed Linked List and assign the current node to null.
Steps:
&...
Round duration - 35 minutes
Round difficulty - Easy
First, he asked me to introduce myself.
Then, he told me that as you know this is a design round so design a music player like Spotify.
First, I have designed the database using tables and Primary and Foreign Keys.
Then, he told me to write the code for it and told me that before I write the code tell me that which data structure will you use and why?
Then, he discussed with me for around 10 to 15 min that why am I using particular DS and why not someone else and what will be the problem in a particular data structure, and how will certain DS perform in case of various operations like searching, adding, deleting the songs in the music player.
Then, he told me to write the code for a playlist of this music player with all possible operations.
Design a music player like Spotify
Tip 1 : First design the database and show them the database schema
Tip 2 : Then share your approach and data structures which you'll use
Round duration - 30 minutes
Round difficulty - Easy
Interviewer was very friendly
And, timing was around 12.30 PM
Why should we hire you?
Tip 1 : The cross-questioning can go intense sometimes, think before you speak.
Tip 2 : Be open-minded and answer whatever you are thinking, in these rounds, I feel it is important to have an opinion.
Tip 3 : Context of questions can be switched, pay attention to the details. It is okay to ask questions in these rounds, like what are the projects currently the company is investing in, which team you are mentoring, ...
Do you know anything about the company?
General Tip : Before an interview for any company, have a brief insight about the company, what it does, when was it founded and so on. All these info can be easily acquired from the Company Website itself.
Tip 1 : Practice Atleast 100+ questions
Tip 2 : Clear with your approach and time-space complexity of your approach
Tip 3 : Also focus on low-level design
Tip 1 : Mention your coding handles
Tip 2 : Also, mention about your project tech stacks
I was interviewed in Feb 2022.
Round duration - 50 minutes
Round difficulty - Medium
A flexible window of 6 hours was provided to attempt the 1 hour test
Order o...
In this approach, iterate through the integers 1 to N, then check for each integer if it is a palindrome or not.
To check if an integer is a palindrome, convert the integer into a string and check if it is equal to the reverse.
We define a function isPalindrome(num), where we check if num is palindrome or not and return the result accordingly.
Algorithm:
Round duration - 60 minutes
Round difficulty - Easy
The interviewer was chill and quite polite.
Write a query to output the data of students whose name starts with A
Define OS and Process table
1. Input an ArrayList from the user
2. Traverse and store the occurence in hashmap
3. Remove the elements with more than one frequency
Round duration - 20 minutes
Round difficulty - Easy
Standard HR round with some behavioural questions
1) Why should we hire you ?
2) What are your expectations from the company?
3) How was your overall interview experience?
4) What are your strengths and weakness according to you?
5) Where do...
Tip 1 : Focus on your positives
Tip 2 : Speak with confidence
Tip 3 : Be honest
Tip 1 : Be thoroughly prepared with DSA
Tip 2 : Focus on DBMS
Tip 3 : Be prepared with skills mentioned in resume
Tip 1 : Mention some good projects
Tip 2 : Don't put false statements on your resume
posted on 31 May 2022
I was interviewed before May 2021.
Round duration - 60 Minutes
Round difficulty - Medium
It was an online technical, aptitude, and English test.
The task is to sort the elements of ARR in such a way that the relative order among the elements will be the same as those are in BRR. For the elements not present in BRR, append them in the last in sorted order.
Create a frequency map of elements in ARR
Iterate through BRR and for each element, append it to the result array the number of times it appears in ARR
Iterate through the frequency map and for each element not p...
Round duration - 30 Minutes
Round difficulty - Easy
It was a face to face technical interview round where based on my previous study and resume I was supposed to answer the questions asked by them.
Difference between equal and equals.
Difference between overloading and overriding.
What is inheritance.
What types of inheritance are supported by java.
equal is a keyword used for assignment, equals is a method used for comparing objects.
equal is used for assigning a value to a variable
equals is used for comparing objects for equality
Example: int x = 5; String s1 = "hello"; String s2 = new String("hello"); s1.equals(s2) returns true
1. What is primary, candidate and foreign key.
2. Write a query to join three tables.
Primary key uniquely identifies a record in a table. Candidate key is a unique key that can be chosen as the primary key. Foreign key establishes a link between two tables.
Primary key ensures uniqueness and is used to identify records in a table.
Candidate key is a unique key that can be chosen as the primary key.
Foreign key establishes a relationship between two tables based on the values of the primary key in one tabl
The task is to find the Nth Fibonacci number using matrix exponentiation.
Use matrix exponentiation to efficiently calculate the Nth Fibonacci number
Return the answer modulo 10^9 + 7 to handle large numbers
Implement the function to solve the problem
The Fibonacci sequence starts with 1, 1, so F(1) = F(2) = 1
The time complexity can be improved to better than O(N) using matrix exponentiation
Round duration - 30 Minutes
Round difficulty - Easy
It was HR interview with basic questions and checking according to SWOT analysis.
What are your strengths and weaknesses?
How can you be an asset to us?
Are you comfortable to work under pressure?
What are your expectations from us?
Answering basic HR questions in an SDE - 1 interview
Strengths: Problem-solving skills, attention to detail, ability to work in a team
Weaknesses: Impatience with repetitive tasks, tendency to overthink
Asset: Strong technical skills, quick learner, ability to adapt to new technologies
Comfortable working under pressure: Yes
Expectations: Opportunities for growth, challenging projects, supportive work environment
Tip 1 : Don't try to cover everything, go with one or two skills to master it and have some general knowledge about others.
Tip 2 : Do a project along with everything you learn. Practical exposure is what organizations demand.
Tip 3 : Do not ignore soft skills at all. Many underestimate the magic of soft skills in getting selected over others.
Tip 1 : Resume should not be more than 1 or 2 pages. All information should be provided in the form of bullets and numbered in a precise manner and not just in long paragraphs with detailing for every aspect.
Tip 2 : The resume should be easily readable with formal fonts and design, and should not contain false information.
posted on 31 May 2022
I was interviewed in Sep 2021.
Round duration - 60 minutes
Round difficulty - Medium
Students who qualified in first round gets link for this round, this round had 4 questions in total, out of which 1 was output based and 3 was DSA based.
The task is to determine if the given binary tree nodes form exactly one valid binary tree.
Check if there is only one root node (a node with no parent)
Check if each node has at most one parent
Check if there are no cycles in the tree
Check if all nodes are connected and form a single tree
Round duration - 75 minutes
Round difficulty - Medium
This round was of 70-75 minutes and had 3 coding questions of easy to medium level. There was some restrictions like we cannot use built-in functions in both second and third subjective round.
The maximum number of balanced binary trees possible with a given height is to be counted and printed.
A balanced binary tree is one in which the difference between the left and right subtree heights is less than or equal to 1.
The number of balanced binary trees can be calculated using dynamic programming.
The number of balanced binary trees with height 'H' can be obtained by summing the product of the number of balanced...
Round duration - 60 minutes
Round difficulty - Medium
This was face to face interview round of 60 minutes. It was mostly based on DSA, some questions was also asked related to my projects and DBMS. Interviewer was kind and good.
If the given sequence ‘ARR’ has ‘N’...
The task is to sort an array in a wave form, where each element is greater than or equal to its adjacent elements.
Iterate through the array and swap adjacent elements if they do not follow the wave pattern
Start from the second element and compare it with the previous element, swap if necessary
Continue this process until the end of the array
Repeat the process for the remaining elements
Return the sorted wave array
The task is to find the maximum sum of node values of any subtree that is a Binary Search Tree(BST).
Traverse the binary tree in a bottom-up manner
For each node, check if it forms a BST and calculate the sum of its subtree
Keep track of the maximum sum encountered so far
Return the maximum sum
Round duration - 135 minutes
Round difficulty - Hard
This was the final technical round, it was around 2.5 hours long and based on mostly DSA and little bit Projects, DBMS, OS. Josh mainly focus on DSA and on Tree Data Structure in interview.
The task is to check if there exist two unique elements in the given BST such that their sum is equal to the given target 'K'.
Traverse the BST in-order and store the elements in a sorted array
Use two pointers, one at the beginning and one at the end of the array
Check if the sum of the elements at the two pointers is equal to the target 'K'
If the sum is less than 'K', move the left pointer to the right
If the sum is grea...
The task is to find all nodes in a binary tree that are at a distance K from a given node.
Implement a function that takes the binary tree, target node, and distance K as input.
Use a depth-first search (DFS) algorithm to traverse the tree and find the nodes at distance K.
Keep track of the distance from the current node to the target node while traversing.
When the distance equals K, add the current node to the result lis...
Round duration - 20 minutes
Round difficulty - Easy
This was the simple 20 minutes round
In this interviewer asked me about my family, residence and if I will have any issue in relocating to Gurgaon. After 30 minutes of this round they send me mail regarding my selection.
The candidate was asked about their family, residence, and willingness to relocate to Gurgaon.
The interviewer wanted to know about the candidate's personal background and circumstances.
The candidate's response may have influenced their selection.
Examples of relevant information include family size, current residence location, and any potential challenges in relocating.
The candidate's answer should demonstrate their fle
Tip 1 : Try to solve some good questions from every topic.
Tip 2 : If not have much time, then you can solve top interview questions from Leetcode.
Tip 3 : Made 2-3 good projects using any technology
Tip 1 : Keep resume short and crispy.
Tip 2 : Add coding profile handles and github link.
I was interviewed in May 2022.
Round duration - 75 Minutes
Round difficulty - Medium
The round consisted of 2 Coding based based questions.
These question were easy for as I have already done this while preparing.
The problem is to determine if two binary trees are flip equivalent after performing flip operations on one of the trees.
Perform a depth-first search (DFS) on both trees simultaneously
At each node, check if the values are equal and the left and right subtrees are either both null or both not null
If the above conditions are met, recursively check the flip equivalence of the left and right subtrees
If any of the condition...
The task is to determine if an integer array can be split into one or more increasing subsequences with a length of at least 3.
Check if the array can be split into increasing subsequences by iterating through the array.
Keep track of the current subsequence and its length while iterating.
If the difference between the current element and the previous element is not 1, start a new subsequence.
If the length of any subseque...
Round duration - 60 Minutes
Round difficulty - Easy
The interview started a bit late as I it to be at 11:30 am but started at 12:15pm So Had to wait. Apart from these the overall experience was great and the interviewer was also kind and had a smiling face.
The task is to rearrange the given array such that every second element is greater than its left and right element.
Iterate through the array and check if every second element is greater than its left and right element
If not, swap the current element with its adjacent element to satisfy the condition
Continue this process until the entire array satisfies the condition
Return 1 if the array satisfies the condition, else re
You have measure 4litre using 3 cups of 3,5 and 8 litres.
Tip 1 : Cross quesion the interviewer on whatever doubt You have like asked Is the water infinite.
Tip 2 : Before jumping to a soln always cross verify in your mind once.
Tip 3 : Keep on speaking whatever you think Never be on Doubt make it a healthy conversation.
Round duration - 30 Minutes
Round difficulty - Easy
10:30 PM
Interviewer was Cool.
This round was completely about my projects and my previous internships. There was lot of drilling on my projects like motive behind doing it.Futher improvement in Your project.
The interview focused on the candidate's projects and previous internships.
Drilling on the motive behind the projects
Discussion on further improvements in the projects
Round duration - 5 minutes
Round difficulty - Easy
At 10:00 am
No problems were asked just said do u want to ask about me or the company. And how was my interview experience.
The interviewer asked if there were any questions about them or the company, and how the interview experience was.
Express interest in learning more about the interviewer's role and experience.
Ask about the company culture and values.
Inquire about the next steps in the interview process.
Provide positive feedback about the interview experience.
Tip 1 : Never never try to cheat in online interview the interviewer will definitely get to know.
Tip 2 : Psuedo code presentation matters a lot so name Your variable properly and with proper indentation.
Tip 3 : Keep on trying even if You feel that's not the right answer so at least put that idea forward.
Tip 4 : Do Leetcode medium questions as much as possible As they are mostly asked in Interviews.
Tip 1 : Avoid unnecessary details on Resume
Tip 2 : Make It look clean and also keep it of one page
I was interviewed in Sep 2021.
Round duration - 180 Minutes
Round difficulty - Medium
For each test case, print the meeting numbers (Consider 1 based indexing) you organized in the given room, in the order in which you organized them such that the number of meetings is maximum.
For each test case, print a single line containing “True” if it is possible to divide the array into ‘K' equal sum subsets, “False” otherwise.
The output of each test case will be printed in a separate line.
For each test case, print a single line containing space-separated denoting the elements of the merged sorted list. The elements of the linked list must be separated by a single space and terminated by -1.
The output of each test case will be printed in a separate line.
For each test case print in a new line the sorted linked list, the elements of the sorted list should be single-space separated, terminated by -1.
For each test case, print space-separated root node value of all the duplicate subtrees. If no duplicate subtree is present in the binary tree print ‘-1’. The order of the list of node values does not matter.
Print the output for each test case in a separate line.
Round duration - 25 Minutes
Round difficulty - Medium
Explains the concept of keys.
Tip 1 : Basic Knowledge of Database is needed
Tip 2 : Easy questions
How do we measure forty-five minutes using two identical wires, each of which takes an hour to burn? We have matchsticks with us. The wires burn non-uniformly. So, for example, the two halves of wire...
Tip 1 : Lightstick 1 on both sides and stick 2 on one side.
Tip 2 : Stick 1 will be burnt out. Light the other end of stick 2.
Tip 3 : Stick 2 will be burnt out. Thus 45 minutes is completely measured
Round duration - 15 Minutes
Round difficulty - Easy
Tell me about yourself.
Tell me about different projects that you have worked on.
Tip 1 : Practice data structures vigorously
Tip 2 : Do at least 3 projects
Tip 3 : Practice Atleast 250 Questions
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume
Software Engineer
19
salaries
| ₹8.5 L/yr - ₹19.5 L/yr |
Software Developer
6
salaries
| ₹8 L/yr - ₹16 L/yr |
Product Manager
6
salaries
| ₹26 L/yr - ₹40 L/yr |
Product Manager 2
5
salaries
| ₹30 L/yr - ₹36 L/yr |
Software Engineer Level 1
4
salaries
| ₹8 L/yr - ₹13 L/yr |
Freshworks
Zendesk
Zoho
Jio Haptik