Open In App

HackWithInfy 2020 Interview Experience for Power Programmer Role

Last Updated : 21 Oct, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

HackWithInfy is an open contest of Infosys. It contains three rounds.

Round 1

Round 1, contains three problem-solving coding questions hosted by HackerEarth. Three Questions of different difficulties. Easy for 50 points, Medium for 75 points, Hard for 100 points. Total of 225 points. I have solved only one coding question(Easy). In this round, we are able to see how many test cases are passed.

Maximum Sum of all Triplets Score [ EASY]

Given an array of length n, where n is multiple of 3. Construct n/3 triplets (a,b,c) such that a<=b<=c, then the score of the triplet is b (middle element), such that sum of all triplets score is maximum.

Ex: array = [ 4 , 2 , 3 , 1 , 5, 6 ] , 2 triplets t1 = [ 1 , 5 , 6] , t2 = [ 2 , 3 , 4] — > total score is 5 + 3 = 8

Approach 1

step 1: Sort the array

step 2 : consider 1 smallest and 2 large numbers have one triplet

step 3: sum of all the triplets score

Approach 2

step 1: create max heap

step 2: pop and pop the next largest and add it to the sum

step 3: repeat this step 2 for n/3 times

Round 2

Round 2, contains three problem-solving coding questions hosted by HackerEarth. Three Questions of different difficulties. Easy for 50 points, Medium for 75 points, Hard for 100 points. Total of 225 points. I have solved two coding questions(Easy, medium). In this round, we are not able to see how many test cases are passed.

Maximum Number of cities can be visited [EASY]

Given N cities, and exist N-1 roads (bi-directional), such that all cities are can be visited through these roads. There are M devils, they sit in m different cities. Everyone is afraid of the devil so that we cannot visit that city. Find the maximum number of cities that can be visited from city “1”. Given N cities, and N-1 roads between city X and city Y. M devil, on which city they sit.

Example: 10 cities

roads between city X and City Y

1 2

1 3

1 4

2 5

2 6

3 8

3 7

4 9

8 10

3 devils sat on city 2, 8, 9

output : 3

we can visit 3, 7, 4

Approach

  1. construct a graph
  2. Traverse DFS or BFS and count Number of Cities can be visited

Maximum of Student Groups can Satisfy [ MEDIUM ]

Given N student groups, group size may vary and M different radius ball groups, group size may vary. A student group is said to be satisfied if, in each group have different radius balls and each student has at least one ball. The ball’s position is the radius of the ball.

Ex: Student groups [ 1, 2, 3]

Balls [ 2, 2, 2]

Balls with radius 1 are 2

Balls with radius 2 are 2

Balls with radius 3 are 3

Output : 3

Explanation:

for Student group 1 –> size 1, can have a ball with radius 1 remaining [ 1, 2, 2]

for student group 2 — > size 2, can have balls with radius 2 and 3 remaining [1, 1, 1 ]

for student group 3 –> size 3, can have balls with radius 1, 2, and 3 remaining [ 0, 0, 0 ]

All student groups are Satisfied

.

.

Top 108 participants are selected for Hackathon [ Round 3]. I am not in Top 108 participants

InterviewsRound 1 TR (Time 50 mins to 1 Hour)

It is a virtual interview hosted on Cisco Webex.

Interviewer: Tell me about yourself

Me: answered

Interviewer: favorite programming language

Me: Python

Interviewer: Python vs Java

Me: answered

Interviewer: share your screen, and write a program that reads a word and determine how many words, with the same number of letters as the input, it might represent.

Morce code

example

input: ETA

output: 7

explanation

ETA can be represented as . – . –

ETA — > . – . –

ETET — > . – . –

AET — > . – . –

ENA — > . – . –

EK –> . – . –

AA — > . – . –

RT — > . – . –

Me: Explained approach use Recursion and written code using memorization of recursion results

We ended the interview

Round 2 TR (15 mins)

Interviewer: Tell me about yourself

Me: answered

Interviewer: Process vs Thread

Me: answered

