i
GlobalLogic
Filter interviews by
I applied via Walk-in and was interviewed before Dec 2020. There was 1 interview round.
Code to reverse a given string.
Iterate through the string from end to start and append each character to a new string.
Use built-in functions like reverse() in Python or StringBuilder.reverse() in Java.
Convert the string to an array, reverse the array, and then convert it back to a string.
I was interviewed before May 2021.
Round duration - 60 Minutes
Round difficulty - Medium
3 coding question. 2 medium, 1 hard
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
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. ...
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.
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 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 placements ...
Round duration - 50 Minutes
Round difficulty - Medium
The interviewer was supportive and he asked me various questions. He asked me a question similar to N Sum. Asked me to optimise it as much as possible. Had discussion over topics such related to oops, Java, Java script, data structures, DBMS, Trees, graphs, some named algorithm, merge sort etc
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.
Round duration - 30 Minutes
Round difficulty - Medium
It was a managerial round to test candidates presence of mind. Puzzles and mathematical problems were asked. Some situation based questions were also asked in this round.
Round duration - 20 Minutes
Round difficulty - Easy
Interviewer asked me about SDLC, agile etc and situation based questions to know how would I respond in various situations.
Tip 1 : Be confident and have a positive attitude when appearing as a fresher. You should be able to communicate your ideas.
Tip 2 : Be a good listener. Ask questions for clarification of the problem. Discuss your approach.
Tip 3 : Have a good understanding of DS and algo, should be able to code.
Tip 1 : Add those things you should be able to talk about.
Tip 2 : Keep it clean and catchy.
Some of the top questions asked at the GlobalLogic Software Engineer Trainee interview -
based on 7 interviews
4 Interview rounds
based on 14 reviews
Rating in categories
Associate Analyst
3.9k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
3.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Analyst
3.1k
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Consultant
2.8k
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Wipro
Infosys
HCLTech