i
Zypp Electric
Filter interviews by
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
Swap two numbers without using a third variable
Use bitwise XOR operation to swap two numbers without using a third variable
Example: a = 5, b = 10. a = a XOR b, b = a XOR b, a = a XOR b. After swapping, a = 10, b = 5
There are four types of inheritance in Java: single, multilevel, hierarchical, and multiple.
Single inheritance: a class can only inherit from one superclass.
Multilevel inheritance: a class can inherit from a class which is also derived from another class.
Hierarchical inheritance: multiple classes inherit from a single superclass.
Multiple inheritance: a class can inherit from multiple superclasses (not supported in Java
A singleton class in Java is a class that allows only one instance of itself to be created and provides a global point of access to that instance.
Singleton pattern ensures that a class has only one instance and provides a global point of access to it.
The constructor of a singleton class is private to prevent instantiation from outside the class.
The getInstance() method is used to access the single instance of the class...
I applied via Campus Placement
Constraint layout is more flexible and efficient than relative layout.
Constraint layout allows for complex layouts with fewer nested views.
It uses constraints to position and size views relative to other views or parent layout.
Relative layout positions views relative to each other or parent layout using attributes like 'above', 'below', etc.
Constraint layout is recommended for complex layouts with many views.
Relative l...
To find a missing element in an array, iterate through the array and compare each element with a range of expected values.
Sort the array if it is unsorted.
Iterate through the array and compare each element with a range of expected values.
If an element is missing, return it.
If no element is missing, return null or -1.
I applied via Recruitment Consulltant and was interviewed in Mar 2022. There was 1 interview round.
posted on 26 Apr 2023
I applied via Campus Placement and was interviewed before Apr 2022. There were 4 interview rounds.
Intersection of two linked lists is finding the common node(s) between them.
Traverse both lists and compare each node to find the common node(s).
Use a hash table to store the nodes of one list and check for their presence in the other list.
Calculate the length of both lists and move the pointer of the longer list to match the length of the shorter list, then compare each node.
posted on 18 Mar 2024
I applied via Referral and was interviewed before Mar 2023. There was 1 interview round.
Sort and merge two linked lists
Traverse both linked lists simultaneously
Compare the values of nodes and merge them in sorted order
Handle cases where one list is longer than the other
posted on 7 Oct 2024
I applied via Approached by Company and was interviewed in Sep 2024. There was 1 interview round.
There are multiple ways to share data between apps, including using intents, content providers, broadcast receivers, and shared preferences.
Using Intents: Allows apps to send and receive data through an Intent object.
Content Providers: Enable apps to share data with other apps by exposing a structured set of data through a URI.
Broadcast Receivers: Apps can send broadcasts to other apps to share data or events.
Shared Pr...
The app lifecycle includes states like running in the background, onStop, and onRestart.
App running in the background: When the app is not visible but still running, it is in the background state.
onStop state: Occurs when the activity is no longer visible to the user.
onRestart state: Follows onStop and is called when the activity is being re-displayed to the user.
AIDL stands for Android Interface Definition Language, used for inter-process communication in Android development.
AIDL is a tool used to define the programming interface that clients and servers use to communicate with each other in Android.
It allows different Android components to communicate with each other across different processes.
AIDL files define the methods that can be called remotely, along with the data type
JNI stands for Java Native Interface, used to integrate Java code with native code written in languages like C/C++.
Experience in writing Java code that interacts with native code through JNI
Understanding of how to create and use JNI libraries
Knowledge of passing data between Java and native code using JNI functions
A service is a piece of code that performs specific tasks or functions to support the overall functionality of a software application.
Services are often used for tasks such as data processing, communication with external systems, or background tasks.
Examples of services include web services, REST APIs, and microservices.
Services can run independently of the user interface and can be accessed by multiple components with
Threads are independent sequences of execution within a process, while coroutines are cooperative routines that can pause and resume.
Threads are managed by the operating system, while coroutines are managed by the programmer.
Threads run concurrently and can execute in parallel on multiple cores, while coroutines are typically single-threaded.
Threads have their own stack and memory space, while coroutines share the same...
Background tasks in Android can be performed using services, AsyncTask, JobScheduler, or WorkManager.
Use Services for long-running tasks in the background
AsyncTask for short background tasks that need to interact with the UI
JobScheduler for deferrable background tasks that require network connectivity
WorkManager for tasks that need to run reliably across different Android versions
posted on 30 Oct 2023
I applied via Campus Placement and was interviewed before Oct 2022. There were 3 interview rounds.
HAckerrank based test
I was interviewed before May 2021.
Round duration - 90 Minutes
Round difficulty - Medium
1 easy and 2 medium-hard DSA problems to solve
Kevin is playing a hurdle game where he must jump over hurdles to clear levels. Each level ‘i’ consists of ‘i’ hurdles (e.g., Level 6 has 6 hurdles).
Given the total number ...
Given the total number of hurdles Kevin has jumped, determine how many levels he has cleared.
Iterate through levels while subtracting hurdles from total jumped until remaining hurdles are less than current level
Return the current level as the number of levels cleared
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 without threatening each other.
Use backtracking algorithm to explore all possible configurations.
Keep track of rows, columns, and diagonals to ensure queens do not threaten each other.
Generate valid configurations recursively and backtrack when a solution is not possible.
Bob is given a triangular pyramid with vertices 'O', 'X', 'Y', and 'Z'. He is also provided with an integer 'N'. Bob can move to any adjacent vertex in a single ste...
Calculate the number of ways Bob can complete a journey in a triangular pyramid after N steps.
Bob can move to any adjacent vertex in a single step
Bob must return to vertex 'O' after exactly 'N' steps
Calculate the number of different ways Bob can complete the journey
Return the result modulo 1000000007
Consider the constraints provided
Round duration - 60 Minutes
Round difficulty - Medium
2 DSA problems and computer subject questions
Given an integer K
, your task is to produce all binary strings of length 'K' that do not contain consecutive '1's.
The input begins with an integer ...
Generate all binary strings of length 'K' with no consecutive '1's in lexicographically increasing order.
Use backtracking to generate all possible binary strings of length 'K' with no consecutive '1's.
Start with an empty string and recursively add '0' or '1' based on the condition of no consecutive '1's.
Sort the generated strings in lexicographically increasing order before outputting them.
You are provided with three strings A
, B
, and C
. The task is to determine if C
is formed by interleaving A
and B
. C
is considered an interleaving of A
and B
if:
Check if a string is formed by interleaving two other strings.
Iterate through characters of A, B, and C simultaneously to check if C is formed by interleaving A and B.
Use dynamic programming to efficiently solve the problem.
Handle edge cases like empty strings or unequal lengths of A, B, and C.
Example: A = 'aab', B = 'abc', C = 'aaabbc' should return True.
Round duration - 60 Minutes
Round difficulty - Easy
DSA round
You are given coordinates for two lines on a 2D plane: Line 'AB' is defined by points 'A' and 'B', and Line 'PQ' is defined by points 'P' and 'Q'. Your task is to find the ...
Find the intersection point of two lines on a 2D plane given their coordinates.
Calculate the slopes of both lines using the given coordinates.
Use the slope-intercept form of a line to find the equations of the two lines.
Solve the equations simultaneously to find the intersection point.
Return the coordinates of the intersection point with precision up to 6 decimal places.
Determine if a given directed graph contains a cycle. If the graph has at least one cycle, return true
. Otherwise, return false
.
The first line of input contains...
Detect cycles in a directed graph and return true if a cycle exists, false otherwise.
Use Depth First Search (DFS) to detect cycles in the directed graph.
Maintain a visited array to keep track of visited vertices and a recursion stack to detect back edges.
If a vertex is visited and is present in the recursion stack, then a cycle exists.
Example: For the input 4 4, the graph has a cycle 0 -> 1 -> 2 -> 3 -> 1.
Round duration - 30 Minutes
Round difficulty - Easy
It is a managerial round
A URL is a web address that specifies the location of a resource on the internet. A load balancer distributes incoming network traffic across multiple servers to ensure optimal resource utilization and prevent overload.
A URL (Uniform Resource Locator) is a reference to a web resource that specifies its location on a computer network and the mechanism for retrieving it.
URLs typically consist of a protocol (such as HTTP ...
Tip 1 : Practice Trees, Graphs, DP
Tip 2 : Be sure about your projects
Tip 1 : Be genuine about your resume
Tip 2 : Have at least two projects on resume
based on 2 interviews
Interview experience
based on 1 review
Rating in categories
Cluster Manager
70
salaries
| ₹0 L/yr - ₹0 L/yr |
Team Lead
54
salaries
| ₹0 L/yr - ₹0 L/yr |
Assistant Manager
25
salaries
| ₹0 L/yr - ₹0 L/yr |
City Head
20
salaries
| ₹0 L/yr - ₹0 L/yr |
HUB Manager
18
salaries
| ₹0 L/yr - ₹0 L/yr |
Bounce
Vogo Automotive
Ather Energy
Revolt Motors