the interviewer asked about some personal questions

We ended the Interview

After ten days I have received mail

Result: Selected

Thankyou for Reading


Previous Article
Next Article

Similar Reads

Infosys Interview Experience for Power Programmer Role | HackWithInfy 2020
HackWithInfy is basically an online competition conducted by Infosys. It includes two coding rounds and a hackathon. Based on the performance in the coding round, further stuff is decided. The top 100 students get the opportunity to participate in the hackathon and additionally, they get an interview call for the Power Programmer role. The top 500
5 min read
Interview Experience for Power Programmer Role Infosys by HackWithInfy
Each year Infosys conducts (started from the year 2018) this Competition for students which basically comprises of 3 Rounds in total and then Pre-Placement Interview for PowerProgrammer Role for top 100 students. The first two rounds are of competitive coding with a duration of 3 hours comprising of 3 question in each round and are held on HackerRa
3 min read
Infosys Interview Experience for Power Programmer Role through HackWithInfy
Each year Infosys organize a competition called HackWithInfy(Starting from 2018). There are basically three rounds. The first two rounds are Online coding round on HackerRank followed by a interview for Power Programmer Role. After the two rounds of coding Top 107 students were selected for interview and hackathon at Infosys Pune Campus. ONLINE COD
3 min read
HackWithInfy Interview Experience - 2019 for Power Programmer Role
Infosys is one of the major recruiters in the country. Since 2 years HackWithInfy has become one of the premier coding competitions conducted by Infosys. So here I am going to discuss my experience of HackwithInfy 2019. I applied for HackWithInfy through my college VIT Vellore's training and placement cell. Round 1: It was held on 1st July 2019 on
6 min read
Infosys Interview Experience | Power Programmer Role through Hackwithinfy
Hackwithinfy is an online contest organized by Infosys. It's basically a coding competition consisting of two online rounds. Round 1 (Online Coding Round): The first round was hosted on the Hackerank Platform consisting of 3 questions from easy to hard level. All the 3 questions will be of the easy to medium level. Generally, questions will be from
2 min read
HackWithInfy Interview Experience for Power Programmer 2020
Hey Guys, Here is my Recruitment Process for Power Programming Role at Infosys (HackWithInfy). There were 4 rounds in total. Round 1 (Coding Test): The test was conducted on HackerEarth Platform. It consisted of 3 questions that were based on Data Structures, Algorithms, and Number Theory. All the 3 questions were in increasing order of difficulty
2 min read
Infosys Virtual Interview Experience for Power Programmer | HackWithInfy 2020
After clearing 2 coding rounds of HackWithInfy Challenge and solving 2/3 questions in round 2, got PPI for Power Programmer: Technical Interview 1: No of Panelists:1Duration: 1 hour Intro in the very beginning. Just after that, the interviewer gave me a question to code while sharing my screen. Problem: Given a palindrome number, find the next high
1 min read
Infosys Interview by Hackwithinfy for Power Programmer role 2019
Firstly you need to register for this Hackwithinfy contest it consists three rounds Round 1: For this round all final year students are eligible. it is national wide competition. it is a online coding round in hacker rank platform. the time duration is 2hr 30 mins. in this challenge 3 questions will be given. they provide more than 5 programming la
2 min read
Infosys Hackwithinfy Interview Experience for Power Programmer 2021
Hackwithinfy is the known way to get a pre-placement offer from Infosys. This year hackwithinfy had only 1 online coding round. Round 1(Online Coding): There were 3 coding questions with different difficulty levels and therefore different weightages. So in 3 questions 1 was easy,1 medium,1 difficult. Depending on how many and which questions you so
3 min read
Infosys Hackwithinfy Interview Experience for Power Programmer 2021
Round 1(Online Assessment): In the first round they asked 3 coding questions, the questions are from DSA and Dynamic Programming I could able to solve one coding question completely, and the second one I solved 60% and after that, I got a PPI opportunity. Round 2(Technical+ HR interview): I got my 1st round results from my TPO(Training and Placemen
2 min read