Filter interviews by
Kadane's Algorithm is used to find the maximum subarray sum in an array of integers.
Iterate through the array and keep track of the maximum sum ending at each index.
If the current element is greater than the sum ending at the previous index, start a new subarray.
Return the maximum sum found.
Example: For array [-2, 1, -3, 4, -1, 2, 1, -5, 4], the maximum subarray sum is 6 (from index 3 to 6).
Dutch National Algorithm is a sorting algorithm that partitions an array into three sections based on a pivot element.
Choose a pivot element
Partition the array into three sections: elements less than the pivot, elements equal to the pivot, and elements greater than the pivot
Recursively apply the algorithm to the subarrays
Top trending discussions
I applied via campus placement at Thapar Institute of Engineering and Technology (TIET) and was interviewed in Dec 2024. There was 1 interview round.
I am a computer science student with a passion for coding and problem-solving.
Currently pursuing a degree in computer science
Proficient in programming languages like Java, Python, and C++
Experience with data structures and algorithms
Completed internships at tech companies like Google and Microsoft
Developed a web application for tracking personal fitness goals and progress.
Used React for front-end development
Implemented RESTful APIs using Node.js and Express for back-end
Utilized MongoDB for database storage
Incorporated chart.js for visualizing progress data
Remove duplicates from a sorted linked list
Use two pointers - one to iterate through the list and another to keep track of unique elements
Compare current node with next node, if they are equal, skip the next node
Repeat until end of list is reached
Three questions were assigned to be solved within a two-hour timeframe.
The assessment consists of two multiple-choice question (MCQ) rounds, each lasting 15 minutes, and one essay writing task requiring 400 words to be completed within 25 minutes.
It was mcqs with one coding question
It consisted of 2 medium coding ques
I applied via Approached by Company and was interviewed in Aug 2024. There were 2 interview rounds.
2 DSA questions and 70 minutes.
Min-stack is implemented using O(N) space by keeping track of minimum value at each element.
Use two stacks - one to store the actual elements and another to store the minimum value at each step.
When pushing an element, check if it is smaller than the current minimum and update the minimum stack accordingly.
When popping an element, also pop from the minimum stack if the popped element is the current minimum.
Sliding Window Problem involves finding a subarray of fixed size k with the maximum sum.
Use a sliding window approach to iterate through the array and keep track of the sum of elements within the window.
Slide the window by removing the first element and adding the next element in each iteration.
Keep track of the maximum sum found so far and update it if a new maximum is found.
I applied via Company Website and was interviewed in May 2024. There were 3 interview rounds.
This round had questions from various topics like DBMS, system design, OOPs, aptitude etc. with one coding ques.
This had 2 coding questions (medium level) and a digital HR round where we just have to use a slider to answer our best reaction to situations.
Implement a stack that supports push, pop, top, and retrieving the minimum element in constant time.
Use two stacks - one to store the actual elements and another to store the minimum values.
When pushing an element, check if it is smaller than the current minimum and push it to the min stack if so.
When popping an element, check if it is the current minimum and pop from the min stack if so.
Top operation can be implemente...
Find leaf nodes in a binary tree and print path to each leaf node.
Traverse the binary tree using depth-first search (DFS)
When reaching a leaf node, store the path from root to that leaf node
Repeat the process for all leaf nodes in the tree
I applied via campus placement at Thapar Institute of Engineering and Technology (TIET) and was interviewed in Sep 2024. There was 1 interview round.
I was asked to do a string based hard level question. Interviewerr asked me how the code worked and the logic which i explained step by step.
I applied via Newspaper Ad and was interviewed in Apr 2024. There was 1 interview round.
2 hours mcqs from all cse related topics + 1 coding question
3 coding questions easy level
OA + behavioural questions
Interview experience
Business Development Executive
7
salaries
| ₹2.5 L/yr - ₹4 L/yr |
Software Developer
4
salaries
| ₹4 L/yr - ₹6 L/yr |
Software Development Engineer
4
salaries
| ₹4 L/yr - ₹10.5 L/yr |
Software Engineer
3
salaries
| ₹10.5 L/yr - ₹16 L/yr |
HR Manager
3
salaries
| ₹5 L/yr - ₹7.5 L/yr |
TCS
Infosys
Wipro
HCLTech