Online Assessment Format
- Two minutes: Answer as many short logic/reasoning questions as possible.
- Twenty MIIS questions.
- Fifteen math/logic questions.
- Four programming questions.
MIIS Questions
- MIIS arithmetic
Calculate the value of 1 + 1 * 3 / 2 + 7.
- MIIS strings and type conversion
Given A = "JOHN", B = "JANE", and C = "3DOES", find the value of 0.A + B + C - 3.
Math / Logic Questions
- Coins
Someone has two coins totaling 55 cents. One of the coins is not a nickel, worth five cents. What are the two coins?
- Tree growth
A tree doubles in size every day. On day ten, it is eight feet tall. On which day was it five feet tall?
- Shopping
Someone goes to a store and has this conversation with the salesperson:
The salesperson says, "One costs one dollar."
The customer says, "I need 600 of them. Here are three dollars."
What is the customer buying?
- Time calculation
Fifty minutes ago, the number of minutes between that time and 3 p.m. was four times the number of minutes between now and 5 p.m. How many minutes remain until 5 p.m. now?
- Eating pizza
One and a half people eat one and a half pizzas in one and a half days. How many pizzas would nine people eat in three days?
- Hallway and offices
Two people start simultaneously at opposite ends of a hallway and walk toward each other:
- A starts at office 1 and moves at five offices per minute.
- B starts at office 46 and moves at ten offices per minute.
At which office do they meet?
Programming Questions
- Keypad String Encoding
Given a string, convert each letter to its corresponding key sequence on a traditional telephone keypad.
The mapping is:
2: A -> 2, B -> 22, C -> 222
3: D -> 3, E -> 33, F -> 333
4: G -> 4, H -> 44, I -> 444
5: J -> 5, K -> 55, L -> 555
6: M -> 6, N -> 66, O -> 666
7: P -> 7, Q -> 77, R -> 777, S -> 7777
8: T -> 8, U -> 88, V -> 888
9: W -> 9, X -> 99, Y -> 999, Z -> 9999
Rules:
-
Ignore spaces.
-
Ignore case.
-
If two adjacent letters map to the same key, insert
#between their encodings. For example,ABmaps to2#22, because A and B are both on key 2.ADmaps to23, because A and D use different keys and need no#. -
Character Frequency Map
Given a string, count how often each character occurs and store the counts in a map.
Requirements:
-
Keys must remain in the order of their first appearance in the input, rather than alphabetical order.
-
Ignore spaces.
-
Ignore case.
-
Mingo
Given a 100-by-100 integer matrix, with each cell's value between 1 and 1,000,000, and an array called representing the order in which numbers are called.
A Mingo occurs when all the values in any of the following have appeared in called:
- Any complete row.
- Any complete column.
- The main diagonal from top left to bottom right.
Process called from left to right and check for Mingo after each call. Return [mingoOccurred, numberOfCalls], where mingoOccurred is a boolean indicating whether Mingo occurred, and numberOfCalls is the number of calls made when the first Mingo occurred.
- Adjacent Transpositions
Given two strings, source and target, containing the same characters with the same frequencies, determine the minimum number of adjacent swaps needed to transform source into target.
Requirements:
- Each swap may exchange only two adjacent characters.
- Assume the transformation is always possible: the strings do contain the same characters with the same frequencies.
Discussion
Loading comments…