i
Sigmoid
Filter interviews by
Matrix traversal in spiral manner involves visiting each element of a matrix in a spiral order.
Start by traversing the outermost layer of the matrix from top left to top right, then top right to bottom right, bottom right to bottom left, and finally bottom left to top left.
Continue this process for the inner layers until all elements are visited.
Keep track of the boundaries of the matrix to know when to switch dir...
Check for a loop in a linked list by using two pointers moving at different speeds.
Use two pointers, one moving at a normal speed and another moving at double the speed.
If there is a loop, the two pointers will eventually meet at some point.
Alternatively, use a hash set to store visited nodes and check for duplicates.
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 d...
This is a problem where a sorted array is rotated and we need to search for given numbers in the array.
The array is rotated clockwise by an unknown amount.
We need to search for Q numbers in the rotated array.
If a number is found, we need to return its index, otherwise -1.
The search needs to be done in O(logN) time complexity.
The input consists of the size of the array, the array itself, the number of queries, and ...
You are given an array arr
of length N
. For each element in the array, find the next greater element (NGE) that appears to the right. If there is no such greater elem...
The task is to find the next greater element for each element in the given array.
Iterate through the array from right to left.
Use a stack to keep track of the next greater element.
Pop elements from the stack until a greater element is found or the stack is empty.
If the stack is empty, there is no greater element, so assign -1.
If a greater element is found, assign it as the next greater element.
Push the current ele...
Determine the zigzag level order traversal of a given binary tree's nodes. Zigzag traversal alternates the direction at each level, starting from left to righ...
The zigzag level order traversal of a binary tree is the traversal of its nodes' values in an alternate left to right and right to left manner.
Perform a level order traversal of the binary tree
Use a queue to store the nodes at each level
For each level, alternate the direction of traversal
Store the values of the nodes in each level in separate arrays
Combine the arrays in alternate order to get the zigzag level orde...
You are provided with two sorted arrays, arr1
and arr2
, along with an integer k
. By merging all elements from arr1
and arr2
into a new sorted array, your task is to identi...
The task is to find the kth smallest element of a merged array created by merging two sorted arrays.
Merge the two sorted arrays into a single sorted array
Return the kth element of the merged array
I applied via Campus Placement
General Aptitude test and 3 Medium level coding questions
Sort an array of 0s and 1s
Use a sorting algorithm like counting sort or two-pointer approach
Count the number of 0s and 1s and then reconstruct the array
Example: Input array = ['0', '1', '0', '1', '1'], Output array = ['0', '0', '1', '1', '1']
Matrix traversal in spiral manner involves visiting each element of a matrix in a spiral order.
Start by traversing the outermost layer of the matrix from top left to top right, then top right to bottom right, bottom right to bottom left, and finally bottom left to top left.
Continue this process for the inner layers until all elements are visited.
Keep track of the boundaries of the matrix to know when to switch directio...
Leet Code Medium, string, list, tuple
I applied via LinkedIn and was interviewed before Jun 2023. There were 2 interview rounds.
Basic Multiple choice questions
The Two Sum problem involves finding two numbers in an array that add up to a specific target sum.
Use a hash map to store numbers and their indices for quick lookup.
Iterate through the array, checking if the complement (target - current number) exists in the hash map.
Example: For array [2, 7, 11, 15] and target 9, return indices [0, 1] since 2 + 7 = 9.
Time complexity is O(n) due to a single pass through the array.
Check for a loop in a linked list by using two pointers moving at different speeds.
Use two pointers, one moving at a normal speed and another moving at double the speed.
If there is a loop, the two pointers will eventually meet at some point.
Alternatively, use a hash set to store visited nodes and check for duplicates.
I appeared for an interview in Oct 2021.
Round duration - 60 Minutes
Round difficulty - Medium
Started with basic introduction about myself and then 2 DSA problems to be solved on CodeChef or any IDE of your preference. Interviewer was helpful throughout the interview and helped with syntaxes at one point as well.
Parameters tested -
1. Ability to think of edge test cases.
2. Coding Practices like naming variables and functions properly and using the most suitable access modifiers.
3. Ability to think of time and space complexity and optimise it.
Reaching the correct output was not mandatory but was preferred. Priority to coding practices was given.
You are given an array arr
of length N
. For each element in the array, find the next greater element (NGE) that appears to the right. If there is no such greater ele...
The task is to find the next greater element for each element in the given array.
Iterate through the array from right to left.
Use a stack to keep track of the next greater element.
Pop elements from the stack until a greater element is found or the stack is empty.
If the stack is empty, there is no greater element, so assign -1.
If a greater element is found, assign it as the next greater element.
Push the current element ...
Determine the zigzag level order traversal of a given binary tree's nodes. Zigzag traversal alternates the direction at each level, starting from left to rig...
The zigzag level order traversal of a binary tree is the traversal of its nodes' values in an alternate left to right and right to left manner.
Perform a level order traversal of the binary tree
Use a queue to store the nodes at each level
For each level, alternate the direction of traversal
Store the values of the nodes in each level in separate arrays
Combine the arrays in alternate order to get the zigzag level order tra...
Round duration - 60 minutes
Round difficulty - Medium
Started with basic introduction about myself and then 2 DSA problems to be solved on google doc. Interviewer was helpful throughout the interview.
Parameters tested -
1. Ability to think of edge test cases.
2. Coding Practices like naming variables and functions properly and using the most suitable access modifiers.
3. Ability to think of time and space complexity and optimise it.
4. Making it to the correct output.
Reaching the correct output was mandatory in best possible time comlexity.
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 ...
This is a problem where a sorted array is rotated and we need to search for given numbers in the array.
The array is rotated clockwise by an unknown amount.
We need to search for Q numbers in the rotated array.
If a number is found, we need to return its index, otherwise -1.
The search needs to be done in O(logN) time complexity.
The input consists of the size of the array, the array itself, the number of queries, and the q...
You are provided with two sorted arrays, arr1
and arr2
, along with an integer k
. By merging all elements from arr1
and arr2
into a new sorted array, your task is to ident...
The task is to find the kth smallest element of a merged array created by merging two sorted arrays.
Merge the two sorted arrays into a single sorted array
Return the kth element of the merged array
Round duration - 40 minutes
Round difficulty - Easy
I was asked to introduce myself and general family background check and then discussion around salary negotiation.
Tip 1 : Practice popular questions from Arrays, Binary Trees, LinkedLists from CodeStudio's Interview Problems
Tip 2 : Make sure you are aware of calculating the time and space complexity for every problem you're coding.
Tip 3 : Prepare through Mock Interviews to practice explaining your approach while solving in an actual interview.
Tip 1 : Describe best of your projects in minimum words. Don't forget to add buzz words like REST APIs/ DB Indexing/ Benchmarking etc if you worked on backend.
Tip 2 : Don't add school achievements like Olympiads or Class Topper in your resume.
Tip 3 : If you've some work experience, put it in a way ,you're marketing yourself. Add terms like 'Created/Owned the Project through entire SDLC'
Tip 4 : Make sure you mention how your work experience actually impacted the company. Or how your self project can be actually useful to end user.
Top trending discussions
I appeared for an interview in Mar 2017.
I believe the recruiting process is thorough and well-organized.
The company uses a combination of resume screening, interviews, and assessments to evaluate candidates.
They have a clear timeline for the hiring process and keep candidates informed of their progress.
Feedback is provided to candidates after interviews to help them improve for future opportunities.
str.swapcase() returns a new string with all uppercase letters converted to lowercase and vice versa.
Usage: 'Hello World'.swapcase() returns 'hELLO wORLD'.
It affects only alphabetic characters; numbers and symbols remain unchanged.
This method does not modify the original string; it returns a new one.
Example: 'Python 3.8'.swapcase() results in 'pYTHON 3.8'.
I applied via Approached by Company and was interviewed before Jul 2021. There was 1 interview round.
To write a REST API from scratch, I would follow these steps:
Define the resources and endpoints
Choose a programming language and framework
Implement CRUD operations for each resource
Use HTTP methods and status codes correctly
Add authentication and authorization
Test the API using tools like Postman
Document the API using tools like Swagger
I applied via Naukri.com and was interviewed in Apr 2021. There were 3 interview rounds.
based on 7 interview experiences
Difficulty level
Duration
based on 8 reviews
Rating in categories
Software Development Engineer II
110
salaries
| ₹15 L/yr - ₹23 L/yr |
Data Engineer
91
salaries
| ₹13 L/yr - ₹21 L/yr |
Senior Data Scientist
68
salaries
| ₹17 L/yr - ₹28.5 L/yr |
Data Scientist
63
salaries
| ₹11 L/yr - ₹20 L/yr |
Senior Data Analyst
52
salaries
| ₹13.2 L/yr - ₹25 L/yr |
IKS Health
Crisil
CorroHealth infotech
Indegene