i
GlobalLogic
Filter interviews by
This interview question covers various topics in Java programming, including OOP concepts, inheritance, keywords, and implementing mathematical algorithms.
OOP concepts include encapsulation, inheritance, polymorphism, and abstraction.
Inheritance allows a class to inherit properties and methods from another class.
To prevent inheritance in Java, use the 'final' keyword before the class declaration.
Sealed, final, and...
Given an array of size N
and Q
queries, each query requires left rotating the original array by a specified number of elements. Return the modified array for each query.
Rotate an array left by a specified number of elements for each query.
Parse input: read number of test cases, array size, queries, and array elements
For each query, left rotate the array by the specified number of elements
Return the modified array for each query
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 are...
The N Queens Problem involves finding all possible placements of N queens on an N x N chessboard where no two queens threaten each other.
Understand the constraints of the problem: N represents the size of the chessboard and the number of queens, and queens can attack each other if they are in the same row, column, or diagonal.
Implement a backtracking algorithm to explore all possible configurations of queen placem...
You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to find and return a list of all pairs of elements where each sum of a pair equals 'S'.
...
Given an array and a target sum, find pairs of elements that add up to the target sum.
Iterate through the array and for each element, check if the complement (target sum - current element) exists in a hash set.
If the complement exists, add the pair to the result list.
Sort the result list based on the first element of each pair, and then the second element if the first elements are equal.
What people are saying about GlobalLogic
You are given a slot machine with four slots, each containing one of the colors Red (R), Yellow (Y), Green (G), or Blue (B). You must guess the colors without prior knowledge. F...
Calculate total score based on guessing colors in a slot machine.
Iterate through each slot in the original and guess strings to compare colors.
Count perfect hits when color matches in correct slot, and pseudo-hits when color matches in different slot.
Calculate total score by adding perfect hits and pseudo-hits.
Handle edge cases like invalid input strings or exceeding constraints.
DSA with Programming related and aptitude MCQ
I applied via Campus Placement
The coding test consisted of 2 java coding questions, Aptitude MCQ's and Technical MCQ's. The coding questions were easy to medium level. It also consisted of a SQL query followed by a javascript question.
Double linked lists are used when there is a need to traverse the list in both directions efficiently.
Allows for traversal in both directions
Insertions and deletions can be done in constant time
Used in implementations of undo functionality in text editors
Inheritance allows a class to inherit properties and methods from another class, while polymorphism allows objects of different classes to be treated as objects of a common superclass.
Create a base class with common properties and methods
Create derived classes that inherit from the base class and add their own unique properties and methods
Use virtual functions in the base class and override them in the derived classes ...
Aptitude and coding , basically there was aptitude and dsa questions
I am a recent graduate with a degree in Computer Science, passionate about coding and problem-solving.
Recent graduate with a degree in Computer Science
Passionate about coding and problem-solving
Experience with programming languages like Java, Python, and C++
Completed internships at tech companies
Strong communication and teamwork skills
Reverse a linked list
Iterate through the linked list and reverse the pointers
Use three pointers to keep track of current, previous, and next nodes
Update the next pointer of each node to point to the previous node
Reverse the array of strings
Create a new array and iterate through the original array in reverse order, adding each element to the new array
Alternatively, you can use the reverse() method on the array itself
I applied via Campus Placement
The coding test was conducted in hackerearth platform.The questions are 4 dsa with 3 easy and 1 hard.
I applied via Campus Placement and was interviewed in Nov 2022. There were 4 interview rounds.
40 MCQs of aptitude for 40 minutes. 3 coding questions(1 - easy, 2- medium, 3 - hard)
OOPS Concepts are fundamental principles of Object-Oriented Programming.
Encapsulation - bundling of data and methods that operate on that data
Inheritance - ability of a class to inherit properties and methods from its parent class
Polymorphism - ability of objects to take on multiple forms
Abstraction - hiding of complex implementation details from the user
Example code: class Car { private String make; public void setMak...
Questions were of medium difficulty.
I applied via Campus Placement and was interviewed in Oct 2022. There was 1 interview round.
I applied via Campus Placement and was interviewed before Jun 2023. There were 3 interview rounds.
Using hackerEarth platform - MCQs and 3 coding questions.
Program to add a node to the end of a linked list
Create a new node with the data to be added
Traverse the linked list to reach the last node
Update the next pointer of the last node to point to the new node
Program to check if a number is palindrome or not.
Convert the number to a string for easier comparison
Reverse the string and compare it with the original string
If they are the same, the number is a palindrome
I applied via Referral and was interviewed before Jul 2021. There were 3 interview rounds.
2 coding questions and Java and SQL network based MCQ , there is some output based MCQ (mostly on java)
This interview question covers various topics in Java programming, including OOP concepts, inheritance, keywords, and implementing mathematical algorithms.
OOP concepts include encapsulation, inheritance, polymorphism, and abstraction.
Inheritance allows a class to inherit properties and methods from another class.
To prevent inheritance in Java, use the 'final' keyword before the class declaration.
Sealed, final, and stat...
Answers to interview questions for Software Engineer Trainee
Primary foreign key is a column in a table that is used to link to the primary key of another table
ACID properties are Atomicity, Consistency, Isolation, and Durability which ensure database transactions are reliable
To return 3rd maximum salary, use the LIMIT and OFFSET clauses in SQL
SQL join is used to combine data from two or more tables based on a related c...
Implement Fibonacci using dynamic programming and discuss strengths and weaknesses.
Dynamic programming uses memoization to store previously calculated values
Fibonacci sequence is a classic example of dynamic programming
Strengths: efficient, reduces redundant calculations, improves performance
Weaknesses: requires additional memory, may not be suitable for small problems
Example: fib(n) = fib(n-1) + fib(n-2), with base ca...
I applied via Campus Placement and was interviewed before Feb 2023. There were 3 interview rounds.
Easy to medium level of difficulty
Easy to medium level of difficulty
Some of the top questions asked at the GlobalLogic Software Engineer Trainee interview -
based on 7 interview experiences
Difficulty level
Duration
based on 14 reviews
Rating in categories
Associate Analyst
4.1k
salaries
| ₹1 L/yr - ₹4 L/yr |
Senior Software Engineer
3.6k
salaries
| ₹4 L/yr - ₹29 L/yr |
Software Engineer
3.2k
salaries
| ₹4 L/yr - ₹13.4 L/yr |
Analyst
3.1k
salaries
| ₹1.2 L/yr - ₹5.5 L/yr |
Associate Consultant
3.1k
salaries
| ₹9.5 L/yr - ₹35 L/yr |
Genpact
DXC Technology
Sutherland Global Services
Optum Global Solutions