Filter interviews by
Imagine you are Harshad Mehta's friend, and you have been given the stock prices of a particular company for the next 'N' days. You can perform up to two buy-and-sell t...
Maximize profit from stock prices over N days with up to two buy-and-sell transactions.
Two Transactions: You can buy and sell stocks twice to maximize profit.
Sell Before Buy: Ensure you sell a stock before buying again.
Example 1: Prices = [3, 3, 5, 0, 0] yields max profit of 6.
Example 2: Prices = [7, 6, 4, 3, 1] yields max profit of 0.
Dynamic Programming: Use dynamic programming to track profits efficiently.
Given a string STR
, your task is to remove spaces from STR
and convert it to Pascal case format. The function should return the modified STR
.
In Pascal case, words are conc...
Convert a given string to Pascal case by removing spaces and capitalizing the first letter of each word.
Input Handling: Read the number of test cases and each string to be processed.
String Manipulation: Split the string by spaces, capitalize each word, and join them without spaces.
Example: 'hello world' becomes 'HelloWorld'.
Efficiency: Ensure the solution handles up to 500,000 characters efficiently due to constra...
Given a string S
consisting of digits from 2 to 9, the task is to generate all possible strings that can be formed by mapping these digits to letters on a T9 keypad. ...
Generate all possible letter combinations from a T9 keypad input string, sorted lexicographically for each test case.
Mapping Digits: Each digit from 2 to 9 corresponds to specific letters (e.g., 2 -> 'abc', 3 -> 'def').
Combination Generation: Use backtracking or iterative methods to generate all possible combinations of letters for the given digits.
Lexicographical Order: Ensure the output combinations are so...
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 a sorted array that sum up to a given target value, returning -1 if no pairs exist.
Two-Pointer Technique: Use two pointers, one at the start and one at the end of the array, to find pairs efficiently.
Distinct Elements: Since the array contains distinct integers, each valid pair will be unique.
Example: For ARR = [1, 2, 3] and TARGET = 4, the only pair is (1, 3).
Return Value: If pairs are fou...
SQL query to find records in one table that do not exist in another table using LEFT JOIN or NOT EXISTS.
LEFT JOIN: Use a LEFT JOIN to combine both tables and filter where the second table's key is NULL. Example: SELECT a.* FROM TableA a LEFT JOIN TableB b ON a.id = b.id WHERE b.id IS NULL.
NOT EXISTS: Use a subquery with NOT EXISTS to check for non-existence. Example: SELECT * FROM TableA a WHERE NOT EXISTS (SELECT...
Given a binary tree with 'N' nodes, identify the path from a leaf node to the root node that has the maximum sum among all root-to-leaf paths.
All the possible...
Find the maximum sum path from a leaf node to the root in a binary tree using level order input.
Input Format: The binary tree is represented in level order, with '0' indicating null nodes.
Example: For input '4 -2 3 4 0 5 6 0 7 0 0 0 0 0 0', the tree structure can be visualized.
Path Calculation: Traverse the tree recursively to calculate the sum of paths from leaves to the root.
Output: Return the path with the maxi...
I appeared for an interview in Oct 2020.
Round duration - 60 minutes
Round difficulty - Easy
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 a sorted array that sum up to a given target value, returning -1 if no pairs exist.
Two-Pointer Technique: Use two pointers, one at the start and one at the end of the array, to find pairs efficiently.
Distinct Elements: Since the array contains distinct integers, each valid pair will be unique.
Example: For ARR = [1, 2, 3] and TARGET = 4, the only pair is (1, 3).
Return Value: If pairs are found, r...
Given a binary tree with 'N' nodes, identify the path from a leaf node to the root node that has the maximum sum among all root-to-leaf paths.
All the possibl...
Find the maximum sum path from a leaf node to the root in a binary tree using level order input.
Input Format: The binary tree is represented in level order, with '0' indicating null nodes.
Example: For input '4 -2 3 4 0 5 6 0 7 0 0 0 0 0 0', the tree structure can be visualized.
Path Calculation: Traverse the tree recursively to calculate the sum of paths from leaves to the root.
Output: Return the path with the maximum s...
SQL query to find records in one table that do not exist in another table using LEFT JOIN or NOT EXISTS.
LEFT JOIN: Use a LEFT JOIN to combine both tables and filter where the second table's key is NULL. Example: SELECT a.* FROM TableA a LEFT JOIN TableB b ON a.id = b.id WHERE b.id IS NULL.
NOT EXISTS: Use a subquery with NOT EXISTS to check for non-existence. Example: SELECT * FROM TableA a WHERE NOT EXISTS (SELECT 1 FR...
Round duration - 30 minutes
Round difficulty - Easy
Given a string STR
, your task is to remove spaces from STR
and convert it to Pascal case format. The function should return the modified STR
.
In Pascal case, words are con...
Convert a given string to Pascal case by removing spaces and capitalizing the first letter of each word.
Input Handling: Read the number of test cases and each string to be processed.
String Manipulation: Split the string by spaces, capitalize each word, and join them without spaces.
Example: 'hello world' becomes 'HelloWorld'.
Efficiency: Ensure the solution handles up to 500,000 characters efficiently due to constraints.
Round duration - 60 Minutes
Round difficulty - Easy
Imagine you are Harshad Mehta's friend, and you have been given the stock prices of a particular company for the next 'N' days. You can perform up to two buy-and-sell ...
Maximize profit from stock prices over N days with up to two buy-and-sell transactions.
Two Transactions: You can buy and sell stocks twice to maximize profit.
Sell Before Buy: Ensure you sell a stock before buying again.
Example 1: Prices = [3, 3, 5, 0, 0] yields max profit of 6.
Example 2: Prices = [7, 6, 4, 3, 1] yields max profit of 0.
Dynamic Programming: Use dynamic programming to track profits efficiently.
Given a string S
consisting of digits from 2 to 9, the task is to generate all possible strings that can be formed by mapping these digits to letters on a T9 keypad....
Generate all possible letter combinations from a T9 keypad input string, sorted lexicographically for each test case.
Mapping Digits: Each digit from 2 to 9 corresponds to specific letters (e.g., 2 -> 'abc', 3 -> 'def').
Combination Generation: Use backtracking or iterative methods to generate all possible combinations of letters for the given digits.
Lexicographical Order: Ensure the output combinations are sorted ...
Tip 1 : Mention 1 project at least in your resume which is done by you . Never mention a project copied from google.
Tip 2 : Prepare for basic of OOPS and Operating System.
Tip 3 : You have to some Knowledge of System design .
Tip 4 : never give wrong answer if you don't know the answer simply say it to interviewr.
Tip 1 : Never add fake information related to project and other stuff.
Tip 2 : Keep resume simple do not add unnecessary info like you ranked 1st in 5th class.
Top trending discussions
I applied via Company Website and was interviewed before Jun 2021. There were 2 interview rounds.
First round was coding as well as aptitude done together went well I guess focusing on codes helps a lot.
I applied via LinkedIn and was interviewed before Jul 2020. There were 4 interview rounds.
I applied via Campus Placement and was interviewed in Apr 2020. There was 1 interview round.
Yes, I am open to relocating for the right opportunity that aligns with my career goals and personal growth.
Relocation can provide exposure to new technologies and methodologies.
I am excited about the prospect of working in diverse teams and cultures.
For example, moving to a tech hub like San Francisco could enhance my career.
I understand the challenges of relocating, but I see them as opportunities for growth.
I bring a unique blend of skills, experience, and passion for software development that aligns perfectly with your team's goals.
Proven experience in developing scalable applications, such as a recent project where I improved performance by 30%.
Strong problem-solving skills demonstrated through my contributions to open-source projects, enhancing functionality and fixing bugs.
Excellent teamwork and communication abilitie...
I applied via Company Website and was interviewed before Oct 2020. There were 3 interview rounds.
I applied via Amcat and was interviewed before Jul 2021. There were 2 interview rounds.
Refer R S Agarwal book for apptitude
A C program to perform arithmetic operations on fractional numbers.
Use float or double data type to store fractional numbers.
Use scanf() to take input from the user.
Perform arithmetic operations like addition, subtraction, multiplication, and division.
Use printf() to display the result.
I applied via Company Website and was interviewed before Feb 2020. There was 1 interview round.
I applied via LinkedIn and was interviewed before Jan 2021. There was 1 interview round.
I applied via LinkedIn and was interviewed before Jul 2021. There were 2 interview rounds.
Easy logical questions
basic quant
Easy level coding questions
Counting frequency of alphabets
I applied via Recruitment Consulltant and was interviewed before Feb 2021. There were 3 interview rounds.
1.It covers all aptitude topics, and English sentences
2.Essay writing
3.Coding
Software Engineer
8
salaries
| ₹6 L/yr - ₹18.9 L/yr |
Senior Software Engineer
5
salaries
| ₹16 L/yr - ₹27.5 L/yr |
Software Developer
4
salaries
| ₹4.5 L/yr - ₹11.7 L/yr |
UI Designer
4
salaries
| ₹5.5 L/yr - ₹8 L/yr |
Senior Software Test Engineer
4
salaries
| ₹12 L/yr - ₹14 L/yr |
TCS
Accenture
Wipro
Cognizant