i
Zopper
Filter interviews by
Iterators are objects that allow iteration over a sequence, while generators are functions that can pause and resume execution.
Iterators are used to iterate over a sequence like lists, tuples, and dictionaries.
Generators are functions that use the yield keyword to return data one at a time.
Iterators can be created using iter() function, while generators are created using functions with yield keyword.
Generators are more...
Decorators in Python are functions that modify the behavior of other functions or methods.
Decorators are denoted by the @ symbol followed by the decorator function name.
They allow you to add functionality to an existing function without modifying its code.
Common use cases include logging, authentication, and performance monitoring.
Example: @staticmethod decorator in Python is used to define a method that is not bound t
Top trending discussions
I applied via LinkedIn and was interviewed in Mar 2024. There was 1 interview round.
There were 3 question from DSA: 1st and 2nd was from recession and Dp and last one was from graph.
I applied via Recruitment Consulltant and was interviewed in Feb 2024. There was 1 interview round.
1. Program on LRU algorithm for pages
2. Multithreading- 3 threads to run one after - use of binary_semaphore
3. Mutex vs Semaphore
I was interviewed before Jan 2024.
Tree based coding problem
I applied via Approached by Company and was interviewed in Mar 2023. There were 2 interview rounds.
A multithreaded logger system allows multiple threads to log messages concurrently without blocking each other.
Use a thread-safe data structure like a concurrent queue to store log messages.
Implement a logging class with methods for adding log messages and writing them to a file.
Use synchronization mechanisms like locks or semaphores to ensure thread safety.
Consider using a separate thread for writing log messages to t...
Virtual pointers are used in C++ to implement polymorphism by allowing objects to be accessed through a base class pointer.
Virtual pointers are used in C++ to achieve runtime polymorphism.
They are created by adding virtual keyword to a function in a base class.
Virtual pointers allow objects of derived classes to be accessed through a base class pointer.
posted on 10 Oct 2024
I applied via Naukri.com and was interviewed in Sep 2024. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in Jun 2024. There were 3 interview rounds.
Three coding problems were asked one was to print frequency of each character in a string, second was also similar to this problem unable to recall it and third problem was given an array of string and range from L to R find the nth character if all strings from L to R is concatenated and sorted. Apart from these three coding problems there were 10 easy MCQ's.
posted on 24 Nov 2024
Move negative elements to right side of array
Iterate through the array and swap negative elements to the right side
Use two pointers approach to keep track of positive and negative elements
Maintain the order of elements while moving negatives to the right side
Medium to hard questions based on arrays, dp
Quick sort is a popular sorting algorithm that uses divide and conquer strategy.
Divides array into smaller sub-arrays based on a pivot element
Recursively sorts sub-arrays
Combines sorted sub-arrays to get final sorted array
Time complexity: O(n log n) on average, O(n^2) worst case
Example: [3, 6, 8, 10, 1, 2, 1] -> [1, 1, 2, 3, 6, 8, 10]
Rotate a matrix by 90 degrees in place
Transpose the matrix
Reverse each row of the transposed matrix
based on 1 interview
Interview experience
Relationship Manager
59
salaries
| ₹2.8 L/yr - ₹5.6 L/yr |
Software Engineer
53
salaries
| ₹5 L/yr - ₹19.1 L/yr |
Territory Sales Manager
33
salaries
| ₹3.2 L/yr - ₹6.5 L/yr |
Senior Software Engineer
29
salaries
| ₹13.1 L/yr - ₹37 L/yr |
Associate Software Engineer
21
salaries
| ₹5 L/yr - ₹8 L/yr |
Tech Mahindra
TCS
Infosys
Wipro