Tip 1 : Always google or research the previously asked questions and try to practice on leetcode or hackerrank
Tip 2 : Thoroughly prepare the core subjects and your project
Tip 3 : Be confident and polish your communication skills
Tip 1: Have in-depth knowledge of everything you put on resume as they make questions from it.
Tip 2: Have good projects and try not to falsify anything. They are experienced people and will catch you so don't risk the opportunity.
There are 20 Mcq and 2 coding questions. There were fixed timing slots for every one. I had mine in the afternoon.
There was no negative marking in MCQ



'S' = "{}()".
There is always an opening brace before a closing brace i.e. '{' before '}', '(' before ').
So the 'S' is Balanced.
Step 1 - To beginners it would appear a difficult problem and they would try dictionary or double for loops and pointers. It would not satisfy all test cases and will be difficult to code.
Step 2 - Stack data structure had to be used.
Solution in python:
class Solution:
def isValid(self, s: str) -> bool:
stack = [-1]
for i in s:
if i=="(":
stack.append(")")
elif i=="{" :
stack.append("}")
elif i=="[":
stack.append("]")
else:
if stack[-1]==i:
stack.pop()
else:
stack[0] = 0
break
if len(stack)==1 and stack[0]==-1:
return True
return False
It had 3 coding questions of hard level.
One from greedy.
One from DP
One from data structures.
On clearing 1+ problems, you can get a call for DSE role interview (6.25 LPA)
On clearing 2+ problems, you can get a call for PP role interview. (9.5 LPA)
I cleared 2.22 and got PP role interview opportunity.
Also, top 100 from this contest are invited to Infosys Pune DC for a final contest wherein they are divided in teams and given some tasks. It is of 3 days. Participants and winners get luxurious treatment, exciting goodies and a fun learning experience.



You may make as many transactions as you want but can not have more than one transaction at a time i.e, if you have the stock, you need to sell it first, and then only you can buy it again.
class Solution:
def maxProfit(self, prices: List[int]) -> int:
self.p=prices
pft=0
for i in range(1,len(prices)):
if self.p[i]>self.p[i-1]:
pft += (self.p[i]-self.p[i-1])
return pft



A substring is a contiguous segment of a string.
class Solution:
def longestPalindrome(self, s: str) -> int:
h={}
for i in s:
if i not in h:
h[i]=1
else:
h[i]+=1
tl=0
one = 0
for i in h:
if h[i]==1:
one=1
elif h[i]%2==0:
tl= tl + (h[i])
else:
tl = tl + (h[i]-1)
one=1
return tl + one




If we are given the above binary tree as input then moving from root node(5) to the farthest leaf node(50), the path formed will be [ 5->10->25->35->40->45->50 ]. The total number of nodes encountered is 7, therefore the maximum depth of the binary tree is 7.
Could not solve fully as I cleared 2.22/3 questions only.
My HackwithInfy (Advantage Round) was held on 8th March 2022. I managed to solve 2.22/3 questions. On 12th April 2022 results came out and I had to interview for the role of Power Programmer.
The mail for the interview came on the evening of 28th April 2022. (Just 1.5 days to prepare). The interview was on 30th April 2022 at 10:00 am.
Mode of Interview: Online Video Chat (Video and Audio both switched on the whole time)
Platform: Microsoft Teams
Duration: 50 minutes
Before the actual Q/A started, he completed the formalities of checking my identification proof and capturing my face.
Then, he asked me to introduce myself.
In the introduction, one can tell briefly about themselves (schooling, family, etc.), projects, skills, and ambitions.
Then he started with the questions. He asked me how good I was at problem-solving, to which I responded that I had a gold badge on Hackerrank in the same. So he gave me a question to code and told me to share my screen. He said I could use any text editor to write the code for that problem-solving question.
I took 15 min and coded the whole solution in python. He asked me to explain each line of the code. He gave me 3 test cases to run. All my test cases gave the correct output. He was impressed and even commented “Perfect”. Later, he wanted me to explain the space and time complexity which I did nicely. He asked me about the space optimization of my code – which I could not answer. (But he was cool on it and was satisfied as my code ran correctly)
Hint: This coding question is exactly similar to the question named Candies on HackerRank.
After this, he asked me to rate myself in subjects like DBMS, DSA, Computer Networks, Python (as this is my preferred language), and OOPS. Then he asked me questions related to these.
Listed below are the questions that he asked me :
DBMS – ACID properties, rollback, and its real-time experience.
OOPS- explain oops to me considering I am a 6-year child, Features of OOPS
OS – semaphores, deadlock, and its condition
DSA-Segment Trees, Stack and heap memory difference
Python – Advantages and Disadvantages, Why Python, Memory Management in Python
Out of all these, I could not answer the 4th point. Rest everything I explained nicely and was able to impress him.
After this, he just asked 2-3 HR questions like strengths, goals, and weaknesses. He then ended the meeting by saying that he’ll share my feedback further and was hoping that I clear the interview.
TIPS:
Prepare projects well. In my case, nothing was asked about projects, but a few of my friends had questions about projects.
Prepare your resume well.
Prepare the core subjects (at least the main topics and their applications)
If you don’t know an answer simply say that I cannot recall or I have no idea about this. They don’t someone perfect but someone who has a learning attitude. So be optimistic and generate a positive vibe.
Hands-on coding is a must as you can’t run away from the fact that you will have to code a question live over there on your own.
Abstain from any malicious work including googling, cheating, or having friends/seniors in your room during the interview. The other person is a senior and has been where you are. Try to avoid any of such things else it will lead to banning and rejection from the company.
In case of any queries/answers feel free to ask in the comments.
RESULT: I got placement offer for the role of Power Programmer. 42 students from my college had interviewed and only 7 got this offer. So grateful to be a part of those 7.
P.S: The students who interviewed for SP role and did not clear it, got DSE role



It is a greedy concept question where you compare adjacent values simultaneously in 1 loop to get maximum answer.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: