i
Practo
Filter interviews by
I applied via Approached by Company and was interviewed in May 2024. There were 4 interview rounds.
It was a 1.5-hour coding test. We were given three DSA questions to solve. Two of them were Easy to Medium problems and the third one was Medium to Hard question.
Two-pointer technique efficiently solves array problems by using two indices to traverse and manipulate elements.
The two-pointer technique is useful for problems involving sorted arrays, such as finding pairs that sum to a target.
Example: Given an array [1, 2, 3, 4, 5] and target 6, use pointers to find pairs (1, 5), (2, 4), (3, 3).
It can also be used for removing duplicates from a sorted array by maintaining one point...
Determine if you can jump to the last index of an array based on jump lengths.
The problem involves an array where each element represents the maximum jump length from that position.
You can use a greedy approach to track the furthest index you can reach as you iterate through the array.
Example: For array [2,3,1,1,4], you can jump to index 4 (last index) from index 0.
If at any point the current index exceeds the furthest...
Understanding space and time complexity is crucial for optimizing algorithms in Android development.
Time complexity measures the time an algorithm takes to complete as a function of input size. Example: O(n) for linear search.
Space complexity measures the amount of memory an algorithm uses relative to input size. Example: O(1) for in-place sorting.
Improving time complexity can involve using more efficient algorithms, l...
The search page of a video streaming app should allow users to easily search for and discover content.
Include a search bar at the top for users to enter keywords or phrases
Display relevant search results in a grid or list format
Provide filters or sorting options to refine search results
Include thumbnails, titles, and brief descriptions of the search results
Allow users to click on search results to view more details or ...
Top trending discussions
I appeared for an interview in Jan 2016.
To find the right view of a binary tree, we need to traverse the tree and keep track of the rightmost node at each level.
Traverse the tree using level order traversal
At each level, keep track of the rightmost node
Add the rightmost node to the result array
Return the result array
Find two missing numbers from an unsorted array in O(n) time complexity.
Calculate the sum of all numbers from 1 to n using the formula n*(n+1)/2
Calculate the sum of all numbers in the given array
Subtract the sum of array from the sum of all numbers to get the sum of missing numbers
Use the sum of missing numbers and the sum of squares of all numbers from 1 to n to calculate the missing numbers using simultaneous equatio...
To find average salary without disclosing any one salary
Collect salaries of all employees
Add all salaries and divide by total number of employees
Do not disclose any individual salary
Divide a golden brick into minimum parts to pay daily salary to a worker.
The number of parts needed will depend on the daily salary of the worker.
The size of the parts should be equal.
The parts should be small enough to cover the daily salary but large enough to minimize the number of parts.
The formula to calculate the number of parts is: number of parts = total value of the golden brick / daily salary
I appeared for an interview before Feb 2021.
Round duration - 60 minutes
Round difficulty - Easy
It comprised of general aptitude questions and two coding questions. It was an offline test.
Given an integer N
, find all possible placements of N
queens on an N x N
chessboard such that no two queens threaten each other.
A queen can attack another queen if they ar...
The N Queens Problem involves finding all possible placements of N queens on an N x N chessboard where no two queens threaten each other.
Use backtracking algorithm to explore all possible configurations.
Keep track of rows, columns, and diagonals to ensure queens do not attack each other.
Generate and print valid configurations where queens are placed safely.
Consider constraints and time limit for efficient solution.
Exam...
Given an integer array arr
of size 'N' containing only 0s, 1s, and 2s, write an algorithm to sort the array.
The first line contains an integer 'T' representing the n...
Sort an integer array containing only 0s, 1s, and 2s in linear time complexity.
Use three pointers to keep track of the positions of 0s, 1s, and 2s in the array.
Iterate through the array and swap elements based on the values encountered.
Achieve sorting in a single scan over the array without using any extra space.
Round duration - 60 minutes
Round difficulty - Easy
After having a technical discussion about my CV. He gave me two questions to code.
Ninja has to determine all the distinct substrings of size two that can be formed from a given string 'STR' comprising only lowercase alphabetic characters. These su...
Find all unique contiguous substrings of size two from a given string.
Iterate through the string and extract substrings of size two
Use a set to store unique substrings
Return the set as an array of strings
Determine if a given singly linked list of integers forms a cycle or not.
A cycle in a linked list occurs when a node's next
points back to a previous node in the ...
Detect if a singly linked list forms a cycle by checking if a node's next points back to a previous node.
Traverse the linked list using two pointers, one moving one step at a time and the other moving two steps at a time.
If the two pointers meet at any point, there is a cycle in the linked list.
If one of the pointers reaches the end of the list (null), there is no cycle.
Round duration - 30 minutes
Round difficulty - Easy
This was supposed to be the HR round but out of surprise the interviewer started by giving me a question to code.
After I approached this question with the right solution he just asked about my family. After that he said to wait. After half an hour the results were announced. A total of three students were hired and I was amongst one of them.
Given an integer N
representing the number of pairs of parentheses, find all the possible combinations of balanced parentheses using the given number of pairs.
Generate all possible combinations of balanced parentheses for a given number of pairs.
Use recursion to generate all possible combinations of balanced parentheses.
Keep track of the number of open and close parentheses used in each combination.
Return the valid combinations as an array of strings.
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 applied via Campus Placement and was interviewed before Oct 2019. There were 4 interview rounds.
Twitter system design involves multiple components such as servers, databases, caching, and APIs.
Use sharding to distribute data across multiple servers
Implement caching to reduce database load
Use message queues for handling high traffic
Implement APIs for user authentication and data retrieval
Use load balancers to distribute traffic evenly
Implement a search engine for efficient search functionality
The minimum number of platforms needed to avoid train crashes based on arrival and departure times.
Sort the arrival and departure arrays in ascending order.
Initialize a variable to keep track of the maximum number of platforms needed.
Iterate through the arrival and departure arrays simultaneously.
If the current arrival time is less than or equal to the current departure time, increment the platform count.
If the current...
I applied via Campus Placement and was interviewed in Jun 2022. There were 3 interview rounds.
Consists of 5 questions of DSA
1 Knapsack, 1 bitwise, 1 string , 1 basic mathematics, 1 dynamic programming
A recursive approach to print prime numbers involves checking divisibility and using recursion to iterate through numbers.
Define a function to check if a number is prime.
Use recursion to iterate through numbers starting from 2.
For each number, check if it is prime and print it if true.
Base case: Stop recursion when a certain limit is reached.
I applied via Walk-in and was interviewed in May 2024. There were 2 interview rounds.
Was bit tough and need to concentrate on work time
Was about coding in any language such as Java python
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
I am a passionate software developer with experience in Java, Python, and web development.
Graduated with a degree in Computer Science
Worked on various projects using Java and Python
Familiar with web development technologies like HTML, CSS, and JavaScript
based on 1 interview experience
Difficulty level
Duration
Business Development Manager
245
salaries
| ₹3 L/yr - ₹9.6 L/yr |
Product Support Specialist
118
salaries
| ₹2 L/yr - ₹4.4 L/yr |
Territory Sales Manager
109
salaries
| ₹3 L/yr - ₹10 L/yr |
Team Lead
64
salaries
| ₹4 L/yr - ₹14 L/yr |
Assistant Area Manager
52
salaries
| ₹6 L/yr - ₹14 L/yr |
Lybrate
Mfine
DocsApp
MagicBricks