Professional Documents
Culture Documents
Manu Sankaran
January 2024
1 Qs
1.1 Question 1: Easy
Part I:
Alice: Hey Bob, I need you to help me move this weekend. Can you?
Bob: Yeah sure, why not?
Alice: Great, do you have anyone else you can bring along?
Bob: Yeah, Charlie and Daniel can join me.
Alice: Great, well do you have an estimate on how long it’d take if just you
and Charlie were to work together?
Bob: Hmmm we could probably do it in about 6 hours.
Alice: What if you had Daniel instead of Charlie?
Bob: Oh well Daniel’s a fast worker. The two of us could wrap it up in
roughly 4 hours.
Alice: And in case you can’t make it, how long would the two of them take?
Bob: Roughly 8 hours. I’m much faster than they are hehe.
Alice: Well, I’d like to know when we’ll finish if we start at 10:00 a.m. and
if all three of you work together.
Bob’s answer is c
Part II: Compute the following integral:
R π2 √
(2 3 sin2 (x) + x cos x3 ) dx
0
The above value is now d.
Compute e = 4d √ √
If you’ve done everything right, e should be in the form of p 3π+qπ+r 3+s,
where each of p, q, r, s are integers. Take the integer (p + q + r)(s + qr)
Part III: Add c and pqr to get the final code
1
1.3 Question 3: Annoying but Easy
Part I:
Consider the following 4 statements:
A) Given 25 blind people and 25 deaf people sitting in a line in some order,
it will always be possible to find at least one person whose two immediate
neighbours are deaf.
B) Given two distinct numbers, x and y, both larger than 3, it is impossible
to decide whether or not xy > y x without calculation.
C) You are more likely to obtain a royal flush (10,J,Q,K,A all of same suit)
in a fair game of poker (assume you’re given all 5 cards simultaneously) than
you are to win the lottery(assuming participation from 5 billion people).
Assign 1 to a statement number if the statement is True, and 0 if it is False.
Part II: There lies below a sequence of statements. Using the above 3 statements
and the truth values assigned, form a string of 1s and 0s.
¬B ∧ C, A ∧ B, C ∨ A, C ∧ B, ¬C ∧ A, ¬B ∨ C
Part III: Compute the value of the string in Ternary and that will be your code
:D
2
What number do you give the wizard to maximise your chances of success?
2 Answers
2.1 A1
Bob’s answer is 1:42 as they would take roughly 3 hours
√ and 42 minutes,
√ ending
at 1:42. Hence, c = 142 The integral evaluates to 2π 3 + 3π + 18 3 − 36 and
the given integer is (2 + 3 + 18)(−36 + 3 · 18) = 414 Final answer is 556
2.2 A2
408
2.3 A3
A is true, B is false, C is true.
The corresponding sequence is hence, 1, 0, 1, 0, 0, 1, which evaluates to 271
Ans is 271
2.4 A4
As no intra-pair information is given, you need to just choose pairs of slots
among 8 slots, which evaluates to be 2520 choices. To maximise probability
(= 13 ), you would need to answer 840