Related Articles

DailyHunt On Campus Interview-FTE-August 2019

• Difficulty Level : Medium
• Last Updated : 06 Aug, 2019

Online test:

There were 6 MCQs and 2 coding questions. MCQs were on graphs, segment trees, interpolation, sorting algorithms.

Coding questions were

1) Given a string N containing, find if there exists a subsequence of N which when divided by K leaves a given remainder.

ex: Input: N K Q, Q is number of queries

174 5 3

0

1

2

Output:

NO

YES

YES

explanation: subsequence of 174 are 1, 7, 4, 17, 14, 74, 174.

1/5 gives remainder 1 (print YES), 17/5 gives remainder 2 (print YES) and there is no subsequence that gives 0 as remainder on dividing with 5(print NO).

2) Considering the numbers 1 to 9, each number has a cost. Given a number N which is the money you have, find the largest number you can make with the money.

ex: Input:

2 – number of queries

5 – amount you have

1 5 4 3 7 6 1 3 1 – cost of each digit

3

4 6 5 7 6 5 9 9 7

Output:

99999

-1

Most of the students couldn’t do the online test well. They shortlisted students based on their approach to the problem. 19 students were shortlisted.

Technical round 1:

The interviewer asked me to introduce myself. Asked me explain all the projects in my resume. Then he gave a problem on palindrome. Check if a given string is a permutation of a palindrome.

He helped me in optimizing the problem to O(n) time complexity and space of only one register.

Technical round 2:

Interviewer asked me to introduce myself. Only 1 question was given. Find the 1st natural number that is not present in the given array containing random numbers.

He helped me in optimizing the problem to O(n) time complexity without using extra space.

HR:

HR asked me basic questions like how was your day, about my family, what I am expecting from the company etc.

At last 8 students were selected and I was one of them ðŸ™‚

TIPS:

solve all must do coding questions in geeks for geeks.

I solved recursion problems from interview bit which was of great help for my online test.

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. In case you are prepared, test your skills using TCS, Wipro, Amazon. GoogleE-Litmus and Microsoft Test Serieses.

My Personal Notes arrow_drop_up