i
Gen
Work with us
Filter interviews by
To find a loop in a linked list, we use Floyd's cycle-finding algorithm.
Floyd's cycle-finding algorithm uses two pointers, one moving at twice the speed of the other.
If there is a loop in the linked list, the two pointers will eventually meet.
To detect the meeting point, we reset one of the pointers to the head of the linked list and move both pointers at the same speed.
The meeting point is the start of the loop.
A function to reverse a string in JavaScript
Use the split() method to split the string into an array of characters
Use the reverse() method to reverse the array
Use the join() method to join the array back into a string
The general bootup process involves power-on self-test (POST), loading the BIOS, initializing hardware, loading the operating system, and launching user applications.
Power-on self-test (POST) checks hardware components for proper functioning
BIOS (Basic Input/Output System) is loaded to initialize hardware and locate the operating system
Operating system is loaded from the boot device (e.g. hard drive, SSD)
User appl...
Handling if statements in macros requires careful consideration of syntax and logic.
Use proper syntax and indentation to ensure the if statement is clear and readable.
Consider using nested if statements or logical operators to handle multiple conditions.
Test the macro with different input values to ensure the if statement behaves as expected.
XOR of 0xFE and 0xEF is 0x11.
XOR operation compares bits of two numbers and returns 1 if they are different, 0 if they are the same.
0xFE in binary is 11111110, 0xEF in binary is 11101111.
Performing XOR operation on 0xFE and 0xEF results in 00010001, which is 0x11 in hexadecimal.
One line codes that can cause runtime exceptions
Dividing by zero: int result = 5 / 0;
Accessing index out of bounds: int[] arr = new int[3]; int value = arr[3];
Null pointer exception: String str = null; int length = str.length();
Hex representation of -17 is FFFFFFFF
Convert the decimal number -17 to binary: 17 = 0001 0001
Take the two's complement of the binary number: 1110 1111
Convert the two's complement binary number to hex: FFFF
The number of nodes with NULL children in a binary tree with N nodes is N-1.
In a binary tree, each node can have at most 2 children.
The number of NULL children for each node is either 0, 1, or 2.
The total number of NULL children in a binary tree with N nodes is N-1.
LRU, MRU and LFU are caching algorithms used to manage memory in computer systems.
LRU stands for Least Recently Used and removes the least recently used items from the cache when the cache is full.
MRU stands for Most Recently Used and removes the most recently used items from the cache when the cache is full.
LFU stands for Least Frequently Used and removes the least frequently used items from the cache when the ca...
The fopen, fseek, and other file handling functions in Linux are implemented using various techniques and constraints.
fopen function is used to open a file and returns a file pointer
fseek function is used to set the file position indicator
Other file handling functions like fread, fwrite, fclose, etc. are used for reading, writing, and closing files
To handle large files, techniques like memory mapping, buffered I/O...
I applied via Campus Placement and was interviewed in May 2024. There were 4 interview rounds.
One hour and two questions on DSA (medium to hard problems) through coding site link
PMs are given a situation and asked to write user stories.
A purchase order is a document issued by a buyer to a seller, indicating types, quantities, and agreed prices for products or services.
Purchase orders are used in business transactions to ensure both parties are in agreement on the terms of the sale.
They typically include details such as item descriptions, quantities, prices, payment terms, and delivery dates.
Purchase orders help track expenses, manage inventory, and p...
The process of purchase involves identifying needs, researching options, making a selection, negotiating terms, and completing the transaction.
Identify the need for a product or service
Research available options and compare prices
Make a selection based on budget and requirements
Negotiate terms such as price, delivery, and payment
Complete the transaction by making the purchase
I applied via Campus Placement and was interviewed before Sep 2023. There were 3 interview rounds.
Merge two sorted arrays
Find the kth largest element in the array
Check if we make an sorted by removing almost one element
Some basic OS concepts
I want to join Gen Digital because of their innovative projects and collaborative work environment.
Innovative projects: Gen Digital is known for working on cutting-edge technologies and projects.
Collaborative work environment: I value teamwork and believe Gen Digital fosters a culture of collaboration.
Career growth opportunities: I see Gen Digital as a place where I can learn and grow as a software engineer.
I enjoy the strategic planning, problem-solving, and cross-functional collaboration involved in product management.
I like the opportunity to work on innovative products and bring them to market.
I enjoy analyzing market trends and customer feedback to make data-driven decisions.
I appreciate collaborating with various teams such as engineering, marketing, and sales to ensure successful product launches.
I applied via Recruitment Consulltant
A mutex is a synchronization primitive that ensures only one thread can access a resource at a time.
Create a mutex object using the appropriate library or language-specific function.
Lock the mutex before accessing the shared resource to prevent other threads from accessing it.
Unlock the mutex after finishing the operation on the shared resource to allow other threads to access it.
Example: pthread_mutex_t mutex; pthread...
Identify memory leak in code
Check for any dynamically allocated memory that is not being freed
Look for any infinite loops or recursive functions that consume memory
Use memory profiling tools like Valgrind to detect leaks
Check for any global variables that are not properly managed
I appeared for an interview before Mar 2024, where I was asked the following questions.
I applied via Campus Placement and was interviewed before Mar 2023. There were 4 interview rounds.
7 easy coding questions
I applied via Campus Placement and was interviewed before Jul 2023. There were 2 interview rounds.
Databases mcq,coding test in any language and SQL and etl questions
I applied via Company Website and was interviewed in May 2022. There were 2 interview rounds.
Logical reasoning And aptitude test
C++, python and Java programming
Top trending discussions
Some of the top questions asked at the Gen interview -
based on 9 interview experiences
Difficulty level
Duration
8-10 Yrs
Not Disclosed
5-8 Yrs
Not Disclosed
Senior Software Engineer
99
salaries
| ₹12 L/yr - ₹35.1 L/yr |
Software Engineer
60
salaries
| ₹12.6 L/yr - ₹23 L/yr |
Principal Software Engineer
52
salaries
| ₹42.9 L/yr - ₹75 L/yr |
Softwaretest Engineer
28
salaries
| ₹4.2 L/yr - ₹6 L/yr |
SQA Engineer
26
salaries
| ₹6.5 L/yr - ₹15.5 L/yr |
Thomson Reuters
Oracle Cerner
Chetu
R Systems International