r/6thForm • u/IngenuityBroad595 KCL | Computer Science Y2 • Jul 18 '22
🎓 UNI / UCAS Computing Interview prep - Does anyone have a list of questions for Oxford, Imperial etc.
56
Upvotes
r/6thForm • u/IngenuityBroad595 KCL | Computer Science Y2 • Jul 18 '22
View all comments
8
u/[deleted] Jul 18 '22
I can give you one of my interviews:
Question 1: A composition is the number of ways you can write a positive integers as a sum of other positive integers (for example, you can write 3 as 1+1+1, 1+2, 2+1 and 3 so there are 4 compositions of the number 3). How many compositions are there of the number 12? Try it by writing out 1+1+1+1+1+1+1+1+1+1+1+1
Question 2: A partition is the same thing as a composition, except order doesn't matter, so for example for the number 3 has 3 partitions as it can be written as 1+1+1, 1+2 and 3. Come up with a formula for the number of partitions of n.
After some attempting, the tutor interrupted me by saying "it's acually very hard to come up with a formula for that" (in fact I believe it's an unsolved problem in mathematics).
Question 3: The coefficient of x^n in (1+x+x²+x³..)(1+x²+x⁴+x⁶..)(1+x³+x⁶+x⁹..)... is the number of partitions of n. Why?