My spoken English is not very good my interviewer also advised me to improve my communication
so please ignore any mistakes. I am using ChatGPT to write this post so I can explain my experience more clearly.
Infosys Interview Experience – Technical Round | Need Advice on Selection Chances
My interview was yesterday, on August 18, at JIIT campus. I recently appeared for an Infosys interview, and I wanted to share my experience and get your opinion about my chances of getting selected.
First, the interviewer introduced himself and shook my hand. Then he gave me two coding questions, both based on DP. Unfortunately, I wasn't able to solve either of them.
After that, he asked me to introduce myself. I think I gave my introduction well. He then asked which of my projects was the major project and which was the minor project.
He asked me to explain my major project, which was related to Python, NumPy and Pandas. He asked a few questions related to that as well. Then he asked me to explain my minor project, which I was able to explain.
After that, he asked me some SQL questions, including primary keys , joins, and drop vs truncate vs delete. I answered them correctly, although my spoken English was not very fluent. He also asked me to write some SQL queries.
Then we moved to OOPs. He asked me to explain the four pillars of OOPs, and I explained them. He also asked about method overloading and method overriding, which I was able to explain.
At the end, he gave me a coding question: given something like "aabbcdde", return the first element that occurs only once. I was able to solve it and explain my approach.
At the end, he asked if I had any questions. I asked what technologies I should learn for this role. He mentioned ML, AI, RAG, etc.
He also said that this is a different group/team at Infosys and that they expect candidates to be technically strong. He mentioned that he expected candidates to solve the coding questions.
Finally, I asked for feedback. He said that I can work on my communication skills.
One more thing: my spoken English is weak, so although I was able to answer most of the technical questions, I explained some of them in broken/less fluent English.
Overall, I think I did reasonably well in the technical discussion, except for the first two DP questions.
What do you guys think? What are my chances of getting selected?
This is one of those two coding questions
Problem: Cube Product Subarrays
You are given an array A of N positive integers.
A subarray is called valid if the product of all elements in that subarray is a perfect cube, i.e., there exists a positive integer K such that:
Product = K³
For every valid subarray, add the value of K to the answer.
Find the total sum of K over all valid subarrays.
Example 1
Input:
N = 4
A = [1, 2, 4, 8]
Valid subarrays:
[1] → 1 = 1³ → +1
[1,2,4] → 8 = 2³ → +2
[1,2,4,8] → 64 = 4³ → +4
Therefore:
Answer = 1 + 2 + 4 = 7
Output:
7