i
LG Soft
India
Filter interviews by
C programming
Cpp programs
Embedded c
Aptitude
Macros are preprocessor directives that are replaced before compilation, while functions are blocks of code that are executed at runtime.
Macros are defined using #define directive, while functions are defined using function keyword.
Macros are expanded by the preprocessor before compilation, while functions are executed at runtime.
Macros can be used for simple text replacement, while functions can perform complex operat...
exec replaces the current process with a new one, while fork creates a new process.
exec replaces the current process with a new one, while fork creates a new process
exec system call loads a new program into the current process's memory space and starts its execution
fork system call creates a new process by duplicating the existing process
Your company is a leading software development firm specializing in creating innovative solutions for various industries.
Specializes in creating innovative software solutions
Works with clients from various industries
Known for high-quality and reliable products
Has a strong team of experienced developers
Provides excellent customer support
Top trending discussions
I appeared for an interview in Jun 2016.
I appeared for an interview before Nov 2020.
Round duration - 150 Minutes
Round difficulty - Medium
Have to attempt 2 programming questions within 2:30 hours. Can take any time over the weekend. Relatively easy problems. Questions were long, but the solution code was small.
Compute the skyline of given rectangular buildings in a 2D city, eliminating hidden lines and forming the outer contour of the silhouette when viewed from a distance. Each building is ...
Compute the skyline of given rectangular buildings in a 2D city, eliminating hidden lines and forming the outer contour of the silhouette.
Iterate through the buildings and create a list of critical points (x, y) where the height changes.
Sort the critical points based on x-coordinate and process them to generate the skyline.
Merge consecutive horizontal segments of equal height to ensure no duplicates in the output.
You are given a Singly Linked List of integers. Your task is to sort the list using the 'Merge Sort' algorithm.
The input consists of a single line contain...
Sort a Singly Linked List using Merge Sort algorithm.
Implement the Merge Sort algorithm for linked lists.
Divide the list into two halves, sort each half recursively, then merge them.
Use a fast and slow pointer to find the middle of the list for splitting.
Handle the base case of a single node or empty list.
Example: Input: 4 3 2 1 -1, Output: 1 2 3 4
Round duration - 240 Minutes
Round difficulty - Medium
Had to solve 1 programming question in 4 hours. It was in the morning on a weekend. The environment was not so good. It was a small institute and got very crowded. The platform was also buggy. but the question was not difficult. Was able to solve it in just 1 hour and leave.
Alex has acquired a machine that can photocopy photos in batches of a minimum size 'K'. Given 'N' photos with resolutions represented in an integer array photos
, the machine prod...
Minimize maximum error by splitting photos into batches of size at least 'K'.
Sort the array of resolutions in ascending order.
Iterate through the array and calculate the error for each possible batch.
Return the minimum possible maximum error found.
Round duration - 30 Minutes
Round difficulty - Easy
It was in the afternoon. The interviewer basically asked me what technologies I have worked on. Checked my knowledge of those technologies with simple questions. Told me what I'll be working on if I get selected.
Given an integer array arr
of size 'N' containing only 0s, 1s, and 2s, write an algorithm to sort the array.
The first line contains an integer 'T' representing the n...
Sort an integer array containing only 0s, 1s, and 2s in linear time complexity.
Use three pointers to keep track of the positions of 0s, 1s, and 2s in the array.
Iterate through the array and swap elements based on the values encountered.
Maintain left pointer for 0s, right pointer for 2s, and current pointer for traversal.
Example: If current element is 0, swap it with element at left pointer and increment both pointers.
E...
Round duration - 90 Minutes
Round difficulty - Hard
It was also in the afternoon. The interviewer was the member of the team I'll be working on if I get selected. He asked me some basic questions about related technologies.
Gave me 2-3 DS & Algo problems and asked me to solve them.
Calculate the sum of all elements in an array of length N
.
Line 1: An integer N indicating the size of the array.
Line 2: N integers, the elements of the array, separated by ...
Calculate the sum of all elements in an array of length N.
Iterate through the array and add each element to a running sum.
Return the final sum as the output.
An alien dropped its dictionary while visiting Earth. The Ninja wants to determine the order of characters used in the alien language, based on the given list of wor...
Determine the order of characters in an alien language based on a list of words.
Create a graph where each character is a node and there is a directed edge from character 'a' to character 'b' if 'a' comes before 'b' in any word.
Perform a topological sort on the graph to get the order of characters.
Return the order as a string in lexicographical order.
Tip 1 : It's a Daily process. Not weekly, Not monthly. DAILY!
Tip 2 : Take part in Online Contests. HackerEarth is best for Contests posted by companies.
Tip 3 : Even after you have solved some problem, try to find a better solution for it online. Companies don't want a solution, they want optimized solution.
Tip 1 : Modify resume for each job you are applying for. It should show why you are suitable for that particular job.
Tip 2 : Remove any extra things like interests and hobbies. No one cares.
I appeared for an interview in Feb 2021.
Round duration - 120 minutes
Round difficulty - Easy
Round duration - 90 minutes
Round difficulty - Medium
The round contains mcqs on core java , javascript , oops and two coding questions of data structures.
The exam was at 7pm
Platform was good
Given a 2-dimensional array ARR
with 'N' rows and 'M' columns, and a set of queries in a 2-dimensional array Queries
of size 'K', each query contains four integers that denote the top-...
Given a 2D array and a set of queries, find the sum of elements within specified submatrices for each query.
Parse input to get array dimensions, elements, and queries
Iterate through queries and calculate sum of elements within specified submatrix
Output the sum for each query
You are given a string named str
and an integer D
. Your task is to perform both left (anticlockwise) and right (clockwise) rotations on the given string by D
units, start...
Implement functions to perform left and right rotations on a given string by a specified number of positions.
Implement a function leftRotate() to perform left rotation on the string by D units.
Implement a function rightRotate() to perform right rotation on the string by D units.
Return the modified string after each rotation.
Ensure to handle cases where D can be greater than the length of the string.
Tip 1 : Good knowledge of basics of data structure.
Tip 2 : Question need to be done with optimized time complexity until you won't be able to pass all test cases.
Tip 1 : Atleast one good project
Tip 2 : Specially mention Java and JavaScript
I have 5 years of experience in software development, specializing in web applications using Java and JavaScript.
5 years of experience in software development
Specialize in web applications
Proficient in Java and JavaScript
I applied via Company Website and was interviewed before Oct 2023. There were 2 interview rounds.
Sorting an array of strings using a program
Use a sorting algorithm like bubble sort, selection sort, or merge sort
Compare strings using built-in comparison functions or custom comparison functions
Ensure the sorting algorithm is efficient for large arrays
Passionate software developer with a goal to continuously learn and grow in the field.
Passionate about coding and problem-solving
Goal to stay updated with latest technologies and trends
Interested in developing innovative solutions for real-world problems
I applied via Naukri.com and was interviewed in Aug 2022. There were 2 interview rounds.
I applied via Campus Placement and was interviewed in Aug 2023. There were 3 interview rounds.
Coding test had two questions which we should solve using any of the programing language
Truncate is used in SQL to quickly delete all records from a table without logging individual row deletions.
Truncate is faster than using DELETE statement as it does not log individual row deletions.
Truncate resets the identity seed value of the table.
Truncate cannot be rolled back and does not activate triggers.
Memory management techniques in operating systems involve allocation, deallocation, and optimization of memory usage.
Memory partitioning: dividing memory into fixed-size or variable-size partitions for allocation to processes.
Paging: dividing memory into fixed-size blocks and allocating them to processes as needed.
Segmentation: dividing memory into logical segments based on program structure.
Virtual memory: using disk ...
It was nice contents 3 questions
It contents 2 dsa questions
It takes the professional test for coding skill test, It takes 4 hours to complete the test
based on 1 interview experience
based on 14 reviews
Rating in categories
Test Engineer
417
salaries
| ₹2.8 L/yr - ₹5.1 L/yr |
Research Engineer
404
salaries
| ₹4.8 L/yr - ₹18 L/yr |
Senior Research Engineer
319
salaries
| ₹19.3 L/yr - ₹34.4 L/yr |
Softwaretest Engineer
291
salaries
| ₹3 L/yr - ₹6 L/yr |
Senior Test Engineer
262
salaries
| ₹2.9 L/yr - ₹7.5 L/yr |
OPPO
LG Electronics
Bajaj Electricals
Voltas