Filter interviews by
Clear (1)
I was interviewed in Jul 2022.
Kotlin scope functions are functions that allow concise code block execution on an object.
Kotlin scope functions include let, run, with, apply, and also.
They are used to simplify code and avoid repetitive variable references.
For example, 'with' can be used to execute multiple operations on an object without repeating its name.
Similarly, 'apply' can be used to initialize an object's properties without repeating its name...
I applied via Approached by Company and was interviewed before May 2018. There was 1 interview round.
Activity launch modes, activity lifecycle, finding second largest number in an array, and singleton implementation.
Activity launch modes determine how a new activity is placed in the task stack.
Activity lifecycle consists of several states like onCreate, onStart, onResume, etc.
To find the second largest number in an array, sort the array in descending order and return the element at index 1.
Singleton is a design patter...
Top trending discussions
I was interviewed in Dec 2016.
I applied via Referral
Find A-B of two sorted arrays A and B in O(m+n) time complexity.
Create two pointers, one for each array, and compare the elements at those pointers.
If the element in A is smaller, add it to the result array and move the A pointer forward.
If the element in B is smaller, move the B pointer forward.
Repeat until one of the pointers reaches the end of its array.
Add any remaining elements in A to the result array.
Time comple...
The routine should output the elements of the inorder traversal of a binary tree one by one in each call.
Implement an inorder traversal algorithm recursively
Use a global variable or pass a reference to keep track of the current element
Call the routine repeatedly to get the next element in each call
Program to find minimum semesters required to complete courses with prerequisites
Create a graph with courses as nodes and prerequisites as edges
Use topological sorting to find the order of courses to be taken
Calculate the minimum number of semesters based on the order obtained
Handle cases where there are cycles in the graph
I applied via Campus Placement
posted on 2 Dec 2016
I applied via Campus Placement and was interviewed in Jan 2016. There were 5 interview rounds.
To find a loop in a directed graph, use Floyd's cycle-finding algorithm. To find the last element in a binary tree, traverse the tree and return the rightmost leaf node.
For finding a loop in a directed graph, use Floyd's cycle-finding algorithm which uses two pointers moving at different speeds.
To find the last element in a binary tree, traverse the tree recursively or iteratively and return the rightmost leaf node.
The question is about finding the last number in a circular queue that has the highest number of digits.
Implement a circular queue data structure
Iterate through the circular queue to find the last number with the highest number of digits
Compare the number of digits of each number in the circular queue
Keep track of the last number with the highest number of digits
posted on 2 Dec 2016
I applied via Campus Placement and was interviewed in Dec 2016. There were 6 interview rounds.
posted on 2 Dec 2016
I applied via Campus Placement and was interviewed in Dec 2016. There was 1 interview round.
Check if left child is less than right child in a binary tree
Traverse the tree recursively and compare left and right child values
Use a stack to traverse the tree iteratively and compare left and right child values
Return true if all left children are less than right children, else false
Use built-in string method to check substring presence for faster execution.
Use 'indexOf' method to check if substring is present in the main string.
If the method returns -1, the substring is not present.
If the method returns a non-negative integer, the substring is present.
Senior Software Engineer
1.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Technical Lead
1.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
1.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Engineer
931
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Product Engineer
904
salaries
| ₹0 L/yr - ₹0 L/yr |
Bose
Jbl
Sennheiser
Sony