Find C++ solutions to coding problems at the following github page:
https://github.com/kaushal02/interview-coding-problems
Some interview experiences here(please share more if you have)-+1
Please don’t edit or remove heading 1 or heading 2 style , it screws up the outline and makes the document look chaotic.
KINDLY ENTER COMPANY HERE, IF ANY INFO IS ADDED IN DOC
(Anyone who solved the question completely is requested to share the solution and/or approach)
Microsoft | Qualcomm | Adobe | Goldman Sachs | Cisco | Samsung R&D (Bangalore) |
Citrix | KLA Tencor | Zendrive | BNY Mellon | Flipkart | Cohesity |
Samsung R&D Delhi | Samsung R&D Noida | Nutanix | Alphonso | UBS | Phone pe |
Jaguar Land Rover | Walmart | Ansys | SAP Labs | Uber | Appdynamics |
Mentor Graphics | Juniper Networks | Sandvine | Quadeye | Rivigo | EXL |
Indeed | Fractal Analytics | NetApp | Sprinklr | J.P. Morgan Chase (Software) | Razorpay |
Trexquant | Squarepoint Capital | Oracle | Johnson Matthey | Estee | Gartner |
Optiver | Publicis Sapient | Paytm | Credit Suisse (EORM) | Honeywell | HSBC GM |
MindTickle | PayU | AQR Capital | PayPal | Societe Generale | Apple |
Salesforce | One plus | Xilinx | Optum | Tiger Analytics | Veritas |
Zomato | Myntra | Yahoo Japan | Headout | Shuttl | Quadeye |
Tower | WorldQuant | Rubrik | Bidgely | Innovacer | Euler |
Vmware | Citi | cure.fit | Oyo | Mathworks | Deloitte |
Date | Company + College | |
6/7/2018 | (Microsoft, Goldman Sachs-IIIT Delhi) | |
7/7/2018 | (Qualcomm, Adobe - IIIT Delhi) | |
22/9/2018 | Alphonso-Business and data analyst (IIT Delhi) | |
24/9/2018 | (Samsung R&D Bangalore - IIT Madras), (Inautix/BNY Mellon Tech-IIT(BHU)) | |
30/9/2018 | (Mykaarma, Axella Advisory-IIT(BHU)) | |
4/10/2018 | HSBC (IIT(BHU)) | |
23/9/2018 | (IIT Delhi) | |
25/9/2018 | Citrix (IIT Madras), KLA Tencor (IIT Madras) | |
26/9/2018 | Zendrive (IIT Delhi) | |
27/9/2018 | Nutanix(IIT Delhi), Cohesity(IIT Delhi) | |
28/9/2018 | Samsung R&D Bangalore(IIT Delhi) | |
29/9/2018 | Samsung R&D Noida(IIT Delhi) | |
28/9/2018 | UBS(IIT BHU) | |
1/10/2018 | BNY Mellon (IIT Kanpur), PhonePe(IITM) | |
6/10/2018 | (IIT ISM), Adobe (IITM), Tesco (IITM), Qualcomm(IITM) | |
7/10/2018 | ANSYS Software (IIT Guwahati), Da Vinci Derivatives (IIT Delhi), Sterlite(IIT Kanpur),Samsung Semiconductor(IIT Kanpur) | |
8/10/2018 | KLA Tencor(IIT Kanpur), SAP Labs(IITM) | |
9/10/2018 | AppDynamics(IIT Delhi), Uber(IIT Delhi) Samsung R&D Noida(IIT BHU), Harness (IITR), Samsung Bangalore (IITK) | |
10/10/2018 | Juniper Networks(IITK), Microsoft(IITR),Microsoft(IITG),Greenland Investment Management(IITK), Tesco(IIT BHU) | |
11/10/2018 | Samsung R&D Delhi(IIT Kanpur), Rivigo(IITD),Quadeye(IITD) | |
12/10/2018 | Citrix(IITG), Quadeye(IITK) | |
13/10/2018 | Indeed(IITK), Fractal Analytics(IITK), NetApp(IITG), Rivigo(IITG), Quadeye(IITB) | |
14/10/2018 | AppDynamics(IITG),Sprinklr(IITK),Oracle(IITR), Fidelity(IITG) | |
15/10/2018 | AppDynamics(IITK),Samsung Bangalore(IITG), Cohesity(IITK) | |
16/10/2018 | Razorpay(IITR), AppDynamics(IITR) | |
17/10/2018 | Walmart Labs(IITG), SAP Labs(IITG),Squarepoint Capital(IITR) | |
18/10/2018 | Uber (IITR), Squarepoint(IITM) | |
21/10/2018 | Saavn(IITR), Trexquant(IITK), Squarepoint Capital(IITD) | |
22/10/2018 | SAP Labs(IITK), SAP Labs(IIT BHU), Phonepe(IITR), CISCO(IITR) | |
23/10/2018 | Citrix(IITB), Axis Bank(IITD), Qualcomm(IITD),Zendrive(IITR),Credit Suisse(IITK), Trexquant(IITM) | |
24/10/2018 | Gartner(IITD), Open Futures(IITD), SAP Labs(IITK-set2), Johnson Matthey(IITK), AppDynamics(IIT Kgp), BNY Mellon(IITR), Flipkart(IITR),Flipkart(IITKGP),Flipkart(IITM),Flipkart(IITG), Flipkart(IIT BHU),Flipkart(IITB) | |
25/10/2018 | Finmechanics(IITD), Adobe(IITD),Optiver(IITB), Sapient(IITR, IITG), Oracle(IITK),Razorpay(IITG) | |
26/10/2018 | Paytm(IIT BHU),Appdynamics(IITB, IITM),Rivigo(IITR),Mercari(IITD), Trexquant(IITD),Alphonso(IITD), Sapient(IITB) | |
27/10/2018 | Rakuten(IITB), Mercari(IITB), TrexQuant(IITB), Alphonso(IITR), J.P.Morgan Quant(IITR,IIT Kgp, IITD), Honeywell(IITKgp), Jaguar(IITK), Sapient(IITM), Nutanix(IITM) | |
28/10/2018 | Honeywell(IITK), SDE(IITD), Jaguar(IITD), Microsoft(IITD), Flipkart(IITD),Flipkart(IITH),Samsung Delhi(IITB),SAP labs(IITB), Indeed(IITB),Zendrive(IITB), UBS(IITB), Sprinklr(IITR), Nutanix(IITKGP), Sapient(IIT Kgp),Honeywell(IITG), Alphonso(IITM) | |
29/10/2018 | Intel(IITD), IBM(India, IITD), Tower Research(IITD), Indus Insights(IITR), Thoughtspot(IITR), Morgan Stanley (IITG), Intel (IITG), Samsung Noida(IITB), GE(IITM) | |
30/10/2018 | SRIB(Harness(IITD),PhonePe(IITB),FinMechanics(IITB), Microsoft(IITM) | |
31/10/2018 | Sapient(IITD),Salesforce(IITD),Uber(IITB),HSBC(GM), Adobe(IITR) | |
1/11/2018 | PayU(IITR), AQR(IITR), PayPal(IIT Kgp), Mercari(IIT Kgp), JPMC-SDE(IITB), KLA Tencor (IITB) Microsoft(IIT BHU) | |
2/11/2018 | Societe Generale(IITR), Goldman Sachs(IITD) AQR capital(IIT BHU) | |
3/11/2018 | Cohesity, Microsoft, Blackrock (IITKGP) Apple(IITB), Samsung R&D Bangalore(IITB), Goldman Sachs(IITR, IITM,IITB,IIT BHU), Zomato (IITD), GE(IITD), OnePlus(IITB), Yahoo(IITB), Jaguar(IITB), AB InBev(IITB), Gulftalent(IITB) Apple (IIT BHU) | |
4/11/2018 | Zomato(IITR), Salesforce(IITR, IITM,IITB), Paypal(IITM), RazorPay(IITM), Myntra (IITM), Oracle(IITD,IITB), Rakuten(IITD), Schlumberger(IITD), Apple(IITD),Microsoft(IITB),Samsung Semiconductors(IITB),Intel(IITB),Sprinklr(IITB),Google Hardware(IITB) Sprinklr(IIT BHU) Veritas(IIT BHU) | |
5/11/2018 | JPMC_SDE(IITKGP),Xilinx(IITB), Fidelity(IITR) | |
6/11/2018 | Myntra(IIT BHU) | |
10/11/2018 | Tesco(IIT Kgp) Amazon(IIT BHU) | |
11/11/2018 | UBER(IIT BHU) | |
13/11/2018 | Salesforce(IITH) Headout(IIT BHU) JIO(IIT BHU),Alphonso BDA(IIT BHU) | |
14/11/2018 | Salesforce(IIT BHU),Microsoft ML(IIT BHU) | |
21/11/2018 | Bidgely(IITR) | |
23/11/2018 | Veritas(IITR), Innovacer(IITR), Microland(IITR) | |
24/11/2018 | Amazon (IIT KGP), Vmware(IITR) | |
25/11/2018 | Citi(IITR), Cure.fit(IITR) | |
26/11/2018 | Zilingo(IITR), Headout(IITR) | |
27/11/2018 | Paytm(IITR), Oyo(IITR), Innoplexus(IITR), Ixigo(IITR), Visa(IITKGP) | |
28/11/2018 | Samsung Delhi(IITR), Mathworks(IITR), Codenation(IITR), Deloitte(IITR), Amazon(IITR), Codenation (IITKGP) | |
KINDLY ENTER COMPANY HERE, ONLY IF THE QUES ARE ADDED IN DOC |
Has Apple shortlisted for SRE role from any of the colleges apart from IIIT-H? If so, when is the interview?
IITR guys, please update questions for Societe Generale.
IITD guys please add questions for Rivigo’s business analyst profile
IIT M guys please update the questions for AQR capital. Exam tomorrow evening.
Dell in any IIT ?????????- Dell’s test is scheduled in IITB on 26th Nov.
IITD people, please share questions of Axis Bank? Please………. ?+10
Can someone from IITK post the questions asked in the EORM profile of Credit Suisse ?
IITR people, Please share Squarepoint Capital Questions? Updated
Someone please add Flipkart Questions!!! IITD? +1+1+1
Can you tell about the Morgan Stanley written pattern? In my college it will be for 3 hours.
What is the compensation offered by Microsoft in any campus this year?
Have FICO visited any college yet?
Does Flow Traders look at the CGPA? ---->>> Nope.
Anybody had a technical interview after HR round ?
Where can I find the last years DOCs?
Have Saavn visited any college yet??Plz upload question IIT Roorkee question already uploaded.
Please update fquestions
Please update Finmechanics IITD
Have Lenskart visited any IIT??
Platform : amcat
5 sections
14 LR questions in 14 minutes
22 Verbal questions in 14 minutes
12 Machine data questions in 18 minutes
12 basic statistics questions in 15 minutes
12 python questions in 15 minutes
25 MCQ, 2 coding questions on hackerearth
Platform :Cocubes
Note: No constraints mentioned in problems.
3 Coding questions in 70 minutes
Platform - Cocubes
Set-1
Note: Paytm has been asking questions mostly from its archives - https://www.geeksforgeeks.org/tag/paytm/
I got to know this just before the test, from one of my friend. But questions for me were easy. (^ Might be helpful for others.)
Same questions as mentioned above
Please update second question
2. Number of distinct substrings of a string (Use suffix array).
Same as in IIT
The second question on finding all the distinct substrings of a string passed only 5 test cases using Map, 6 with Trie, and all using only suffix array.(For passing all the test cases, take the substrings lengthwise and clear the map on inc the length of substring.)
2.
**Upper_Bound STL passed 9/11 test cases.sale
**Apply two pointer to pass all test case.
4 coding questions (90 mins) - Hackerrank
Don’t remember other 2 questions. But they were very easy.
Can someone update other two questions ?
Most of the questions were based on distributions, very few of type find the output of a pseudo code.
All questions were to be answered within given time.
Few Questions to get an idea of questions asked :
1st Jul 2017 ---> 2017-07-01
2nd Jul 2017 ---> 2017-07-02
How this problem can be done using union ? can You please provide the code .
I guess have a modeified disjoint set union where basically where ur greatgreatSupergrandad dad would have the parameters as total candies and max1 and max2 in that component whenever u do union i Guess it helps.
IITR, IITM, IIT-Dhanbad
3 ques, 90 min, hackerrank/
(Approach: If we can find whether a given number in the array is prime or not, the question is done. No problems after that. So, the aim is to find all the prime numbers lying b/w the range minelem and maxelem(minelem and maxelem are the minimum and maximum elements of the array.) Find all the prime numbers till 10^6 using normal sieve. After that, in another array( call it primeNos), store the number starting from minelem till maxelem such that primeNos[1]=minelem, primeNos[2]=minelem+1, …...primeNos[maxelem-minelem+1]=maxelem. Now, run a loop on the previously found prime numbers and start cancelling the multiples of those prime numbers in primeNos array by marking them 0. All which will be left after processing all will be your primeNos. Make sure that you start cancelling multiple from somewhere near minelem and not from the very start, i.e near 0. For more information, check out question named Prime Generator on SPOJ.)
Q.No. 3 -> https://imgur.com/a/8UwCXPU
(Solution please??) Solution please??++
Please Upload sample test cases 1 and 2 as well if available
For Q-2 Can we define seive function upto 10^9?or time limit will show? You have to use segmented sieve to pass all tests
(Better use Queue and store pair (vertices) of pairs(count steps) and do do BFS)
Can you please explain how it can be done using union-find?
please update(Python available??)
7 Syntax/Logical error correction coding questions in 20 minutes
+
10 aptitude questions in 20 minutes
+
3 coding questions in 40 minutes
<First two questions were similar to https://leetcode.com/problems/friend-circles/.
>
{The constraints were pretty small, brute force solution worked like a charm!}
{If someone has screenshot or if someone can write the full questions, please do so!}
Platform : Amcat
20 minutes - 10 aptitude (timetaking)
20 minutes - Syntax correction - 7 questions (easy)
60 mins - 3 coding questions
The number of trees on earth?
Pages in oxford dictionary?
15!?
No of cycles in amsterdam?
No of hair on human head?
4 sections:
CODING ROUND-(STL,Python were allowed)
Input: N=9
Output: C (A=7 B=1 C=1)
CTC: 21LPA
2 coding questions on Hackerrank. Time: 65 min
1.Stock buy and sell with two given conditions:
-> Sell only after buying the stock(array keys can be considered timestamps)
-> Sell beforehand and buy it later (just find maxima and minima)
It was required to return (4) iterators(days) on which you buy and sell in both conditions to maximise profit.
The same question has been mentioned somewhere in 17-18` doc section)
Can someone elaborate on this question?+2
2. Given an array and a window of size m. Pick the maximum element out of starting or last m elements if sizeof(arr)>m,
else find maximum out of sizeof(arr) elements.The no of elements to be picked was given.
In case of two same valued maximas, return one with lower position in the array.
(Use priority queue) https://ide.geeksforgeeks.org/r4w1QC6W7z
I guess using 2 priority queues would be useful,one for starting m elements and the other for last m elements.
Everyone came across same questions. I wanted some more time to solve both =(
65 mins 2 programming questions, hackerrank platform
Any one plzz suggest solution for ques 1
O R O
P P O
E O O
This 3x3 matrix requires 5 steps- (0,1)->(0,2)->(1,2)->(2,2)->(2,1)->(2,0). Note- array need not be square.
This is not the exact language, but these were the essence of both the questions.
Platform: cocubes
a
Quant:
35 mins
18 MCQs : Puzzles, Probability(expected values, dice, card questions) etc
5 MCQs: JEE Math
7 MCQs: Coding (recursions, time complexity, tree etc)
Coding: (Different Sets)
2 Questions 40mins
3. Sum of all the numbers that are formed from root to leaf paths
https://www.geeksforgeeks.org/sum-numbers-formed-root-leaf-paths/
4. AGGRCOW: solution https://www.geeksforgeeks.org/place-k-elements-such-that-minimum-distance-is-maximized/
MCQ s same as IIT KGP --- Quant and probability was tough and really time consuming.
Coding (2 questions)
1.https://www.geeksforgeeks.org/place-k-elements-such-that-minimum-distance-is-maximized/
2. https://www.geeksforgeeks.org/kth-largest-element-in-bst-when-modification-to-bst-is-not-allowed/
3. https://www.geeksforgeeks.org/find-possible-words-phone-digits/
4. https://www.geeksforgeeks.org/sum-numbers-formed-root-leaf-paths/
5. https://www.geeksforgeeks.org/sum-leaf-nodes-minimum-level/
Quant Type same.(Prepare Expectation Value..)
Some questions..
Coding-
1.Given a linked list get the deepest node which is the left child of some node and has the max value.
2. Convert all the leaf nodes in a Tree in the form of a linked list starting from rightmost to leftmost.(Just simple recursion).
Platform: cocubes
Quant:
30 mins
18 MCQs : Puzzles, Probability(expected values, dice, card questions) etc
5 MCQs: JEE Math
7 MCQs: Coding (recursions, time complexity, tree etc)
Coding: Everyone had different pair of coding questions
2 Questions 40mins
3. Given a binary search tree, find all subtrees such that all elements of the subtree are in the given range (l, h)
4. Given a binary tree, find the number of subtrees that are BST’s
5. Given a binary tree
1
/ \
2 3
/ \
4 5
For the above tree find the sum of numbers formed (here possible numbers are 124 + 125 + 13 = 262)
6. https://www.geeksforgeeks.org/place-k-elements-such-that-minimum-distance-is-maximized/
Another Set :-
90 min. (3 coding+10MCQ); test was on hackerrank platform.Climb the hill`
Q.No. 1 -> https://www.evernote.com/l/AVH55Vp41glDq4DUhgGDUA5FRBURfYXLsGU/
Solution to Climb the Hill: https://www.geeksforgeeks.org/minimum-incrementdecrement-to-make-array-non-increasing/
Q.No. 2 -> https://www.evernote.com/l/AVGkas-I-L9KCo7GmbZljaQKaq63Gxgf5rM/
Q.No. 3 -> https://www.evernote.com/l/AVEt83J4bORB66Odbv0-OnOP43qrV_XQ8BI/
(https://www.geeksforgeeks.org/count-ways-express-number-sum-consecutive-numbers/)
Duration : 1.5 hrs Platform- Hackerrank
Coding Section:
Similar problem: https://www.interviewbit.com/problems/sliding-window-maximum
3. Similar to: https://www.geeksforgeeks.org/making-elements-distinct-sorted-array-minimum-increments/
Objective question:
10 objective questions related to Binary tree, N-ary tree, Sql, Probability, Time-complexity
1.5 hrs; 3 coding + 8 Technical MCQs
1st Coding question was same as IITG 2nd Problem.
Link to other coding questions: https://postimg.cc/gallery/270u1w6mc/
1.5 hrs; 3 coding + 8 Technical MCQs
1st Coding question = Q.No. 1 -> https://www.evernote.com/l/AVH55Vp41glDq4DUhgGDUA5FRBURfYXLsGU/
Solution to Climb the Hill: https://www.geeksforgeeks.org/minimum-incrementdecrement-to-make-array-non-increasing/
Link to other two coding questions: https://postimg.cc/gallery/270u1w6mc/
CTC: 11.2 lac In-Hand
(12-10-2018)
CGPA Cutoff- 6.7 (shortlisted about 300 students)
Test on cocubes; 45 minutes- 40 questions
20 Quant, 10 LR/DI, 10 Verbal
LR/DI was a bit trickier than the rest
Verbal was easy could be done in 7 minutes while quant and LR/DI were time consuming so overall paper was lengthy according to time. Paper was quite tough if compared with Pariksha papers/practice.
1. Test Sections
45 min 40 question
Marking Scheme :- +1, -.25
Test is conducted on , one can find some mock papers of cocube available online
Questions division :- 20 quant, 10 LR, 10 English
2. Test Experience
Difficulty level: Avg and above for quant. English and LR were relatively simple
In quant, revise ratio and mixtures properly
Also questions on the sum of factors, no. of the factor of given no. (see formula)
Position: Consultant 11.2Lakh
45 mins 40 questions on cocubes
10-verbal
10-reasoning
20-quant+DI
Quant is the most time consuming section, topics were similar to standard aptitude topics like cistern-pipe, work-time, probability.., functions
80k USD for New York and 21LPA in India
Any information on option for pittsburg hiring
Date - 24th September,2018
Profile - Software Engineer
5 coding questions/ 2 Hour test on hackerrank(different sets for everyone)
New set:
New Set:
New set:
Date - 1st October,2018
Multiple sets. Listing them sequentially -
New set:
New set:
New set:
New set:
New Set:
Questions were same as IIT Bhu and IIT K in different sets
5 ques., 2 hrs, hackerrank
Set1: 1. https://imgur.com/a/r614S79
2. (Hard) Given a matrix and (x,y). Matrix consists of 0,1,2. 0 means non-blocking, 1 means blocked, 2 means gold. Find minimum steps to travel from (0,0) to (x,y) collecting all gold coins. Can move in East-><-West, North-><-South.
3.
Set2: 1. Generate all subsequences of a string and return in lexicographic order
2. Prefix to postfix (same as above)
3. Beautiful subarray https://www.geeksforgeeks.org/number-subarrays-m-odd-numbers/
4. Nuclear rod (same as above)
5. Travel from (0,0) to (x,y). Grid has 0, 1, 2. 0- you can pass, 1- blocked, 2 - gold. Shortest path. (same as above)
Date 27th Oct 2018
New Set:
1- https://github.com/josergc/min-max-product: C++ proposed solution
2-Given a graph, find the minimum of all friend factor of each trio. (trio is a triangle of edges)
What is friend factor : for each trio (3 nodes that are all connected to each other), the friendship factor is defined as the sum of number of nodes that each of the three are connected to, other than each other.
3- https://www.hackerrank.com/contests/hack-it-to-win-it-paypal/challenges/q4-traveling-is-fun/problem
4-Fused nuclear rods https://www.careercup.com/question?id=5721734273564672 (Done using Disjoint Sets Problem similar to Friend Circle Problem - Approach used- Counting of Size of each Component in graph)
5- Beautiful subarray https://www.geeksforgeeks.org/number-subarrays-m-odd-numbers/
Hosting on cocubes platform: STLs allowed
Date - 6th July 2018
Profile - Software Engineer
3 questions/ 1.5 Hour test on cocubes
When is the Microsoft test in IITs? Any test before 10th October? Please post the questions immediately. :) +1
Eligibility: B.Tech. CSE, EE, ECE, MSM
IDD CSE, EE, ECE
M.Tech. CSE, EE, ECE (IITR) No CGPA cutoff to apply
(There was one more set I will ask my friends to add those & cocube interface was too poor we couldn’t debug the codes)
Date - 10th Oct 2018
IDC profile: 3 questions/ 1 Hour 15 minutes test on cocubes
Languages: C, C++, JAVA, C#
Different sets
Date - 10/10/2018
Ex: [1, 23, 4, 3, 8, 9] and k = 2. So number formed are 123, 43, 89. Now after sorting, it will be 43, 89, 123. Return the array as [4,3,8,9,1,23]. n will always be multiple of k Can someone provide solution for this?+4 https://codeshare.io/2jDxRR
Sample Input - 3 2 20_21 # 1 # 2_#11 4 @11
Sample Output - CBT U12 11D@H
Question is not clear...can someone please explain in little more detail..
Please take care of char pointer it waste so much time , cause me one ques (microsoft) (seriously, don’t overlook this.)
Exactly same set of questions as above, no problem other than the ones mentioned by the other IITs above.
Most questions same as above
h | p | m | o | l | l |
e | l | l | k | h | e |
Repeat from above questions
(Many questions need to be solved without using extra memory take care of that in test)
https://ideone.com/laser0/microsoft_2018
Date - 6th July 2018
1 Position - Analyst
1 hour test @hackerrank
1 coding question(20 min)
count all possible quadrilateral by joining different sides of a quadrilateral. count all possible quadrilateral by joining different sides of a quadrilateral (is it by joining different sides of a quadrilateral or different sides of a regular polygon?)
4 Q’s on Computer science basics(20 min)
AVL tree, Probability & Stat and addition of two hexadecimal number.
4Q’s on Analytical comprehension(20 min)
Coding:
Quant:
Nov 2, 2018
MCQ Questions
2. A tree was given in the question (containing around 30 nodes) and the location (node no.) of police and the thief was given, the thief will try to avoid the police till the time he can, both police and the thief will select the optimal node always.
Find the time when the thief will get caught. At each section the thief can either jump to the next node or stay at its position.
Approach?
3. We have 128 students, we need to organize minimum number of matches to find the second best student.. The ordering follows transitivity i.e if a beats b, b beats c then a can beat c.
5. Find the expected number of inversion, for all permutations of elements of the array.
The answer was n(n-1)/4.The options were nc2,nc2/2,nc2/4,2*nc2
Passage on Lambda calculus
Given Lambda Calculus Formulae for True, false, and the definition of a Function, its parameters, arguments etc
6. What will be the lambda calculus formula for and operation?
7. What will be the lambda calculus formula for if x then y ?
Passage on Hamiltonian cycle
8. Questions were based on properties of Hamiltonian Cycle with >=10 vertices.To find the true statement among 4 options. A graph having >= 10 vertices and each vertices having even degree was given.
The options were( others could check and correct)
a.Whether a bipartite graph can be formed from the above graph.
b.Whether a cycle with n edges exists
c. Hamiltonian cycle exists.
d. Don’t remember !!!
e. None of these
9. Sufficient condition to have hamiltonian cycle.
Quant Section:
1.Find the 100th element of the series 1,3,4,9,10,12,13,27,28…
The option correct was 981.
2. Find the f(19)=94, and for each x, f(x)+f(x-1)=x^2. Find f(94)%100.Ans 61 how?
3.Weather Question, Probability of sunny is 0.4, rainy is 0.4, and cloudy is 0.2. Given 10 days, find the expected number of contiguous blocks of weather. SSSSRRCCCC is 3 blocks. Explanation?
4.We have a line segment of length 2, given a uniform distribution of choosing a point on the line, find the probability of the rectangle formed by 2 partitions formed by choosing a point having an area less than 0.5(so if x is chosen on the line segment, the l and b are x and 2-x, and area is x(2-x) solution?
5.Which of these are not affected by outliers - mean mode median and one other option.
The Options were 1 and 2, 2 and 4 etc etc Median is least affected.
6.If model has low bias and high variance which of the the following options are used to remedy it.
Regularization,Increasing the number of samples, decreasing the number of features,and increasing number of features
7.
8.2 stock questions which were really of probability and normal, and Geometric distribution, and correlation. Seemed Difficult af.
9.Given a circle, and a dart is thrown on the circle, find the probability of dart being closer to centre.
1/4
10.Find the probability if there is a square instead of circle. Integration using Parabola is required.
https://web.calpoly.edu/~sherman1/puzzleoftheday/potw_019soln.pdf
20 questions, 2 hours
2 Sections 2Hrs.
Computer Science ( 1 coding question + 8 MCQs)
Quant (10 MCQs)
Coding Qutestion: https://postimg.cc/gallery/dslda03o/
Alert: ML questions were there!
x
https://math.stackexchange.com/questions/990418/maximum-value-of-sin-a-sin-b-sin-c/990423#990423
(answer is 3sqrt(3)/2)
https://ide.geeksforgeeks.org/l8wRDc3gJ8
(Quicksort moves element 50 out temporarily in one of the steps considering array {53, 91, 50, 40, 90, 80, 35} )
Ans of 14 question (ML Classifier)?
2 Sections (Coding and Quant)
Coding Section - 1 Coding Question(20 marks), 4 MCQs(10 each), 2 comprehensions each consisting of 2 MCQs(10 marks each MCQ)
Quant - 6 MCQs (10 each), 2 comprehensions, 2 MCQs in each (10 marks each MCQ)
Total time 2 hrs. (you can attempt any question at any time, there is no separate time for any section)
Coding -
1) Given an array of whole numbers, you can remove subset of elements from that array, till all elements are removed.
The elements of any subset should satisfy the condition 2^b1 + 2^b2 + …. + 2^bn = 2^x for some integer x (b1, b2, ….., bn are elements of one subset). What is the minimum number of subsets that need to be removed
Eg. array = 1, 1, 2, 3, 3
Ans. 2
2^1 + 2^1 + 2^2 = 2^3
2^3 + 2^3 = 2^4
Therefore, two subsets need to be removed
n<=10^6
0<=a[i]<=10^6
Ans.If two elements are same, merge them into one and add one to it, keep on doing it till all elements of array are distinct, size of that array will be your ans
Eg. 1, 1, 2, 3, 3
Can be converted to 2, 2, 3, 3
3, 3, 3
4, 3
Ques 2) A graph and a node was given, we need to find the depth of it(distance of farthest node from it)(MCQ)
Q3) 128 players play in a tournament, there strengths are ordered eg. if x beats y and y beats z then x will beat z, what is the number of matches required to find out the second best player
Ans 133
Q4) Expected number of inversions in a permutations of N numbers (i < j) and A[i] > A[j]
Ans. N(N-1)/4
Q5)
Q6)
Q7 and Q8 were a comprehension on lambda calculus
Q9 and Q10 were on hamiltonian cycle
Quant
Q1)
Find out the 100th term in the series 1, 3 , 4, 9, 10, 12, 13, 27, 28 ….
Ans. 981
Ith term is convert i to binary then read that binary notation in base 3
Eg. for i = 5
I in base 2 is 101, converting it to decimal using base 3 is 3*3 + 1 = 10
There is one other visualization of it, the even terms of series are a series of 3*(terms of series) 3*1, 3*3, 3*4, 3*9 …. And odd term is even term+1
Q2)
f(x) + f(x-1) = x^2
f(19) = 94
f(94)%100 = ?
Ans. 61
Q3)
On any day, P(rain) = 0.2, P(sunny) = 0.4, P(some other type of weather) = 0.4, a block is defined as continuous days with same type of weather, expected number of weather blocks in 10 days = ?
Ans. 169/25 (Linearity of Expectation)
Q4)
On a stick [0, 2], a point is randomly chosen and stick is broken there. A rectangle is made by using the two parts of sticks as side length. What is the approx. probability that Area of rectangle < 1/2
Ans 0.3 was nearest among the options
Not verified
Q5) Which among the following are unaffected by outliers
1) mean
2)median
3) …..Can’t remember
4) Inter- Quartile range
Ans. 2 and 4 (options were consisting of multiple combinations of 1, 2, 3, 4)
Q6) Something on how to improve model with low bias and high variance
Q7) and Q8) Comprehension on correlation of market with stock
Q9) Probability that randomly chosen point inside a circle is near to center than side
Ans. ¼ (Way too trivial)
Q10) Probability that randomly chosen point inside a square is near to center than side = (a*b^0.5 - c)/d, Find out a+b+c+d
Ans. 14
Regions where point is nearer to center can be expressed as parabolas (by definition of it) , integrate one parabola and multiply by 4
2 Sections (Coding and Quant)
Coding Section - 1 Coding Question(20 marks), 4 MCQs(10 each), 2 comprehensions each consisting of 2 MCQs(10 marks each MCQ)
Quant - 6 MCQs (10 each), 2 comprehensions, 2 MCQs in each (10 marks each MCQ)
Total time 2 hrs. (you can attempt any question at any time, there is no separate time for any section)
Questions of Quant Section
Q1) For a ordered pair(a,b) ax + by = 1 and x^2 + y^2 = 50 has atleast one solution. Find total number of integer pairs of (x,y) Ans: 72
Q2) find the minimum value of the function in [0,pi/2]:
Ans: 12
Q3) Train accuracy is 40% and test accuracy is 30% for a classifer. Which of the following can be done?
I. Increase the data
II Increase the features
||| Decrease the number of features
Ans - II only
Q4) For a triangle , find the minimum value of sinA + sinB + sinC
Q5) Find the min value of
Ans: 1
Q6) f1(k) = square of the sum of the digits of k. And for n > 1, fn(k) = f1(fn-1(k)). Find the value of f1998(11).
Ans: 169
Q7 X and Y are two random variables with uniform distribution (0,1). Find probability of x*y < 0.5.
Ans - 0.85
What is the answer of 14 (ML Classifier)?
I think its 2 only (Increase the features).
What did you mark?
Both (increase features and data sample)
(CPI Cutoff?) (Branches Allowed ?)
Date - 6th July 2018
Position -
1.5 hour@ HirePro (+3, -1)
CGPA: 6.5 & above
20 Q’s/30 min Aptitude, DI and LR
20 Q’s/30 min C
C pointers (Around 5 questions), , operator precedence (Around 5 questions), switch cases etc
20 Q’s/30 min CSE Topics
OS, Architecture, digital logic, semaphores, Algo,
Date - 6th oct 2018
1.5 hour@ HirePro (+1, -0.25)(yes negative marking was there )
Same as IIITD
After 2 section, we have choice of selecting one section from ML, CS, Communications, Hardware
ML part
Simple questions on linear regression, Neural network(time and space complexity), loss function, some OS questions, LRU page fault count.
(CPI Cutoff?) (Branches Allowed ?)
Date - 6th July 2018
Position -
1.5 hours Coding + 1 Hour aptitude(NO Negative Marks) @ Hackerrank
Q1. Sort the characters of a string and print the string
Q2. find the lexicographically smallest string after rotating a string (What is required time complexity??)
Q3. In a directed graph find all pair of node which can be traversed
Q2 kadane algo take the substring of temporary string of size same as original string starting from second character (or index 1). What is the question?
Step 4 : Increase the count.https://www.geeksforgeeks.org/adobe-interview-experience-set-55-campus-full-time-mts-profile/
Q3 substring search
s1:
aab s2:a*b o/p 2(ab, aab)
* can be anything null also
Could someone please explain the question and its solution
https://www.geeksforgeeks.org/adobe-interview-experience-set-55-campus-full-time-mts-profile/
Coding round questions from above experience(link) were exactly same at IIITA
PLZ SHARE SOLUTION??
Requested Clarifications: When was the test? Only one coding problem? Aptitude test? -> This question has been asked in internship because for placements adobe is yet to come at kgp.
A square grid(matrix - n x n) is given, with values 0, 1 or -1 in each cell. 0 means there is a path via that square. 1 means there is a diamond in it(and obviously a path via it). -1 means no path, i.e. obstacle. Starting from (0,0) u need to go to (n-1,n-1) and return back again. When going from (0,0) to (n-1,n-1) you can take only right or down and during returning u can only take left or up. The question is to find maximum number of diamonds that can be collected in a round trip.If no path exists return 0(since u collected no diamond) g4g Topcoder
06/10/18
# of Coding Questions: 3
Time : 90min
Platform: Hackerrank
Ex: given array = 11223
Output: 3
Exp: Remove 11 and then 22. Only 3 is left in the array.
Given array = 21123
output : 3
Exp: remove 11, then array will be 223, now remove 22.
Given array = 21132
Output: 232
Exp: remove 11, then array will be 232. Can’t remove further.
Solution: can use linked list and after deletion go back to head or previous node (keep a pointer for that). I got full points using this.
Output for the following? 2121: 2121 , 112213: Is it 13 or just 3?
Can We use Stack instead of LL? yes
Q2.0.
Input 1: babababa
Output 1: ababa
Input 2: babababab
Output 2: babab
Solution: take an unordered map(string, int) and put all substring of length 5 in it, sort it , now traverse the map, the first maximum count(frequency) value will correspond to largest frequent substring of length 5. This solution pass all cases, except the one, which was giving timeout. Replace unordered_map with array of length 26^5 to get AC for all cases. How does taking array help? Can anybody please elaborate?
Q3.https://www.hackerrank.com/challenges/challenging-palindromes/problem
Ex: given: 3
ban
3
ana
Output: 5 (because of anana)
Exp: palindromic string S will be an + ana = anana.
Solution: concat s1 , s2 lets say s3 = s1+s2, apply LCS on reverse of(s3)(row) and s3(column) , bottom rightmost value, will be the answer. I did it that way and got full points for that
How this can give the answer? Here subsequences from s1 or s2 may come up in sol but that is not allowed ryt? So what's the problem, that's what is asked. The whole batch used this approach and able to get full marks.!!
In the link that has been mentioned, we have to pick substrings from s1 and s2 and not subsequences. The solution that has been given above is for the latter case.
Q1. https://www.geeksforgeeks.org/queries-counts-array-elements-values-given-range/
Q2. https://www.geeksforgeeks.org/minimum-sum-absolute-difference-pairs-two-arrays/
Q3. Traverse all node of polygon using diagonals only, initially few diagonals are given, condition of drawing new diagonal is it should intersect any previous diagonal, return no of ways.
Eg in hexagon, {1,4,2} is given, o/p 1. How{2,6,3,5,1}.
Tried to brute force, 7 passed out of 10 hidden, rest TLE.
Can there be a greedy solution to Coconuts Easy problem?
Bidgely → test done?
Date - 17th September 2018
Role : Software Engineer
Open for : Btech, Dual, Mtech, MS in CSE and EE
Exam Pattern :
1 hour MCQ type exam, based on HackerRank, 50 questions.
Questions covered areas like aptitude (time and work, logical reasoning), probability, OS(scheduling, concepts of paging), questions from Electrical Engineering (3-4), Computer Networks (Most were from subnet masks and host / IP addresses), permutations and combinations, finding output, questions about linked lists (3-4 basic ones).
Date - 24th Sept 2018
Exam Pattern : Same as IITM
Questions covered areas same as above including Digital Logic design , Counters(Ripple counters , input and output frequency relation in counters ), from Programming MCQs few problems are from bitwise operators (Like : “int a = 2 ; int b = 3 ; a ^= b ^= a =^b ; “ what will be the change in values?) ,structures.
3 ants in a triangle. Probability that 2 or 3 of the ants collide ?
Postorder from preorder traversal.
Basic Networking Questions like where does routing takes place ?
Write code in C/C++/Java to solve a given problem. Code should compile, run and pass all given test cases.
· Emphasis on working code with efficient Programming Logic, Algorithms, Data structures, Samsung
· NOT dependent on any Platform/API
Duration | 3 hours |
| ||
Allowed Languages | C, C++, Java | · Candidates proficient in C# or other language can also take the test, by choosing one of C / C++ / Java to write the code as the focus is on Algorithms & Data Structures. (Some language-specific learning/refreshing and practice may be required ) | ||
Number of Questions | One | · The question details the problem, gives constraints, test inputs, and sample outputs | ||
Allowed Functions, Libraries | Basic memory mgmt, input, output | Language | Memory | Input, Output |
C | malloc, free | scanf, printf | ||
C++ | new, delete, malloc, free | cin, cout, scanf, printf | ||
Java | New (memory freeing is automatic by garbage collector) | java.util.Scanner, System.out.print, println | ||
· Other functions, libraries not allowed · Test taker needs to write any required utility functions | ||||
Allowed IDEs | · VS (C/C++) · Eclipse (Java) | · To be pre-installed on the Test PC/Laptop | ||
Criteria for Passing Test | Pass all test-cases | · “Sample test-cases” are given to test locally · Developed program has to: · Pass all “Evaluation test cases” on server (not shared with test-taker) and generate the output in specified format · Meet efficiency criteria given in question (max limit on execution time, heap memory, and stack) |
Refresh/Learn data structures & algorithms
i) e.g., Array, Grid, List, Tree, Graph, Map, String, Search, Sort, Permutations, Combinations, Probability, Traversal, Path finding, Optimization, Dynamic Programming etc.
ii) Some popular external websites for study/practice: geeksforgeeks, hackerrank, codeforces, topcoder, codechef, spoj, project-euler etc.
They have very frustrating software which need to be installed on the day of exam(compatible only with WINDOWS).
In that software, you may face a lot of login issues. Make sure once you login,you stay in it. If you come out, after logging in, that same password doesn’t works. (coordinator may give common password to all then)
Note:
Can we use vector , stack , queue etc from #include<vector>, #include<stack> etc ? In test these worked. ??? (Nope you can’t use any of the above asked libraries ) what does it mean ??? Was string class allowed in cpp ?(nope you can’t use string , only the functions mentioned in above table are allowed ) was sort() function allowed? (you will have to implement sort function if required sort() not allowed )
Role: software engineer and software engineer research
Test was of 3 hour. Only 5 submission allowed(compile as many times you want). 10 test cases to be passed
Date: 24/09/2018. Question was same as that of previous year.
gscs.samsung.com/download/gscs103.zip]
Cycle in directed graph number of vertex(n), number of edge(m). Then in next line m pairs of numbers representing edges of directed graph. Find if there is some cycle. If yes, print cycle in ascending order of vertex numbers involved in the cycle else print 0 (if there are multiple cycles print any one)
Total no. of test cases: 10 None of them had the “No Cycle” graph.Samsung
Role: Software Engineer and Software Engineer Research
Date: 28/09/2018
2-coloring in Undirected graph Given an undirected graph, if the graph can be coloured in two colors such that no two adjacent vertices are of same color then print the vertices which belong to the same color (you can print vertices with color 0/1), otherwise print -1.
Input : First line gives number of vertices(V) and edges(E) (e.g. 7 10)
Next line contains E pairs representing edges.
Role: software engineer and software engineer research
Date: 09th Oct 2018
Test was of 3 hour. Only 10 submission allowed(compile as many times you want). 50 test cases to be passed
Question: Constraints: N <= 50; M <= 50
Inefficient Solution (passes all test cases): Consider jump of length = 1 to N-1 and for each case check if Destination is
reachable. For first jump_length we reach destination return that.
Start at bottom {
For jump_length in 1 to N-1 {
For all continuous 1’s in that row{e
For (current row - max_length) to (current row + max_length) {
Visit node if not visited;
Another method using backtracking. C++ CODE
Mr. Kim has to deliver refrigerators to N customers. From the office, he is going to visit all the customers and then return to his home. Each location of the office, his home, and the customers is given in the form of integer coordinates (x,y) (0≤x≤100, 0≤y≤100) . The distance between two arbitrary locations (x1, y1) and (x2, y2) is computed by |x1-x2| + |y1-y2|, where |x| denotes the absolute value of x; for instance, |3|=|-3|=3. The locations of the office, his home, and the customers are all distinct. You should plan an optimal way to visit all the N customers and return to his home among all the possibilities.
You are given the locations of the office, Mr. Kim’s home, and the customers; the number of the customers is in the range of 5 to 10. Write a program that, starting at the office, finds a (the) shortest path visiting all the customers and returning to his home. Your program only have to report the distance of a (the) shortest path.
Constraints
5≤N≤10. Each location (x,y) is in a bounded grid, 0≤x≤100, 0≤y≤100, and x, y are integers.
Input:
You are given 10 test cases. Each test case consists of two lines; the first line has N, the number of the customers, and the following line enumerates the locations of the office, Mr. Kim’s home, and the customers in sequence. Each location consists of the coordinates (x,y), which is represented by ‘x y’.
Output:
Output the 10 answers in 10 lines. Each line outputs the distance of a (the) shortest path. Each line looks like ‘#x answer’ where x is the index of a test case. ‘#x’ and ‘answer’ are separated by a space.
I/O Example :::: Input (20 lines in total. In the first test case, the locations of the office and the home are (0, 0) and (100, 100) respectively, and the locations of the customers are (70, 40), (30, 10), (10, 5), (90, 70), (50, 20).)
5 Starting test case #1
0 0 100 100 70 40 30 10 10 5 90 70 50 20
6 Starting test case #2
88 81 85 80 19 22 31 15 27 29 30 10 20 26 5 14
10 Starting test case #3
39 9 97 61 35 93 62 64 96 39 36 36 9 59 59 96 61 7 64 43 43 58 1 36
Output (10 lines in total)
#1 200
#2 304
#3 366
Date : 28 Oct’ 2018
Role : Software Engineer (Research and Developer) .
Same Question for both.
Test was of 3 hour. Only 10 submission allowed (compile as many times you want). 50 test cases to be passed
Question Link : There is dedicated Samsung software for coding test the question is given below:
Now to go from (x1,y1) to (x2,y2) is abs(x1-x2)+abs(y1-y2).
(solution is also in comments in the post link) .
Constraints : 0<=N<=5
All the best!
Signal Amplifier : (see IITK )
We are given a function f = a*n + b*n*logn + c*n^3 . The function is monotonic, we will be given a, b,c as input and a variable k ( value of function at some value of n). We need to find the value of n such that f(n)=k.
0 <= a,b,c <=10^6
0 <= k <= 10^63 - 1
AirplaneGame Question
Time Limit: 3hrs
Number of Submissions: 10
Solution with problem statement: energyDifference
Initially you have H amount of energy and D distance to travel, you are given two arrays of size 5, each indicating the amount of energy you can utilise and the time it will take to cover the next distance with that energy. For eg.
h(array of energy) = { 4 , 5 , 7 , 12, 2 }
t(corresponding array of time) = {5min20sec, 3min20sec, 2min30sec, 1min0sec, 15min20sec}
You start at 1 and you need to take one of the five energies to move to 2 and so on until you reach D. The task is to find the d minimum time required for given H,D,h and t.
Question reworded: Initially you have H(<4000) amount of energy and D(<1000 km) distance to travel. You may travel with any of the given 5 speeds. But you may only travel in units of 1 km. For each km distance travelled, you will spend corresponding amount of energy. E.g. the k;given speed are :
Cost of travelling 1 km: | 4 | 5 | 2 | 3 | 6 |
Time taken to travel 1 km: | 200s | 210s | 230s | 235s | 215s |
The task is to find minimum time required to cover total D km with remaining H >= 0.
Mr. Kim has to deliver refrigerators to N customers. From the office, he is going to visit all the customers and then return to his home. Each location of the office, his home, and the customers is given in the form of integer coordinates (x,y) (0≤x≤100, 0≤y≤100) . The distance between two arbitrary locations (x1, y1) and (x2, y2) is computed by |x1-x2| + |y1-y2|, where |x| denotes the absolute value of x; for instance, |3|=|-3|=3. The locations of the office, his home, and the customers are all distinct. You should plan an optimal way to visit all the N customers and return to his among all the possibilities.
You are given the locations of the office, Mr. Kim’s home, and the customers; the number of the customers is in the range of 5 to 10. Write a program that, starting at the office, finds a (the) shortest path visiting all the customers and returning to his home. Your program only have to report the distance of a (the) shortest path.
Constraints
5≤N≤10. Each location (x,y) is in a bounded grid, 0≤x≤100, 0≤y≤100, and x, y are integers.
Input:
You are given 10 test cases. Each test case consists of two lines; the first line has N, the number of the customers, and the following line enumerates the locations of the office, Mr. Kim’s home, and the customers in sequence. Each location consists of the coordinates (x,y), which is represented by ‘x y’.
Output:
Output the 10 answers in 10 lines. Each line outputs the distance of a (the) shortest path. Each line looks like ‘#x answer’ where x is the index of a test case. ‘#x’ and ‘answer’ are separated by a space.
I/O Example :::: Input (20 lines in total. In the first test case, the locations of the office and the home are (0, 0) and (100, 100) respectively, and the locations of the customers are (70, 40), (30, 10), (10, 5), (90, 70), (50, 20).)
5 Starting test case #1
0 0 100 100 70 40 30 10 10 5 90 70 50 20
6 Starting test case #2
88 81 85 80 19 22 31 15 27 29 30 10 20 26 5 14
10 Starting test case #3
39 9 97 61 35 93 62 64 96 39 36 36 9 59 59 96 61 7 64 43 43 58 1 36
Output (10 lines in total)
#1 200
#2 304
#3 366
There was shortlisting. I don’t know the criteria but 78 applicants were shortlisted. Total 5 submissions were allowed.
2-coloring of undirected graph (Same as Samsung Bangalore IITD)
A Doctor travels from a division to other division where divisions are connected like a graph(directed graph) and the edge weights are the probabilities of the doctor going from that division to other connected division but the doctor stays 10mins at each division now there will be given time and had to find the division in which he will be staying by that time and is determined by finding division which has high probability.
Input is number of test cases followed by the number of nodes, edges, time after which we need to find the division in which he will be there, the edges starting point, end point, probability.
Note: If he reaches a point where there are no further nodes then he leaves the lab after 10 mins and the traveling time is not considered and during that 10 min at 10th min he will be in next division, so be careful
Time Limit: 3 hours
Number of Submissions: 10
Test Cases: 50
There is one spaceship. X and Y co-ordinate of source of spaceship and destination spaceship is given. There are N (0<=N<=5) number of wormholes each wormhole has 5 values. First 2 values are starting co-ordinate of wormhole and after that value no. 3 and 4 represents ending co-ordinate of wormhole and last 5th value is represents cost to pass through this wormhole. Now these wormholes are bi-directional. Now to go from (x1,y1) to (x2,y2) is abs(x1-x2)+abs(y1-y2). The main problem here is to find minimum distance to reach spaceship from source to destination co-ordinate using any number of wormhole. It is ok if you won’t use any wormhole.
Link -> https://www.careercup.com/question?id=5677905146281984 (May be useful!) https://ide.geeksforgeeks.org/pC9w4ETP2x
https://www.geeksforgeeks.org/samsung-delhi-interview-experience-set-38-campus/
Solution for the question given below is slightly different. we can just write 4 if conditions for mentioned 4 conditions in question to get score C++ similar code
Repeat: Signal Amplifier (explained below by IITK)
We are given a function f = an + blogn + cn^3. The function is monotonic, we will be given a, b,c as input and a variable k ( value of function at some value of n). We need to find the value of n such that f(n)=k.
Initially you have H amount of energy and D distance to travel, you are given two arrays of size 5, each indicating the amount of energy you can utilise and the time it will take to cover the next distance with that energy. For eg.
h(array of energy) = { 4 , 5 , 7 , 12, 2 }
t(corresponding array of time) = {5min20sec, 3min20sec, 2min30sec, 1min0sec, 15min20sec}
You start at 1 and you need to take one of the five energies to move to 2 and so on until you reach D. The task is to find the d minimum time required for given H,D,h and t.
Question reworded: Initially you have H(<4000) amount of energy and D(<1000 km) distance to travel. You may travel with any of the given 5 speeds. But you may only travel in units of 1 km. For each km distance travelled, you will spend corresponding amount of energy. E.g. the k;given speed are :
Cost of travelling 1 km: | 4 | 5 | 2 | 3 | 6 |
Time taken to travel 1 km: | 200s | 210s | 230s | 235s | 215s |
The task is to find minimum time required to cover total D km with remaining H >= 0.
Signal Amplifier: You have a matrix of 0 and 1 of order N*M and a parameter K is given. You have to perform the operation of flipping any column of matrix exactly K times. Flipping means changing 0 to 1 and 1 to zero. This operation can be performed any number of times on the same column . Using this operation, maximize number of rows filled with all 1. First line is number of test cases, next line is N, M and K, and then N*M matrix follows.
Total 50 test cases had to be passed and maximum allowed submissions were 10
Constraints:
1 <= N <=100
1 <= M <= 20
1 <= K <= M
Sample Input:
2
5 3 3
1 0 0
0 1 0
1 0 0
0 0 1
0 1 0
3 3 2
0 1 1
1 0 0
1 1 0
Sample Output:
0
1
20L base, 27L CTC
Two profiles opened (cgpa >= 6.5):
Total 1 hr test with 15 questions for Data Science and 3 simple coding questions for Software development (attempt only one section)
Software Developer Profile-Pe
Data Scientist profile- https://imgur.com/Gk7c8rq https://imgur.com/a/YcCZ7nM
15 MCQs (+4,-1)(1 hour), from topics like probability, stats, Apti, and some ML.

Solutions: Seive + DP (Recursive), Seive + DP (Iterative)
solution: https://www.geeksforgeeks.org/count-total-set-bits-in-all-numbers-from-1-to-n/
It was open for M. Tech too
--
(CPI Cutoff?) (Branches Allowed?)
Software Engineer
Date: 25/09/18
2 hours of test, in which you have 50 MCQs(with no negative a), 2 coding questions on Hackerrank Platform
Coding -> 1. Similar problem with explanation A set of number is called golden set, if it has 2 subsets which equal sum. Ex- for 3 .[[1,2],[3]] -> golden set for 3. Given n , find number of golden set possible using first n natural number
Coding -> 2. It was based on some share markets terms. You have n users , with some number of shares, bidding prices, timestamp. Input will be [user_id, no_of_shares,bidding_prices, timestamp]. You have total shares to be distributed among bidders.
For which -
You have to output the number of users which will not get any share.
Suppose input is:
[1,5,5,0]
[2,7,8,1]
[3,7,5,1]
[4,10,3,3]
Totalshare = 18
Explanation: User2 bidding prices is high , so we give it 7 shares as it wants. Left share = 18-7 = 11.Now user 1 and 3 have same bidding prices, so we give 1 to user 1 , then 1 to user 3(because of timestamp order). Keep on doing till 5 iterations, left share 11-10 = 1 and user1 is done
Now with 1 share left we will give it to user3. So the answer is 4, as user4 didn’t get anything
MCQs -> based on Networks(gate level), apti, programming(find output n errors)
Were there MCQs from DBMS or OS ? OS, no DBMS.
MCQs similar to what is described above.
Coding :- similar to this one :- https://www.hackerrank.com/challenges/largest-permutation/problem
b) partition array into two subsets of size n/2 with the minimum difference.
CSE and MnC
date: 25/09/18
CPI: 6.5
Member of Technical Staff
1hr test on interviewbit - Constraints were given
What is the other question asked in Roorkee?
Date: 25/09/2018
KLA Tencor opened several profiles like Software Engineer, Algorithm Engineer, System Engineer and Application Engineer.
Online test was different for each of the profiles. Students were allowed to write for only one profile as all test were conducted at the same time. However they announced during PPT that those who write for application engineer will be considered for system engineer as well.
Profile: Software Engineer
Open for Masters of CS, EE, Math, and Physics
Platform: Hackerrank
# of programming question: 2
# of apti + technical MCQ: 15
Time given: 75 min
P1: Something related to traversing a tree using adjacency matrix. Finding height of the graph (binary graph). The input is given in 2d vector.
P2: given a matrix with 0 and 1, finding the longest path of 1 in the matrix.. Finding height of the graph (binary graph). The input is given in 2d vector.
Apti + Tech questions were of standard quality. Questions were from Computer Networks, DB, Operating System, Permutation, Combination, seating arrangement etc.
Tip: Time is very less for 2 programs and 15 MCQs. Manage your time properly, start with coding. 15-20min is more than enough for MCQs.
Profile: Algorithm Engineer
Open for Masters of CS, EE, and Physics
Platform: Hackerrank
# of programming question: 2
# of apti MCQ: 15
Time given: 60 min
P1: https://www.geeksforgeeks.org/longest-palindromic-substring-set-2/
P2: Find the strings in the list of string which does not have an anagram.
Aptitude questions were of standard quality. Questions were from Probability, Proportion , etc
All running codes https://ideone.com/laser0/kla
Date: 8-oct-2018
Same format as in IITM, and same coding questions(Software Engineer).
Profile: Application Developer Engineer
Platform: Hackerrank
# of programming question: 0
# of apti MCQ: 25
Time given: 60 min
Profile: Algorithm Engineer
Platform: Hackerrank
# of programming question: 2
(Same questions from IITM Algo Engg post)
# of apti MCQ: 11(Time and work, Mixed ratio etc )
Time given: 60 min
Profile: Application Developer Engineer
# of programming question: 0
# of apti MCQ: 25 (10 verbal questions and 15 apti including puzzles like bridge cross, who wins the game first)
Time given: 60 min
(CGPA cutoff ??)
CTC: 18L
Date: 27-sep-2018
Platform: Hackerearth (1 hour)
https://imgur.com/gallery/M0RKXgJ
Good luck guys.
(CGPA cutoff ??)
Date: 7-oct-2018
Platform: Hackerearth (1 hour)
(8+ CGPA) (34 lakhs in India)
I/P - X=4, A=1, B=1
O/P- 3
Explanation 0->1->2->4 #each link is of cost 1.
(Can anyone suggest solution to this one?) I think BFS should do the trick.
(7.5+ CGPA) (CTC- 18 LPA)
Two questions. 1 question for 50 marks and other for 20 marks.
Platform : Hackerearth (1 hour 30 minutes)d
Anyone has any idea what approach to follow ??
For eg : s=”122”, n=3, and k=1
You can partition it like 12,2 or 1,22. So you have to return max possible substring that is 22.
Two questions. 1 question for 50 marks and other for 20 marks.
Platform : Hackerearth (1 hour 30 minutes)
IIT Bombay
Both questions were easy, most of my friends did it :)
11 October 2018
Questions: 2
Time: 1.5 Hrs
What are the constraints for 2nd problem?
27 SEPTEMBER 2018
2 coding questions- 1.5 hr- Hackerrank
e.g.:
Input- 5 (N=Number of points)
1,1 2,2 3,3 4,4 5,5 (xy coordinates of these points)
2 (M=number of restrictions)
1 2 (meaning you cannot traverse 2nd point(2,2) after covering 1st(1,1))
4 3 (meaning you cannot traverse 3rd point(3,3) after covering 4th(4,4))
Output- 10
explanation--- > traverse in the order----- 2,2---> 1,1----> 3,3------>4,4------>5,5
20th Oct
IITK
Platform : Hackerrank, 1hr 30 mins test
Question 3:
Given an n-ary tree with arbitrary number of nodes (but no more than MAX_CHILDS), find the maximum of sum of nodes from root to leaf.
Solution: same logic as binary tree, just expand for n children
Question 2:
Given a routing table at a router, which consists of a IP prefix and next hop information. We have to construct a trie to felicitate a query of an IP address and report the next hop. Example.
--------------------
Routing Table
--------------------
prefix | Next Hop
--------------------
11011 | CCCC
1010 | DDDD
110 | EFEF
0101 | GCGD
Query
110101 -> EFEF
001 -> NO OUTPUT
101000 -> DDDD
Question 1:
Given a client-server environment with multiple clients interacting with the server. Each client is identified by a clientID and each message is identified by msgId and has an attribute msgAge. Sever maintains a separate message queue for each client (with size no more than MAX_CLIENT_MSG_SIZE).
To begin the interaction with the server a client has to register with the server with a window size.
register <clientId> <window>
window specifies the number of msg the client can accept from the server.
A new message can be sent to the client specified by clientId as
newmessage <clientId> <msgId> <msgAge>.
When a message for a clientID is received the server can send the message to the clientID if the window of clientID is not consumed. If the window of clientID is consumed then the server can queue the messages, and must maintain the sorted order according to msgId. If a message with same msgID and diffent msgAge comes to the queue, the msg with greater msgAge must be kept in the queue.
A client can send a query to adjust the window of the client,
adjustWindow <clientId> <window>
CPI Cutoff Or eligible branches?
No Cutoff
Business and data Analyst profile.(22/9/2018)
Questions for Technologist role? For tech role test is not conducted yet. When is the test?
1 hr test on hackerrank. 26 questions. 24 of them were MCQs [stats, probability, aptitude based] (+1,-1), and two were subjective in which you had to write the pseudo code.
2 subjective questions-
What do you mean by intermediate memory?? If someone understands it please answer. You have to do Inplace sorting.
3 sections. First 2 sections consisting of MCQs and subjective type. Lat section of 1 coding question, 2 subjective. Some questions were based on operating systems, networking. Some were implementation specific to python, javascript(Only 3 questions as I remember). Most were based on implementations in C language.
Given cpu of 2GHz, what would be the output of the following code snippet. Marks would be awarded only if the answer is justified.
a=rdtsc();
sleep(1);
b=rdtsc();
printf(“total cycles = %d”, b-a);
Options are.
i) 2*(10^9)
ii) greater than 2*(10^9)
iii) something other
2. OS specific
a. Deadlock problem. Code snippet given. The verbal explanation is as follows.
5 processes.5 resources. Last process P4 acquires R0 and R4. Among rest of processes, each process Pi
acquires R(i) and R(i+1) resource. Is there any possibility of deadlock? How would you resolve it? Write
Pseudo code for resolving the deadlock.
//question :p4 already have r0 and r4 or it wants to acquire
And what about other Pi are they requesting or they already have resources.(please clarify)
b. Simple problem on non-preemptive shortest job first scheduling
3. Database specific
Table of records given. Each record consists of {Name, gender}. Unfortunately genders have been interchanged.
E.g all males have been shown females and vice-versa. Write a sql query to bring the records to normal form i.e c
change all females to males and all males to females.
One more sql query based on “group by” clause and using aggregation.
4. Networking questions
Bandwidth at sender and receiver given. Total data to be sent from sender to receiver given. Round trip time
given. Window size is given. Estimate the time to send the entire data to receiver.
One more question on TCP fragmentation.
One question on what field values change when IP packet traverses from one point to other? (Ans: checksum,
TTL, etc.)
5. Automata question
Find the regular expression for a given finite automata.
6. Compiler question
What are steps in compilation? 4 options.
(Ans: syntax -> semantic -> assembler -> linker -> loader)
7. Coding question
Given a table of tasks, with each task requiring time to execute/perform and profit associated with that task. So,
Given a deadline, find the maximum profit that can be earned by completing tasks within the deadline.
(Ans: simple dynamic prog question. Use 2-D array dp[deadline][last task completed] Or dp[index][ time ] after sorting)
PPT: 14th Oct
15th Oct
https://imgur.com/a/q9I5w7j (Answers marked might not be correct)
X : 70.00% XII : 70.00%
CGPA : 7.00 Course(s) : btechidd
Department(s) : cse eee ece mat
Platform: Hackerearth
Date: 28/9/2018
Time: 1.5 hours
Section A: 30 MCQ covering Networking, DBMS, basics about finance, aptitude, OOPS (JAVA), english
Section B: programming question
Q1-> Given n cities and the profit earned by visiting that city, calculate maximum profit one can earn provided he can move to city 'j' from 'i' iff 'j' > 'i' and profit that he can earn in city 'j' is multiple of profit earned in city 'i'.
Ex-> P[]={1, 2, 3, 4, 9, 8}, output is 15.
Date: 1/10/18
Open for all Btech and Dual, along with CSE and EE MTech and MS
Cutoff CGPA > 6
Ctc 23 , base 14
Is python allowed???+1
Time complexity is really important. If you solve using brute-force, expect no more than one test case to pass. Take long long int instead of int. Hosted on doselect.com
Please update +2
Date 29/10/2018
A
B
C
D
Output - A
C
D
( first day -A B C , Second Day - D A B Third Day- C D A)
Input - 4 1 3
A
B
C
D
Output - C
3 questions, 180 mins
1.Modified LCS of 2 strings where the common string must have even number of a’s and odd number of b’s
(I solved it using dp[x1][y1][f1][f2] where x1,y1 are pos in the 2 strings and f1,f2 is whether we have even a’s or odd b’s respectively) Got 100% correct -300 points.
2. Number of subarrays in an array whose sum is divisible by k .. each element in array is between -1e5 to 1e5
K is 1e9 ,
use prefix sum and all subset[l,r] which satisfy must have the same mod r and mod l (0 is a special case here)
3. Given N Points in 3D space (xi,yi,zi), we can reach a point (x1,y1,z1) from another point (x2,y2,z2), iff x1=x2 OR y1=y2 OR z1=z2. Find the minimum number of points needed in the given space so that we can reach a point from every other point.
It was a connected component problem seemed easy but all test cases didn’t pass
3 questions, 90 mins
{Eligibility=CS,MnC,ECE/EEE,Mech}
CPI cutoff=6.5
Base - 17.86L , CTC - 20.30L Bangalore
(SOFTWARE profile ) 20 minutes aptitude + 45 minutes coding round (on firstnaukri.com)
Only 1 Coding Question -
Given a string, remove isolated vowels from a string, i.e, don’t remove it if there are 2 or more continuous vowels together. Both lower and uppercase to be handled.
25 minutes psychometric test consisting of 53 questions.
Coding question similar to :https://www.geeksforgeeks.org/find-possible-words-phone-digits/
Rest same as IITG
Only C, C++ and Java
Given a 5x5 matrix of integers, print the coordinates of the saddle points. If a number is greater than or equal to all the numbers in that row and is less than or equal to all the numbers in its column then it is considered a saddle point.
3. Psychometric test 54 questions 25 min.
(They generally ask same set of questions)
Python also allowed
Time: 90 min
Alternate Solution : For this question you have to use the MIN HEAP(key will be the cost of the reaching to the point i.e. min_heap<pair<cost,point>>. Now pop the element having minimum cost in the heap and then add the element that can be reached from this point with their respective cost (if they are not visited and cost is less than previous cost -> for this you have to maintain array having current cost of visiting any point ). Do this until you reach X.
DONT DELETE QUESTION PLEASE
(17/10/2018)
3) A array is provided , you have to provide answers of range queries.
There was three type of query (i) calculate the multiplicative sum of given range. (ii) calculate reverse order multiplicative sum in given range. (iii) Updation of an element in the array.
## Multiplicative sum = SUM( k*Arr[i]) where 0 < k < =L-R+1 , where i is from L to R
## reverse Multiplicative sum = SUM( k*Arr[i]) where 0 < k <= L-R+1 , where i is from R to L
Example : 5 3 // array length , no of queries
1 2 3 4 5 //array
1 1 2 //Q1 ( 1*1 + 2*2)
2 1 2 //Q2 (2*1 + 1*2)
3 1 2 // Q3 update position 1 value with 2
Output: 5 4 //5 is the o/p Q1,4 is o/p of Q2, Q3 will update the array as [2 2 3 4 5]
Test was on cocubes platform. 1hr for Verbal, Aptitude and basic quant. 30 mins for technical test.
Technical test was department wise.
For CSE question were mostly on C, synchronization and DBMS.
For EE - Out of 30 questions, at least 10 were from control systems , mostly open loop, closed loop transfer functions. Others were from power systems, 1-2 on BJTs, and 5-6 from signals , unit transfer functions, laplace transform.
For ME- 30 questions, topic asked machine design, manufacturing, Refrigeration, IC Engines, theory of machine, questions were basic but involving formulae. Different people got different sets.
For CHE - 30 questions. Topic asked were Organic Chemistry, Properties of Materials, Polymer Physics, Chemical Process Industries, Chemical Reaction Engineering, Kinetics
For MTH- No technical test
(Please update for hardware profile also!)
-> (Only for software guys) Coding question Merge two sorted arrays very easy
-> Aptitude 15 mins 10 MCQs
-> Technical sections (Hardware or Software - 45 mins 30 MCQs)
-> Software MCQs on OS Networks Comp arch. (Bit Difficult for elec guys)
We needed to select one profile among software or hardware at the start of test!
HARDWARE Profile
-> Aptitude 15 mins 10 MCQs
-> Coding MCQ’s 15 mins 10 questions
-> Technical Hardware section - 45 mins 30 questions
Topics - JK Flip Flop, Mod-6 gray counter, Number of bits in DAC given load resistance, current taken and voltage applied,
Microwave given characteristic impedance source impedance and length find load, Sampling of cos in time domain,
Min num of Multiplexer to implement function, saturation region of mosfet current vs voltage relation, setup hold time,
Software Profile
{Someone update this!} Multiply a matrix and its transpose.
Apti was OK…
Few verilog questions, RC circuits, microcontroller instructions, logic gates , overall easy but need speed to solve
06/10/18
2 coding questions were asked on hackerrank and time limit was 90 min.
Questions were very tough.
Q1. some variant of Knapsack problem. Total money a girl have is N, then total no. of shops given, then bundle quantity of notebook in each store was given as an array. Bundle cost of each bundle quantity was given in another array.Find max no. of notebooks she can purchase in N money.
Ex: 50
2
24 20
20 19
output : 40(We need to return number of notebooks but this is total cost. right?) yes, return total notebook
Exp: she have 50$, from 0th store she purchase 24 notebook bundle for 20, then she repeats the same, to have 24 + 24 = 48 notebooks spending 20+20=40 $.
Q2. huffmanDecode
Hackerrank, 2 coding questions 90 min
Q1) Consider a normal keypad with alphabets(ex on key 2 it is 'a', 'b', 'c'), and an encoded string, find the number of messages that can be obtained from it.
Ex: "222": 4(possible outcomes: "aaa", "ab", "ba", "c"),
"7777": 8(possible outcomes: "pppp", "ppq", "pqp", "qpp", "qq", "pr", "rp", "s").
Q2) https://www.careercup.com/question?id=5721734273564672
https://www.geeksforgeeks.org/deutsche-bank-interview-experience-on-campus-2018/
2nd question of round 1.
There were 2 papers:
Paper-1 (16 MCQ from OOP concepts, Operating Systems, Data Structures and Algorithms) [Time 30 minutes] [all were from Geeks Quizzes and almost all OS questions were direct questions asked in GATE exam]
Paper-2 (2 coding questions) [Time 45 minutes] Written round on paper!
1. Implement Round Robin Scheduling Algorithm for a number of processes and print the Completion Time, TurnAround Time and Waiting Time of the processes.
2. Given a binary tree, modify it as follows:(Note-we had to clone the binary tree as per given specifications, not just modify)
CTC details??
(OMR sheet) - 25 questions (15min) - mathematics, currency conversion comparison (exchange rates were provided), stock comparison (Basic multiplication and addition)
45 mins for 45ques, pen paper based, open for Btech, Mtech: Mech,Chemical, No CPI criteria
4 sections: Aptitude, Verbal, Data interpretation, Technical based on Department
For Mech:(Heat Transfer, Manufacturing, Design of Machine, Power plant)
All Profiles
-Hackerrank platform (1 hour) 2 coding question. Different sets of question were given to students.
Answer to 2nd question:
All test cases passed with this O(n) solution.
All Profiles
-Hackerrank platform (1 hour) 2 coding question
Test was in sets. So people got different questions:
Start with a lower case alphabet
Requested solution for 1 and 3
All Profiles
Different sets of question were given to students. It was on hackerrank platform, 2 questions 1hr. Python was allowed.
https://www.hackerrank.com/contests/freedom-fest-coding/challenges/phone-keypad
9. SAP questions on hackerrank google drive link - hea
1. https://drive.google.com/open?id=1vkAT9IqPARME5C2TVZYhRfViQbpBlnB1 please share the approach +7(solution)
2. https://drive.google.com/open?id=1qqtFWJGeU0p5cEiulqQbrA8WE2odrMid
10.
s
All Profiles
E.g- 1000->1001->1011->1010->1110->1111->1101->1100->0100->0101->0111->0110->0010->0011->0001->0000
PS- [Koi solution daal do yaar, Indeed mein bhi aaya tha same question]
Soln - Basically the above question reduces to “Finding the index of given number in list of all gray codes”. See from right side - the sequence is 0,1,11,10,110,111… which is exactly the gray code sequence
Is the gray code solution correct? Please confirm Grey Code Solution got accepted.
ANS - Just convert the given no to binary(B1) and then considering this binary representation(B1) as a gray code- just write O(n) solution to convert gray code(B1) to binary(B2)----convert that binary(B2) to decimal(D1) ...that(D1) is your last answer.
PPS - Uber IITG me bhi same aaya tha
3. Count number of Subarrays with product of elements <= k
IITK - Set 2
1 hour test on hackerrank. Python allowed. 2 Questions, different sets
Q1. A 2D array(NxM) filled with 0 and 1. Find the number of paths through the cells containing 1 from (0, 0) to (N-1, M-1).
Q2. Same question as asked in Indeed India Test in IITK(Q3). Find the number of operations to convert a binary number to zero. Each operation consists of changing one bit from 0 to 1 and vice versa. This operation can be carried out at ith bit if an only if (i+1)th bit is 1 and (i+2)th bit onwards is 0. (i is measured from left end)
Platform: Hackerrank, 1 hour 2 coding questions
Q1) https://www.geeksforgeeks.org/maximum-points-top-left-matrix-bottom-right-return-back/
Q2) Given a graph, find all the cycles of length 3.
The score of 3 length cycle is defined as the summation of degree of all the vertices taking part in cycle formation. Print the minimum score of such cycles formed.
Limit N=500, E=max(500, N*(N-1)/2), brute force approach is sufficient to pass all test cases
Ex: Nodes: 6
Edges: (1--2), (2--4), (2--5), (4--5), (3--5), (5--6), Output: 3
Expl: For cycle(2--4--5), degree(2)=1 (as 4 and 5 are part of cycle, thus not counted in score calculation), degree(4)=0, degree(5)=2.
Q3) Find the no of distinct substrings of a string. (|s| = 10^5)
Q4) https://www.geeksforgeeks.org/number-subarrays-product-less-k/
Q5)https://www.geeksforgeeks.org/count-possible-paths-top-left-bottom-right-nxm-matrix/
https://www.geeksforgeeks.org/sandvine-interview-experience-for-fte-2018/
^Someone please give whole sample input
solution: https://www.geeksforgeeks.org/find-k-cores-graph/
Sol for custom array- https://www.geeksforgeeks.org/segregate-even-odd-numbers-set-3/
This doen’t give min count https://www.geeksforgeeks.org/segregate-even-odd-set-2/
This gives min count: https://www.geeksforgeeks.org/segregate-even-and-odd-numbers/
Will O((2^n)*(n^2)) pass? This will be the order when we apply bitmasking+floyd warshall Can you clarify which problem you’re talking about? Uber-shuttle??7++ Solution anyone?
I think this solution will definitely work for this problem.
.
Approach for uberball- https://math.stackexchange.com/questions/1293020/calculate-different-sequence-of-scores-in-a-volleyball-match
Soln - Basically the above question reduces to “Finding t all gray codes”. See from right side - the sequence is 0,1,11,10,110,111… which is exactly the gray code sequencehe index of given number in list of
(IITG Junta: if anyone else has the other Qs or sample input of Q1, please put below.)
Q2 ...
Q3 was https://www.geeksforgeeks.org/find-sum-maximum-difference-possible-subset-given-array/
3 coding questions, 90 mins
1. Task master: Given to you are n tasks, and m number of pairs (a, b) such that a depends on b, a can be executed only after b. If you wish to execute a, and b is not executed yet, a will also not be executed. Return the maximum number of tasks you can complete. DFS.
2. Ash and Gary catch a and g pokemons respectively, until one of them wins. Winning condition is:
Winner has caught at least 25 pokemon. Winner has caught 2 more pokemon than the other. A repeat of last year’s question. Sol: https://math.stackexchange.com/questions/1293020/calculate-different-sequence-of-scores-in-a-volleyball-match
3. Uber has a retention rate of r. It means if R riders join today, number of riders by m months because of them will be R * r^m. You are given an array of size m, with number of riders joining in that month, and you are given a target C to reach. r is in [0, 2). Return min value of r to complete target. Precision of first 6 digits required.
Ex: If answer is 1.12345600, output must be 1.123456, else if answer is 1.234567, return 1.123457 and so on.
Binary search can be used, but handling precision becomes tricky. C <= 10^9. M <= 10^5
3 coding questions, 90 mins
Min CGPA: 7.0, EE,CS (B.Tech and M.Tech)
50 min 4-coding questions
3 Sections (Apti, C++ basics, Coding)
Test was conducted on 9/10/2018.
CPI cutoff: 7.0
10 MCQ’s computer science basic
2 functional coding problem
(i) Operations of stack.
Super Stack -
(O(n^2) doesn’t pass all cases) Solution: Think it the Given char array, replace every duplicate char by next non-repeated char e.g.: GeekG ----> GefkH way.
(ii) Count the min modification to make two strings anagrams.
https://www.geeksforgeeks.org/minimum-number-of-manipulations-required-to-make-two-strings-anagram-without-deletion-of-character/ Solution: Maintaining simple count array works. Which is almost bruteforce :)
Platform: HackerRank. Questions: 10 MCQ + 2 Coding. Time: 1 hour.
Can someone post the solution/idea of Q2
https://www.geeksforgeeks.org/count-distinct-substrings-string-using-suffix-array/
Date: 10/10/18
Pen paper based 1 hour, 3 sections: first one focused on writing programs/functions: printing Fibonacci numbers using recursion, reversing a string using memory efficient method, detecting loop in a linked list.
Second one focussed on SQL
Third one was from Prob and Stats and stock prices
CPI Criteria- 7.5; Date- 10/10/18
There were 10 Aptitude, 20 Technical and 3 coding questions.
For Technical questions practice memory allocation in C and pointers. Some of them were on networks. A few were on simple algorithms. Practice OS well if you want to do good in this section. There were some hard questions from OS.
1 question I remember from this section. Given 4 data structure you have to tell which is sufficient to store given IP address.
Aptitude questions were normal but time consuming.
Q1- You are given a string of length 24 consisting of 1’s and 0’s. First 8 chars represent Red component, next 8 Green and last 8 represents Blue component of a color.
You are given RGB values of 5 natural colors(as integers and fixed). You have to return closest color. Here closeness is defined as euclidean distance between colors.
For e.g- White = (255, 255, 255); Black = (0, 0, 0); Red = (255, 0, 0); Input = 000000001111111100000001
Here for this input RGB components are (0, 255, 1);
Distance with White = 359.918
Distance with Black = 255.1
Distance with Red = 359.919
So this is closest to Black, hence output is “Black”
Q2- This was related to N queens problem. You are given column number of queens in each row. You have maximum number of times a queen can be attacked. Here is modified version of this problem:- https://www.hackerrank.com/challenges/queens-attack-2/problem
Instead of obstacles there were other queens and you had to find number of times this queen can be attacked by another queens and then maximum of it. There was a catch e.g- If 3 queens are in diagonals(say (1,1) (2,2) & (3,3)) then this will be counted as 1 attack for (3,3).[This is what I think as all tests were not passing, so it’s my guess why]
Q3- You are given a library of n words(say w[0]......w[n-1]), length of each word is maximum 60. You have to choose a word and you can delete one letter from this string and if this results in string from this set then continue doing so and return the max number of steps this can continue. Solvable in O(n*60)
E.g- dictionary = {“abc”, “bc”, “b”, “bde”, “a”}
Then answer will be 3 as “abc”->”bc”->”b”
please add questions for Business Analyst profile also
2 coding question - 1hr 15min
For which job profile (Business Analyst/ Algorithm Engineer/ Software Engineer), these questions were asked ? for SE & AE
2 coding questions 1:20 hrs
CPI cutoff = 6.5
Solve all dp from LeetCode
2 Coding 75 min
1 hr pen-paper test.
Two profiles: System Engineer and Quant
3 sections of paper:
1st(both profile): 30q, Gate level C programs, OS related it, general probability e.g find expected values, use bayes theorem etc. This section has to be done by all
2nd(For quant profile): 7q, Main Quant section. Don’t know much.
3rd(For system engineer profile): 7q, C and OS, diff between deadlock and livelock, what is switching & routing, Determine No. Of vtble & vptr of given classes, predict output of given C program, related to Preprocessor manipulation etc,
Good luck
60 min Pen Paper test
section A: Quant 30 most of them single correct choice
section B: Strategy role 7 subjective
section C: Engineer role 7 subjective
Very less time to complete. Do take your watches with you. Try to do your section B or C fully
Section A
Section B
Section C
int main() {
try {
int *p = NULL;
*p = 5;
printf(“%d\n”, *p);
} catch {
printf(“pointer was NULL”);
}
return 0;
}
int main() {
u_int8 arr[] = {45, 16, 7, 231, 45, 8, 7, 231};
u_int32* a = (u_int32 *)arr;
printf(“%d\n”, a[0] - a[1]);
return 0;
}
Date : 13/10/18
Duration: 1 hr pen paper
Open for: CS , EE Btech
Roles : Quant Strategist & System Engineer
Question paper same as above for IITD & IITK.
section A: Quant 30 most of them single correct choice
section B: Strategy role 7 subjective
section C: Engineer role 7 subjective
Checkout the probability puzzles from brainstellar.com . Some questions in section A & B were directly from here.
3 coding problems on Hackerrank platform - 90 minutes
3 coding problems on Hackerrank platform - 90 minutes
1. Given a nxn square matrix containing integer values. You have to find the value of largest k ( size of a smaller sub square) such that all subsquares of that size has sum < R. for eg. you can first try with k=1 if all the sub square of size of 1 has sum < R then you can proceed to k=2 and so on. ( Even after using dp to store sums and using binary search for k was giving TLE on 2 test cases out of 14).
….2. Given a array, you have to increment the values such that all the elements become unique. Find the smallest sum you can get by incrementing the numbers.
Eg: arr[]= {1,2,2,3,4} you can increment the value of 2 to 5, final arr is {1,2,3,4,5} and the output will be sum of the final array = 15
3. https://stackoverflow.com/questions/44554450/sub-sequence-of-vowels
Date - 14th October, 2018
Profile:- Application Engineer and Server Technology (Test was same)
1st Test
MCQ-3 section-Total 7 sub-sections,time allotted as per sub-section, 87 min test, Roughly around 60 questions. (AVL Trees, Trees, BST, DBMS- 25 questions around) (20 questions- Aptitude)
2nd Test
2 Coding Ques in 1 hr
Were there questions from OS? ?? yes there were many hard que from os
23154
Someone please add an example of the Bletchley Park problem??(+2)
A device that forwards data packet from one network to another is called a
Can anyone suggest solution to the above problem?
Cut-off was 7.0 GPA
Aptitude/technical questions :- many different sections based mainly on AVL and BST trees,OS,DBMS,flow charts, maths etc.
Coding:
There were 2 tests.
Date - 13th October,2018
Profile - Data Scientist
4 coding questions/ 1:15 Hour test on hackerrank
https://www.geeksforgeeks.org/minimum-incrementdecrement-to-make-array-non-increasing/
You
(Is it open for Mtech CS ?)
Date - 14th October,2018
Profile - Product Engineer & Platform Software Engineer
3 coding questions / 1:45 Hour test on hackerearth
Codes provided by default in all the 3 questions can be completely removed. I was overwhelmed by the code for Q1 and I wrote complete new code from scratch and passed all cases.
Q1(150 marks) - Given a tree with N nodes and values assigned with them, root R, n-1 edges. You had to perform Q queries, queries can be of 2 types: (i) update i k: add k to the value ith node (ii) sum i: Report sum of subtree rooted at i.m
Constraints: N <= 105 ; k <= 107 No need to implement Segment Tree :( n2 algo passes all cases )
Q2(50 marks)- You are given a function f(i) = f(i-1) * (A*i9 + (B*i! + 1)*ii + C*(i^(i^i))). Where A = a*m, B = A*(b+c), C = 5*B + (A*log10(b*c))
Input:- n, m, a, b, c
Output:- f(n)%m
Solution- In case (n >= m) it’s divisible by m so return 0;
In case(n < m) the problem boils down to (n^n * (n-1)^(n-1) * ….. * 1^1)%m as A, B and C are divisible by m.
Q3(100 marks)- You are given an array (length <= 105) of 0’s and 1’s. Is it possible to split array into 3 parts such that decimal value of all 3 parts is same? If possible, return the decimal value else return -1.
Solution - Count number of 1s. If 0, return 0. If not divisible by 3, return -1. Else divide by 3 and find the value: if you iterate from the back of given array, you can figure out the number of trailing zeros in the last split, say tz. Now you know the required number of 1s in each split and the number of trailing zeros as soon as you hit the last 1 of any split while scanning from left to right. Store the splits in vectors and remove leading zeros and compare - v1 != v2 or v2 != v3 then return -1. Else you already have the vector and you can report the desired value.
28th Oct-2018
Profile - Product Engineer & Platform Software Engineer
(4 coding question and 45 MCQ (mostly from OS) | 2 hour test)
1. Given a matrix where 0- blank, 1-plant, 2-source. Find the shortest distance from source to any of the boundary edges. You can traverse through 0 in any of the four directions(left, right, up, down).
2. Find the count of all the submatrices of a matrix of size mxn, such that the sum of the elements of the submatrices is divisible by given number P.
3. Given 3 fruit f1, f2 and f3. Energy per unit of these three fruits is 2, 3 and 5 respectively. Given cnt1, cnt2, cnt3 amount of these fruits and cost per unit of fruits f1, f2 and f3 is cost1, cost2 and cost3. Find the minimum cost such that the total energy gained after buying these fruits is S.
Example: count:[2, 2, 1]
cost [5, 5, 20] & S = 10
Ans: 20 if you buy 2 f1 and 2 f2.
4. There are N nodes. Each node has exactly 1 directed edge. You have to return the node from which maximum elements can be traversed.
For eg : N=3 and A[]={3,3,1}
So there is a directed edge from node 1 to node 3, from node 2 to node 3 and from node 3 to node 1;
So if we start from node 2 we can traverse all the elements.
Output : Return 2
(there was some problem in synchronising array indexes with given code. It’s better if you delete whole code and write your own )
28 MCQs of varying marks(2 / 4/ 6), 3 coding questions (1 of 100, 2 of 50), 314 marks, 90 mins
MCQ’s based on C++, OS, COA, and some based on storage (don’t recall ever seeing something like that in DBMS or any other subject)
100 marks coding question: Given an array of size N. Q queries given L, R, X (L, R 1-indexed),
Return the maximum between indices(both inclusive) L and R which have X set bits in binary representation. Ex: A = [1, 2, 3, 4, 5] Q = 1, => [3, 5, 2] => 3, 4, 5 fall in L, R. 3 & 5 have 2 set bits, maximum of which is 5. Return 5. Segment tree/ BIT implementation.
Solution:https://ide.geeksforgeeks.org/ZmGxP0pHsn
50 marks: Given infinite number of 3, 5, 10 denomination coins, how many ways can you generate a sum of x? Sol: https://www.geeksforgeeks.org/count-number-ways-reach-given-score-game/
50 marks question: Given an array, choose two contiguous non-overlapping arrays, such that all elements are strictly increasing. Return the maximum length possible for this combination.
Ex: 7 1 2 4 6 5 3 8 9 10 => ans: 7 (Choose 1 2 4 6 & 8 9 10) l
Date: 4 Nov. 2018
(4 coding question and 45 MCQ (mostly from OS, Linux and Networks) | 2 hour test)
Q1) Given an array with non-negative elements and an integer K, find maximum sum of lengths of non-overlapping (contiguous)subarrays which have K as their maximum.
Q2) (Same as in KGP) 100 marks coding question: Given an array of size N. Q queries given L, R, X (L, R 1-indexed), Return the maximum number between indices(both inclusive) L and R which have X set bits in binary representation.
Ex: A = [1, 2, 3, 4, 5] Q = 1, => [3, 5, 2] => 3, 4, 5 fall in L, R. 3 & 5 have 2 set bits, maximum of which is 5. Return 5.
Segment tree/ BIT implementation. Solution:https://ide.geeksforgeeks.org/ZmGxP0pHsn
Q3) (Same as in IITR) 50 Marks: Given 3 fruit f1, f2 and f3. Energy per unit of these three fruits is 2, 3 and 5 respectively. Given cnt1, cnt2, cnt3 amount of these fruits and cost per unit of fruits f1, f2 and f3 is cost1, cost2 and cost3. Find the minimum cost such that the total energy gained after buying these fruits is S.
Example: count: [2, 2, 1]
cost [5, 5, 20] & S = 10
Ans: 20 if you buy 2 f1 and 2 f2.
Solution: Make an array containing cnt1 times 2, cnt2 times 3 and cnt3 times 5 as its elements. Now find the minimum cost subsequence which sums to S.
Use cost_i instead of count in this approach: https://www.geeksforgeeks.org/maximum-size-subset-given-sum/
Q4) Given a number X, following two operations with different costs can be performed on it
Find minimum cost to reach this number X starting from 0.
Soln: (greedy) Start from X,
If X is 0, answer is 0.-
if X is even then one can reach X/2 in min(A*X/2, B) cost. answer will be min(A*X/2, B) + func(X/2).
If X is odd then make it even using A cost. answer will be A + min(func(X+1), func(X-1))
We are reaching to 0 in minimum number of operations. And at each operation the option with minimum cost is taken.
This solution is giving runtime error because there is no limit for x+1, Can someome please post another sol ?
Same as IIT-G
te - 13th October 2018
Profile - Software Developer
2 coding questions/45 mins on their own platform
30 MCQ questions/30 mins on their own platform
Coding question 1: Given an array of size n where each the ith index has the value i, count the number of subsequences whose product is even.You are given a grid of size m*n, where there are 3 types of values: ‘X’ invalid, ‘0’ can be visited and ‘1’ can be visited. You are stationed at (0,0) facing right. What is the maximum number of 1’s that you can visit?
The condition is that you can do only two types of movements, either you can move one step to the direction you are faced, or you can move down and reverse your face.
Coding question 2:
The MCQ questions were based on OS, Networking concepts and General Aptitude.
Set 1:
Coding q1: GIven a number n, 1<=n<=10^18. Find all divisors of n. For each divisor d, count numbers less than d and co-prime to d (basically euler totient function, phi), and sum up these counts.
Ex. for n = 4, divisors are 1,2,4. phi(1) =1, phi(2) = 1, phi(4) = 2. So answer is 1+1+2 = 4
Set 2:
Coding q1: Repeated coding question 1 IITG. {even product subsequence}
Coding q2: Given a binary array find the longest non decreasing subsequence and return the product of number of zeros and ones.
Time: 90 minutes
Platform: Hackerrank
Total 15 questions , 12 mcqs and 3 coding :- Coding questions are relatively easy.
Mcqs are based on data structures (easy)..
* on XOR linked list
* on recursion tail
* on B-Trees
* on stack uses
* probability
* Aptitude
1) you will be given value of k and you need to find the value of n for which ;
n*(n+1) = 2*k; if integer value of n is not possible take the floor of n. The values are big so you need to use long or long long . I just simplified and given the main part of the question the actual question building was quite different.
2) Given an array you have to find the degree of divisibility of the array which is the max of divisibility of all elements then just multiply degree with 10^5 which was termed as strength. Then 2 terms were given no. of instructions and time for each instruction just calculate the total time by multiplying and if this value is greater than the strength return 1 else return 0.
- very easy problem
3) Have to construct a k-ary tree and then the from the given node have to traverse and return the number of nodes containing prime values.
Please update 2 more questions +102
Questions: https://imgur.com/a/PIXIxR8
Go, slay them. Good luck.
1. https://www.careercup.com/question?id=5721734273564672
2. Simple Ad-hoc question. Hardest part was to understand the question itself.
Key-value pairs were given as strings, and if a key appears once again, then you need to update the value of that key every time. And return the values in the order in which their keys appeared first.
3. Undirected unweighted graph was given. We need to return nodes in increasing order of the distance from a given source. Simply apply BFS to find distances of all nodes, sort nodes according to distances and return.
4. MCQs based on trees, B-trees, time complexity, sql queries, etc. (Simple GATE level)
1.5 hr test
Hackerrank platform
12 MCQs + 3 coding questions
sum_of_elements(0 to k)>sum_of_element(k+1 to n-1)
Same question O(n) solution(easy)
Dp solution of table size 2*n please share the approach +6(solution)
MCQs based on B-trees, general aptitude, binary trees, BST, data structures, algo, find C given no. of internal and leaf nodes in a full C-ary tree, Linear Probing in Hash tables
1.5 hr test
Hackerrank platform
12 MCQs + 3 coding questions
Eg: input list of string -> oru,abc,ace,eyu,dghu,uo & interval = (2,4)
Then output = 2 (because in 2-4 , string 3 and 4 start and end in vowel)
2 Questions in 45 minutes on co-cubes
Date: 14/10/18
1) https://www.geeksforgeeks.org/given-an-array-arr-find-the-maximum-j-i-such-that-arrj-arri/
2) https://www.geeksforgeeks.org/wildcard-pattern-matching/
(1 DP question and 1 other question afaik)
SET 2
1)https://www.geeksforgeeks.org/maximum-product-of-4-adjacent-elements-in-matrix/
2)https://www.geeksforgeeks.org/wildcard-pattern-matching/
SET 3
2)https://www.geeksforgeeks.org/write-c-code-to-determine-if-two-trees-are-identical/
Software engineer:
14 questions (10 multiple choice + 4 coding) on HackerRank
Business Analyst:
60 MCQ in 60 min. (type is same as of Pariksha but bit tougher than that)
Important - Time management
1.
2.
3.
3. Gold Mine problem. Collect maximum gold coin and return back to (0,0).
Platform - Hackerrank
(Python allowed)
2 MCQ + 4 Coding + 1 approx. solution type
Time - 1.5 hrs
Platform - HackerRank
Languages allowed - C,C++,Python (No Java)
MCQs were on basic Data Structures and OOPS.
Almost all of the coding ques. were of Dynamic Programming
Risk Management profile
Open for Mtech, Dual all depts., CTC – 14.7 Lakh pa
1 hour-20 question, hosted on Hackerearth. CPI cutoff around 8
Question based on Prob and Stats, Linear Algebra, limits, calculus, series with more focus on prob and stats
Some of question asked:
Exactly same questions as IITD
Exactly same as IITD
20 aptitude question, 2 programming (20 mins for aptitude, 90 mins for programming)
Same pattern as in BHU followed by an audio video test on hirepro platform.
Programming Questions-
1.Find the sum of elements of given array and print the 8-bit binary representation of the sum.If sum overflows(i.e. sum>255) then print the 8 least significant bits.
2. Easy Greedy Problem. Please specify the question if possible?
Same pattern as in BHU and Roorkee. Programming Questions were same as Roorkee.
Hire pro platform(75 minutes)
Two Coding question asked:-
Example:- 54671---> swap digit 6 and 1 → 54176
Solution: https://math.stackexchange
Test was on Codility platform.
Each student got different question
Is python allowed????
Exactly same questions as above
Can anyone please share the code of both the questions
Can anyone please upload ans of 2nd
Same coding ques as IIT D. 20 MCQ with .25 negative marking.
In first question for each query you have to return the minimum ladders you have to take to reach a given floor starting from ground floor. Each floor is guaranteed to have a ladder.
Please tell what the second question was.
Does greedy solution Works ?
300 marks test, 1.5 hr on hackerearth (2 coding questions - 200 marks, 20 MCQ - 100 marks)
https://www.geeksforgeeks.org/minimum-number-platforms-required-railwaybus-station/ (Same question - 100 marks)
https://www.geeksforgeeks.org/count-integral-points-inside-a-triangle/ (For a polygon instead of a triangle - 100 marks)
20 MCQ (5 marks each) - OOPS(4-5), Networks(5-6), OS(3-4), Data Structures (5), Algorithms (2-3)
Running code https://ideone.com/laser0/amazon
Cut off - 7.00
Resume Shortlisting - Yes
29/10/18. Three sections:
Three sections:
Consider n = 10, k= 2: child1 gets 1, child2 gets 2, child1 gets 3, and so on.
Output: child1->4 child2->6
PS. Test was on mettl. So, brace yourselves :p. And yes, that finding out different substrings was also asked to some peeps in IIT Kanpur. So, it is possible you might end up on these questions.
Same pattern as IITH
Coding questions:
Same pattern as mentioned above
Cutoff around 7 CGPA, Btech and Dual
5 sections in approx 2 hours
15-Reasoning
15-Engg Mathematics (Fourier, Laplace transforms were mostly asked in IITR and some ques of differential equations(Level was difficult for students who were not remembering 1st year maths course))
15-Probability Distributions (Tests were asked)(T-test, Z-test, Chi squared test in IITR)
4-Coding questions: C++,Java, python, STL allowed
25-Quantitative aptitude (Speed maths-10 min 25 ques in IITR)
Time was an issue especially in aptitude section, level was above pariksha tests. Can’t switch across sections
Coding questions as follows:
https://leetcode.com/problems/remove-k-digits/
Cpi cutoff? Reply: None
29th November. Pen paper test (No knowledge of coding required)
Scoring +1 and -1 lkjadgfla
1st Part- Section 1: Probability based MCQs
Section 2: Data interpretation (easy af, moreover, calculator was allowed for the whole test)
Section 3: Critical reasoning
2nd part- Guesstimate on pen paper- Fuel sale in INR in a petrol pump in Delhi/Mumbai in a week
31st Oct
Please provide sol ?
https://ide.geeksforgeeks.org/JX4QXaWu5j
This sol is giving wrong ans for 12.it is giving 5 output while correct is 4.1->12=4*3.2->4=2*2.3->2-1.4->1-1=0.so total 4 operation
-
3. https://www.geeksforgeeks.org/count-possible-decodings-given-digit-sequence/
1311
3 questions in 1 hour, HackerRank
1. Minimum number of moves for a knight on chessboard to reach from a given source to a given destination.
2. Array of product prices given. Each product is discounted by the first element to its right which is <= to it. If not present, discount is 0.
3. Lottery tickets numbered 1 to n. Value is sum of digits of the number. Find the no. of tickets whose sum is maximum. n<10^4. Directly scan 1 to n and store counts. Passed all cases.
https://www.geeksforgeeks.org/check-if-a-given-array-can-represent-preorder-traversal-of-binary-search-tree/
1. Given two strings A and B, B is a string consisting words of A only.
Return the missing words are not present in B but are present in A.
Ex - +
A: I love programming.
B: love
Output-
I
Programming.
l <= a <= b <= r and a xor b <= k
Same question except condition a xor b <= k. https://www.hackerrank.com/challenges/maximizing-xor/problem
35mins(Apti+DS+coding
), 85mins(below)
q1.https://www.geeksforgeeks.org/smallest-window-contains-characters-string/
Platform: Hackerearth
Test duration: 90 minutes.
Questions: 3 coding questions (100 marks each).
n=5
arr={1,2,3,4,5}
Query: 1 3
Output should be 4
Explanation: the product of numbers between 1 to 3 (1-based indexing) is 1*2*3=6
Factors of 6=1,2,3,6. Therefore the answer will be 4.
Constraints:
1<=T<=10000
1<=N<=10000
1<=A[i]<=1000
(Can someone suggest solution to this one? Also, what is ‘T’ in constraints, shouldn’t it be ‘Q’?)
A = list(map(int, input().rstrip().split()))
prod = 1
for i in range(0,3):
prod = prod*A[i]
factors = []
for i in range(1, int(prod**0.5)+1):
if(prod%i == 0):
factors.append(i)
factors.append(prod//i)
print(len(sorted(factors)))
2. Given a number N tell if its possible to convert it into a fibonacci number by rearranging the digits of N.
Constraints: 1<=N<=10^15.
Solution: Similar to finding anagrams of a string.
Can you please elaborate your solution ?
https://ide.geeksforgeeks.org/sYgPZBen5t Wrong solution
3. Given a string of lowercase english alphabets find the minimum length of a substring containing maximum number of distinct characters.
Constraints: 1<=|S|<=10^5.
Solution: https://www.geeksforgeeks.org/length-smallest-sub-string-consisting-maximum-distinct-characters/
IIT Kanpur-please add
Same questions as in IIT Kanpur above.
1 hr pen and paper based test, 20 questions
Related to probability, mathematical aptitude, few puzzles, some logical reasoning
There were 4 sets.
All branches eligible, no cpi cutoff, pen paper based. 30 (Reasoning + Verbal + Quant) questions asked,+3,-1
IITB
3 Coding Questions:- Platform Hackerrank
Ex:- input={a,b,ba,bad,bdca
For ‘a’-> if remove character string will be null so count=0
For ‘ba’-> if remove ‘a’ then left string is ‘b’ and ‘b’ exists so count++ similarly if we remove ‘b’ from ‘ba’ then left string is ‘a’ and ‘a’ exists so count++. So total count for ‘ba’ is 2.
Similarly For ‘bda’ possible strings are { ‘ba’,’b’,’a’ } count=3
For bdca--{‘b’,’a’,’ba’} count =3
And I guess they asked for max count
3.
Given array of size n , where n is number of questions in Exam. You and your friend is solving the questions from exam. You will solve first K questions and your friend will solve the rest.
If v[i]==1 is you will get 1 mark otherwise -1. Now you have to find min k where your score is greater than your friends score.
Example:- V={1,0,0,1,0}
Output :- 0
Explanation:- If you don’t solve any question then your score will be 0 and your friends score will be ‘-1’ (2 correct & 3 incorrect)
(Had they shortlisted candidates for the interview? If so, how many?) Cpi criteria >=7.5
Yes, they have shortlisted 33 students for the interview.

Same questions as in above screenshots by IITB.
No CPI criteria 0 Cutoff For Software Engineer Profile
For Btech. CTC=22,91,200-> Base=13LPA;
For Mtech. CTC=24,03,600-> Base=13LPA
2
Gross: 2500000.00 INR
No CPI cut off.
Job description:
2.Strong C/C++/JAVA programming skills
3.Passion for programming and knowledge
4.A good team player with communication skills and a sense of responsible
5.Ability to learn new things quickly and has creative ideas
Advanced Skills (Good to Have):
1. Experiences of Android development.
2. Knowledge of network protocols or wireless protocols, like HTTP, TCP/IP, Bluetooth, Wi-Fi, 3GPP/3GPP2, etc. ?
3. Knowledge of 3A (Auto Focus, Auto White Balance, Auto Exposure) algorithms and ISP (Image Signal Processing) tuning
4. Good sense of photography and videography
5. Understanding on CPU architecture and SoC system architecture
6. Understanding on Linux Kernel programming or device driver.
Test on hackerearth. 2hr 30 mins exam (full screen mode compulsory)
Total marks: 248
30 Mcqs, questions were asked on C, C++, Java, Android, image(camera)
NO Negative marking.
Each question had marks ranging from +2 to +6.
Question examples:
C: “what would be the output of the code” type of questions.
C++: Same as C
Java: asked the output of the code, one nested class initialization question.
Android: Output of code, and asked about default processes.
Image: “when we take photos with camera facing the sun, the photos are underexposed. How to fix that ?” and there was one or two more such question.
2 Coding question:
Languages available: C, C++, Java and Bash only.
Q1. Something similar to https://www.geeksforgeeks.org/number-subarrays-sum-less-k/ 50 marks
Q2. I forgot. Someone please fill this up. 150 marks
1. Given an array of length n, for each length 1<=L<=n, find the number of substrings of the array whose sum is <= given k.
2. Partition an array into m parts. What is the minimum of the maximum of sums of each partition? n<10^5, ai<10^4 or 5
O(n^2) solutions will not work
- Open for BTech, Dual, MTech, two profiles (Analog and Digital) Only ECE and EE
- Analog - Questions on RC Ckts., MOSFET, loop gain, poles, amplifiers, gain, Opamp (No question related to BJT) - 20 ques, 40 mins
- Digital - Questions on DRAM, MUX, Logic, CMOS gates, minimum no. of gates - 20ques, 40 mins
- Aptitude - Maths, ratios, verbal, LR, DI - 30 ques, 40 mins
2 sections in around 45 mins
First one focussed on speed, 40 question were asked on speed math in around 7 mins. For example: 24^2+46^2, summing/subtracting decimal numbers, multiplication Options were given in that??
Second section was based on aptitude, around 40 question were asked consisting of 1 marks and 2 marks questions, negative marking was present.
One section was independent in terms of time from other one.
(I guess this can be solved using binary search on answer. Please confirm or suggest new solution.)
Use priority_queue it will take O((n+k)logn) time. For O(n) take the max element, find the sum of diff b/w all the elements and max element. If sum>k, return max else return max+ceil(sum-k)/n
Online exam, can take the exam from anywhere.
7 sections:
All programming languages available.
3 programming question. Questions were easy, time was the major concern.
Each question has a separate timer, something like 10 min, 15 min and 25 min respectively for each question.
Q1. https://www.geeksforgeeks.org/reverse-words-in-a-given-string/
Q2. Can’t remember exact question:
Print the k minimum costs.
Sample input:
2
10 1 10
10 2 10
10 3 10
25
4 5 6 8
Output:
10 1 10
10 2 10
Explanation:
2 = k
Add all the values in each row and that is your cost.
10+1+10 = 21
10+2+10 = 22
10+3+10 = 23
25 = 25
4+5+6+8 = 23
Print the k(= 2) minimum costs as given in input. There might be blank lines while taking input. That should be handled.
Q3. https://www.geeksforgeeks.org/0-1-knapsack-problem-dp-10/
45 question in 1hour on hirepro
For Dual degree- CSE,EE,ME
Aptitude questions, data interpretation+reasoning and verbal question were asked
(Infinite knapsack)
Similar to this:
http://www.geeksforgeeks.org/unbounded-knapsack-repetition-items-allowed/
Solution :- http://ide.geeksforgeeks.org/q3p
pm7
Cost of tree solution : https://ide.geeksforgeeks.org/P0EdjVieZa?fbclid=IwAR2zCI9-S1_6EZvNd9jrlCJ4rq7qEnOMVDyyI8oCIbdqXH1J5lvWxY00CSg
EXACTLY Same as IIT K
EXACTLY Same as IIT K
(2 Coding and MCQs) 1hr
Can someone pls provide the solution ?
Using Backtracking- Dog and Lake Solution
to
1 0 0 0
3 0 0 1
0 0 0 1
0 0 0 1
1)Given a string containing alternating char and single digit int, print a string after following these rules:
Eg.If the string is a3f5g7b2, print aaa119bb119fffff119ggggggg
a)Take lcm of the maximum single digit int and sum of all numbers. (lcm of 17,7=119)
b)Print the char, no of times = the number beside it.(a 3 times, f 5 times, ….)
c)Also print the lcm aft d)Print the chars in alphabetical order.
e)Don’t print the lcm after the last char
2)https://leetcode.com/problems/word-search/description/
1.Knapsack problem with unlimited supply of each element.
2. Some predator question in which basically u were given few n-ary trees from them find maximum height of all the trees.
Test conducted at Morning 8AM on 10/11/2018, via Cocubes platform
Aptitude : 25
2 Parts :- Aptitude and Technical Questions on Reading Comprehension and Grammar.
Technical : Different set for different departments.
Chemical Dept : All Questions from Thermodynamics and Kinetics. Like T-s curve, various processes, finding Ea, role of catalyst, saturated steam expansion etc.(30 questions in 30 min.)
16 question in 1 hour- 8 aptitude, 8-programming based question in which output was to be predicted.
Write the commands on paper which appear on instruction page before starting test, they will be used for programming based question
2 parts on cocubes, 1st part consisting of logical reasoning-20 ques and 10 ques aptitude
2nd part: 2 simple coding questions(rotating an array containing odd elements about middle element, calculating overall discount from consecutive discounts)
20 question in 35 minutes
Sum and number of factors, trigonometric relations, figure pattern(3-4 ques), age based problem, information sufficiency questions (like is statement 1 sufficient to answer this question, both statement 1 and 2 are required, et
c)3-4 questions,
angle of elevation, perfect number, remainder theorem, blood relations, critical reasoning bases ques
IITR (Same as IITK)
60 questions on cocubes (Time ??)
20 Verbal
20 Logical
20 Aptitude
5/11, 1 hour, pen and paper
10 aptitude questions, quite easy
10 software MCQs - 1 or 2 output of code, stable sort, no. of edges in complete graph etc.
10 hardware MCQs - ring counter, finding max. frequency from diagram with flip flop delays, gate delays etc., expression represented by NAND gates etc.
4 questions, 1 hr 30 min on hackerrank
1. Find number of ways of selecting a team of 3 people from m men and w women, the team should have at least 1 man and 1 woman
Sol - m*w*(w-1)/2+w*m*(m-1)/2 if m!=0 and w!=0
2. Coin change for an amount n, coin denomination values are from 1 to k
3. Roll a string - A lowercase alphabet string is given and an array is given. arr[i] means the characters from 0 and arr[i]-1 are incremented by one (‘z’ becomes ‘a’, ‘a’ becomes ’b’) Return the final string after performing all operations in the arr.
4. Given 3 arrays f1, f2, candies. f1[i] and f2[i] are friends who love to eat candies[i]. Thus there will be groups of friends who love a particular candy. (Same person can like multiple candies). Find the largest friend group who like the same candy and return the maximum of f1*f2 among all such groups, f1 and f2 are friends who like same candy.
Sol - Construct m graphs if there are m candies. Each graph has n friends. Find the largest connected component(s) in all graphs. Let us say there are 3 such components of length 6. Return max(f1*f2) among all 3 groups.
3 questions, 30 minutes test on hackerrank
1. A manager wants to hire employees. An employee accepts offer iff at least k of his friends accept the offer. Whom should he offer the job such that maximum employees will accept the offer.
2. Given a m*n grid and k queries. Print the query[i]-th element in the spiral traversal of the grid.
3. Given a graph and a target. Also given an array that shows the boundary nodes in the graph. Find nearest boundary point reachable from the target.
Please post questions for HSBC GM profile.
Any idea about dynamic technology lab test????????? Please reply
Someone has deleted amazon question please restore it.
Please add questions asked in Mathworks? +1 - Updated for IITH
Deutsche Bank, Worldquant visited any IIT? Yes in IITB (31st oct.)
Yes DB in IIT Dhanbad(31st oct.)
IIT D, IIT M people- Do we need to solve coding questions for data science profile too??????? Yes
Any update about Goldman Sachs Bangalore Office Test dates for IITs? Nov 3 IITR, Nov 2 IITD
Can there be a google form for submitting questions this doc be made view only? People are questions.
HSBC CPI cutoff any IITs?HSBC GM (Analyst): IITK - open to all, no cutoff
Specific source of quant questions quadeye? 50 CP, Brainstellar
Tesco Visited any college?IITB
Somebody having any information on test of juniper networks ? Yes, Test was conducted on 10th Oct @ IITK
Please add JP Chase (Quantitative Research Profile or software profile) questions if visited by any IITs/NITs or questions for Quant Research profile by any other company as well.+4+1+1+2+1
sach
Could people also post the probability and data science questions as well in this sheet ? For Goldman Sachs, Zendrive etc ? Screenshots of Data Science and Quant questions would be of much help ! +12
Did IBM Research visit any college? Please update the dates and questions +4
IITD people please add NUTANIX QUESTIONS ?? And what was CG cutoff ? questions added. cg cutoff was 7.5, Only open for CSE? Open to all
Is Analog Devices coming for recruitments in any college? Yes IITM IITB
Is Rivigo Services (Algorithm Engineer) Open for Electrical Engineering students as well? No
Did Myntra visited any college? Visiting IIT R on 14th OCT, Postponed now
NIT people, please add the details in the doc as the placements are already going on/done at your campuses
HAVE COMPANIES STARTED COMING FOR MECH ENGG ??
Nagarro questions IIIT DELHI?
AQR conducted test in any college?+1 test on 1stNov IITR
Selection process of GEP
What is the selection procedure for minds.ai?
What questions were asked in minds.ai test?
Microsoft and flipkart question IIIT Bangalore ??
SAP Labs conducted test in any IIT? IITM IITG
Nutanix conducted test in any IIT? yes,IIT Delhi
PLZ UPDATE SAP LABS QUESTIONS, updated
What kind of problems does zendrive asks in tests?? +100000
Data science profile - 15 MCQ
Software developer profile - 3 coding question
More questions posted above
HAS AQR VISITED ANY IITs?
Arista Network had been to any College ? Yes,(IITM) | (IITK) Test is also scheduled on 20th October.
Please update questions for Arista
Versa Network conducted test in any college (IIT,NIT,IIIT) ?(Yes, IITM)
Anyone from IIITD, please update the Qualcomm questions
Please update intel questions if it visited any IITs/NITs. +1 (Yes, IITM,updated)
Has Fractal Analytics visited any IIT/NITs? Finalized interviews in iitk -- Shortlist done .. Yes
Did Uber visit any IIT/ IIIT/ NIT ? If so please add questions. Or has anyone so far given the offcampus uber second round? Just mention that it was off campus and add questions. Visited IITD, added questions above
Did Rivigo visit any campus? Can you add relevant questions or details ? Check above (IITD)
Tower Research visited any college?? Please add questions? +6
NIT GUYS PLEASE ADD THE QUESTIONS ASKED BY TESCO
Please update Samsung Semiconductor questions if it visited any IITs/NITs. IITK.
IITM
https://www.google.co.in/amp/s/www.geeksforgeeks.org/samsung-interview-experience-set-28-campus/amp/
Anyone have intel last year questions? or if it visited any IIT this year then this year questions ? Last year there was no test. Only resume shortlist
Did Super Highway Lab (Shuttl) came for software engineer role anywhere? IITK
Did DE Shaw visit any college yet? Please update the questions asked.+100
Any update about APM role of flipkart? Anybody shortlisted?????????????? When will result declare? Declared for IITR, IITD and IITB(6).
Update about dynamic technology labs ?? Pattern of the test?
Please add Sapients test Questions +1
Please update the flipkart questions ?? +1+1+1
Is IBM Research coming to any college ??
Did Fidelity visit any college yet? Please update the questions asked.
in IITG 14/10.
Did fortanix take any test in any IIT as of yet ? iitk
Has Oracle visited any of the colleges? IITR 14th Oct, IITB 17th oct
IIT Delhi Plz add APPDYNAMICS and APT Portfolio +10u
Is Rubrik visiting any IIT? IITM,IITB,IITD,IITK
Can somebody give an update on the questions asked in HSBC trainee Software Engineering test??? IIT BHU???+1
Do they allow python in SAP labs(Data Science profile) coding test and what about fractal analytics(Data Science) ?
Did Walmart visit any other campus other than ISM?
What is flow traders second test after speed math?Any Idea about behavioural fit?
Which all companies released shortlists???
Please Add Indeed India --- IITK people!! Added one with solution :)
Does anybody know about Flow trader’s HR interview format? Did they ask anything particular in Finance like arbitrage??? Yes, standard HR questions. Did anyone get a call after the HR interview ?Nope. They said they will communicate within a week.
Anyone got any results ?
Have Graviton visited any IIT ?
Did credit suisse visit any IIT? Please add if yes
Sites/Resources to practice quant section for Goldman Sachs/Zendrive/JPMC please?
Please update IBM Questions.
Mind-Tickle in any IITs ? Yes, IITG questions added
Paypal in any campus?Yes, IIT Kgp
Payu in any campus?
Indus insights in any campus?IITR - 29th Nov
Did Apple visit any IIT yet? Please update questions if yes!
Please update PhonePe questions
Please update Finmechanics IITD
Axis bank-Manager in any campus?
Blackrock in any campus?
Please add Zomato (Manager profile) questions- IITR,IITD
Mastercard in any campus?
ExxonMobil in any campus?
ZOMATO SDE Questions, anyone?