Coforge pvt. Ltd. interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Coforge pvt. Ltd.
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Quantitative Aptitude, Logical Reasoning, English, C, C++, Java, Pointers, OOPS
Tip
Tip

Tip 1 : You need a strong aptitude for knowledge as a first tip
Tip 2 : Solve questions from previous coding questions
Tip 3 : Make sure your resume includes at least two projects

Application process
Where: Linkedin
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Have at least 2 good projects mentioned in your resume with a link
Tip 2 : Focus on skills, internships, projects, and experiences.
Tip 3 : Make it simple, crisp, and one page

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 minutes
Interview date1 Oct 2021
Coding problem1

There were a total of 65 Questions on Quantitative Aptitude, Logical Reasoning, English, and Pseudo codes. It went well for me. It took less than two weeks, they sent me a letter for the Interview (Technical Round) after clearing the first round.

1. MCQ Questions

General Aptitude Verbal Ability, Probability, Reasoning, General Aptitude, Verbal Ability, Probability, Reasoning.

 

Number Of MCQs - 65

02
Round
Easy
Video Call
Duration45 minutes
Interview date15 Oct 2021
Coding problem2

It was a technical Interview, interviewers were very friendly. There was one coding question from strings. And they have asked about the projects which I mentioned in my resume.

1. Two Sum

Easy
10m average time
90% success
0/40
Asked in companies
Chegg Inc.FacebookAmazon

You are given an array of integers 'ARR' of length 'N' and an integer Target. Your task is to return all pairs of elements such that they add up to Target.

Note:

We cannot use the element at a given index twice.

Follow Up:

Try to do this problem in O(N) time complexity. 
Problem approach

Let's come from afar for this problem.

Slow & simple solution

The bruteforce solution for this will be going over the array, and for each element running another for loop, checking if the sum of the elements will be target, leaving us with O(n^2) time complexity. So how to optimize this?

Important idea

One important idea is the look-up. So, for each element of the array, we're not looking for the needle in the haystack, but asking the needle to jump out of it. In other words, for each nums[i], we wonder if there's a target / nums[i] in our array. Now we do n steps, and on each step do a look-up, which takes x time. Leaving us with O(n*x).

Set

We want to use a data structure with minimal look-up time here, so let's create a new Set Populate it with all the numbers. And on each step look up, if our desired pair is there.

p.s. Set.prototype.has() has a time complexity below O(n), which can be from O(1) to O(logn) based on internal implementation. O(1) is the hash-map.

var twoSum = function (nums, target) {
const S = new Set(nums);
for (let i = 1; i < nums.length; i++) {
if (S.has(target - nums[i])) {
return [nums.indexOf(target - nums[i]), i];
}
}
};
Optimization

To optimize this further, we can populate the Set on the go, because for each step, we look into all the previous numbers, no cases missed, yet some potential for early exits giving us a little boost.

var twoSum = function (nums, target) {
const S = new Set([nums[0]]);
for (let i = 1; i < nums.length; i++) {
if (S.has(target - nums[i])) {
return [nums.indexOf(target - nums[i]), i];
}
S.add(nums[i]);
}
};

Try solving now

2. Palindrome Linked List

Easy
20m average time
90% success
0/40
Asked in companies
Livekeeping (An IndiaMART Company)AppleThought Works

You are given a singly Linked List of integers. Your task is to return true if the given singly linked list is a palindrome otherwise returns false.

For example:
The given linked list is 1 -> 2 -> 3 -> 2-> 1-> NULL.

It is a palindrome linked list because the given linked list has the same order of elements when traversed forwards and backward​.
Follow Up:
Can you solve the problem in O(N) time complexity and O(1) space complexity iteratively?
Try solving now
03
Round
Easy
HR Round
Duration10 minutes
Interview date20 Oct 2022
Coding problem1

It was of 10 mins duration. They asked me about my family background and my previous education, my hobbies, and everything. After two days, I got a letter with an offer.

1. Basic HR Questions

Tell me about yourself. 

Tell me about the most challenging project. 

Tell me about the basic pillars of OOPs. 

Am I ready to relocate to any location in India?

Problem approach

Tip 1 : Make sure your resume is up-to-date
Tip 2 : Be confident and focus on your communication
Tip 3 : Prepare for the behavioural questions

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
Senior Software Engineer
4 rounds | 7 problems
Interviewed by Coforge pvt. Ltd.
1720 views
0 comments
0 upvotes
SDE - 1
2 rounds | 2 problems
Interviewed by Coforge pvt. Ltd.
883 views
0 comments
0 upvotes
Graduate Engineer Trainee
3 rounds | 4 problems
Interviewed by Coforge pvt. Ltd.
909 views
0 comments
0 upvotes
Graduate Engineer Trainee
3 rounds | 4 problems
Interviewed by Coforge pvt. Ltd.
251 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes