i
Angel One
Filter interviews by
I applied via Company Website and was interviewed in Apr 2024. There was 1 interview round.
Top trending discussions
Maths,quant for 1 hour duration
Arrays, strings, linked list, palindrome
What is the difference between a HashMap and a ConcurrentHashMap?
Basic DSA and android questions
Live coding round for android
I applied via Campus Placement and was interviewed in Aug 2022. There were 4 interview rounds.
90 minutes hackerrank test, 3 questions 1 easy 2 medium.
Dependency injection is a design pattern that allows objects to receive dependencies rather than creating them internally.
Dependency injection is a way to achieve loose coupling between objects.
It allows for easier testing and maintenance of code.
Inversion principle states that high-level modules should not depend on low-level modules, but both should depend on abstractions.
This principle helps to achieve a more flexib...
Program to find missing number in array
Iterate through the array and calculate the sum of all elements
Calculate the sum of all numbers from 1 to n (where n is the length of the array)
Subtract the sum of array elements from the sum of all numbers to get the missing number
I applied via Referral
Find the number of rotations in a rotated sorted array.
Use binary search to find the minimum element in the array.
The number of rotations is equal to the index of the minimum element.
If the minimum element is at index 0, then there are no rotations.
If the array is not rotated, then the number of rotations is 0.
Modify a 2x2 matrix to replace row and column with 0 if a cell contains 0.
Iterate through the matrix and find the cells with 0.
Store the row and column index of the cells with 0 in separate arrays.
Iterate through the row and column arrays and replace all elements with 0.
Return the modified matrix.
Find row with max vowels in 2x2 matrix with first element of each row containing a vowel.
Iterate through each row and count the number of vowels in it.
Keep track of the row with max number of vowels.
If first element of a row is a vowel, start counting from that element.
Example: [['a', 'b'], ['e', 'i']] should return 2nd row.
I applied via Referral
A program to swap two pointers.
Declare two pointers of the same data type
Assign the first pointer to a temporary variable
Assign the second pointer to the first pointer
Assign the temporary variable to the second pointer
Dijkstra's algorithm finds shortest path between nodes in a graph
Create a graph with nodes and edges
Initialize distances from source node to all other nodes as infinity
Set distance from source node to itself as 0
Create a set of unvisited nodes
While unvisited set is not empty, select node with minimum distance
For each neighbor of selected node, calculate distance from source node
If calculated distance is less than curre...
Floyd-Warshall's algorithm is used to find the shortest path between all pairs of vertices in a weighted graph.
Create a 2D array to store the distances between all pairs of vertices.
Initialize the array with the weights of the edges in the graph.
Use nested loops to iterate over all pairs of vertices and update the distances if a shorter path is found through a third vertex.
The final array will contain the shortest dist
Program to print matrix elements in spiral order recursively
Create a recursive function to print the elements in spiral order
Define the boundaries of the matrix and traverse the matrix in spiral order
Call the recursive function to print the elements in spiral order
Handle edge cases such as empty matrix or matrix with only one row/column
Find two numbers in an unsorted array that add up to a given sum in O(n)
Use a hash table to store the difference between the sum and each element in the array
Iterate through the array and check if the current element is in the hash table
If it is, return the current element and the corresponding difference
If not, add the current element to the hash table
Indexing is a technique used in DBMS to improve the performance of queries.
Indexing creates a separate data structure that allows faster retrieval of data.
It works by creating a pointer to the location of data in the table.
Indexes can be created on one or more columns of a table.
Types of indexing include B-tree, hash, and bitmap indexing.
Indexes can also be clustered or non-clustered.
Clustered indexes determine the phy...
B and B+ trees are data structures used for efficient searching and sorting of large datasets.
B trees are balanced trees used for disk-based storage systems.
B+ trees are similar to B trees but have all data stored in the leaf nodes for faster searching.
B trees have a variable number of keys per node, while B+ trees have a fixed number.
B trees have a higher fanout than B+ trees, making them more efficient for smaller da...
Program to find lowest common ancestor of two nodes in binary search tree and binary tree with brute force approach.
For binary search tree, traverse from root to both nodes and store the path. Then compare paths to find LCA.
For binary tree, traverse from root to both nodes and store the path. Then compare paths to find LCA.
Brute force approach involves checking each node's descendants to see if they contain both nodes.
...
Program to print all ancestors of a node in a binary tree
Create a recursive function to traverse the binary tree
Check if the current node is the target node
If yes, print all the nodes in the call stack
If not, recursively call the function for left and right subtrees
based on 1 interview
Interview experience
Senior Executive
341
salaries
| ₹1.7 L/yr - ₹4.6 L/yr |
Relationship Manager
322
salaries
| ₹1.5 L/yr - ₹4.1 L/yr |
Assistant Manager
267
salaries
| ₹2.1 L/yr - ₹7.5 L/yr |
Equity Dealer
212
salaries
| ₹0.9 L/yr - ₹4.5 L/yr |
Deputy Manager
157
salaries
| ₹3 L/yr - ₹10 L/yr |
Zerodha
Upstox
Groww
5paisa Capital Ltd.