Filter interviews by
Count pairs in an array that sum up to a given value K using efficient algorithms for optimal performance.
Use a HashMap: Store elements in a HashMap to check for complements efficiently. Example: For K=10, if you have 4, check for 6.
Iterate through the array: For each element, calculate the complement (K - element) and check if it exists in the HashMap.
Avoid double counting: Ensure each pair is counted only once b...
Merging two sorted arrays involves combining them into a single sorted array while maintaining order.
Two-Pointer Technique: Use two pointers to traverse both arrays simultaneously, comparing elements and adding the smaller one to the result.
Example: For arrays [1, 3, 5] and [2, 4, 6], start with pointers at 1 and 2. Add 1 to the result, move the pointer of the first array.
Handling Remaining Elements: After one arr...
Rotate an array of strings by d times
Create a new array and copy elements from original array based on rotation index
Use modulo operator to handle cases where d is greater than array length
Handle edge cases like empty array or d being negative
Diamond problem is a common issue in multiple inheritance where a class inherits from two classes that have a common ancestor.
Occurs in languages that support multiple inheritance like C++
Results in ambiguity when calling methods or accessing attributes from the common ancestor class
Can be resolved using virtual inheritance or interfaces
Run length encoding is a data compression technique that replaces repeated characters with a count and single character.
Iterate through the input array of strings
Count the number of consecutive characters in each string
Replace consecutive characters with count and character
Reversing a doubly linked list involves swapping the next and previous pointers of each node.
Initialize three pointers: current, prev, and next.
Iterate through the list, adjusting pointers: current.next = prev and current.prev = next.
Move prev and current one step forward until the end of the list.
Set the head of the list to the last processed node.
Iterative solution to perform preorder traversal without using recursion
Use a stack to keep track of nodes
Start by pushing the root node onto the stack
While the stack is not empty, pop a node, visit it, then push its right child followed by its left child onto the stack
To rotate a matrix 90 degrees, transpose the matrix and then reverse each row.
Transpose the matrix by swapping matrix[i][j] with matrix[j][i]
Reverse each row of the transposed matrix to get the final rotated matrix
Code implementing inheritance
Inheritance is a concept in object-oriented programming where a class inherits properties and methods from another class
The class that is being inherited from is called the parent class or base class
The class that inherits from the parent class is called the child class or derived class
The child class can access the properties and methods of the parent class
Inheritance promotes code re...
There are 5 types of inheritance: single, multiple, multilevel, hierarchical, and hybrid.
Single inheritance: A class inherits from a single base class.
Multiple inheritance: A class inherits from multiple base classes.
Multilevel inheritance: A class inherits from a derived class, which in turn inherits from another class.
Hierarchical inheritance: Multiple classes inherit from a single base class.
Hybrid inheritance:...
There were around 60 questions and negative marking was also there
I appeared for an interview in May 2025, where I was asked the following questions.
I appeared for an interview in Apr 2025, where I was asked the following questions.
Total 60 question 30 from C/C++ output and 30 from profit-loss, find age and related to ratio
Iterative solution to perform preorder traversal without using recursion
Use a stack to keep track of nodes
Start by pushing the root node onto the stack
While the stack is not empty, pop a node, visit it, then push its right child followed by its left child onto the stack
One hour - only maths
Pretty easy just same basic aptitude and output based questions in C/C++ language
I applied via Referral and was interviewed in Dec 2023. There were 3 interview rounds.
I applied via Campus Placement and was interviewed in Jan 2024. There were 3 interview rounds.
First round was aptitude + coding. 60 questions in 60 mi , 30 about aptitude (mostly quants) , 30 about coding mcqs related to dsa ,oops. There was negative marking also.
I applied via Approached by Company and was interviewed in Mar 2024. There was 1 interview round.
I applied via Campus Placement and was interviewed in Jan 2024. There were 3 interview rounds.
60 min 60 qs and negative marking
Top trending discussions
The duration of WatchGuard Technologies interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 20 interview experiences
Difficulty level
Duration
based on 19 reviews
Rating in categories
Software Engineer
38
salaries
| ₹8.6 L/yr - ₹20.8 L/yr |
Associate Software Engineer
23
salaries
| ₹8.1 L/yr - ₹11.5 L/yr |
Senior Software Engineer
23
salaries
| ₹25.5 L/yr - ₹38 L/yr |
Software Developer
7
salaries
| ₹8 L/yr - ₹10.1 L/yr |
Technical Lead
5
salaries
| ₹30 L/yr - ₹46.5 L/yr |
Sterlite Technologies
Cisco
BT Business
Lumen Technologies