-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquestions.js
254 lines (251 loc) · 17.3 KB
/
questions.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
const questions = [
{
title: `An Unexpected Party`,
description: `In a hole in the ground, there lived a hobbit. It was no ordinary hole, no. It was a hole of a hobbit, which meant all pleasures and services of a home. The hobbits were known to live in peace and comfort of home and be away from all things that are deemed dangerous. This hobbit, however, was meant to have an adventure.
One day, an old wizard came by and asked our hobbit, bilbo to take part in a journey, led by company of Thorin Oakenshield. Bilbo shut the door right there in his face. But in the night, when Bilbo was getting ready for the supper, He heard a sound on the door.
Whoever that was, knocked on the door in a secret language, find out what he said. We, however, know that this language was used in communication in the old days.
.- - / -.-- --- ..- .-. / ... . .-. ...- .. -.-. .`,
category: `0`,
score: 100,
answer: `AT YOUR SERVICE`,
hint: `Morse code`,
puzzle: "",
puzzleAns: ``,
},
{
title: `A Trio of Trolls`,
description: `Bilbo agreed to go with the dwarves after thinking about his boring life. They stopped for rest in a forest. Their horses got stolen by a trio of trolls while they were talking. Fili and Kili challenged Bilbo to steal the ponies back from the trolls and do his duty as the burglar of the team. Having no professional experience as burglar, he was easily caught by the trolls. The dwarf company came to save him but were captured when the trolls held up Bilbo and threatened to snap him if they didn’t surrender.
Now trolls were preparing to eat all of them while talking in a strange language and seemed worried about something. All dwarves were busy cursing and crying while Bilbo listened to the troll conversation carefully. He caught some words, “ZH ZLOO WUXQ LQWR VWRQH”. Bilbo must decipher these to really know what they were so scared about to take advantage.`,
category: `0`,
score: 150,
answer: `WE WILL TURN INTO STONE`,
hint: `There were "Three" trolls.`,
puzzle: `A palindrome date is one which reads same from both ends. Given the date in MM/DD/YYYY format, What will be the next palindrome date after 10/31/1310 ?`,
puzzleAns: `10/02/2001`,
},
{
title: `To the misty mountains`,
description: `Bilbo wisely kept the trolls engaged till morning when they turned to stone. They marched towards Rivendell guided by Gandalf. Upon reaching they were welcome by King Elrond and he offered help in the quest. There was some hidden text in the map that they needed to read. They were Moon Runes whose knowledge only the ancient King Elrond had. Upon reading the moon runes a prophecy came forth which he read out for all to hear,
“In the dark dusty place where IPV4 ended,
RGB could not go further, and hex descended.
In a country so cold where they played Roulette,
A day was born representing the Octet.”
Bilbo must now find out which day is the one being talked about in the prophecy because only on that day they could enter The Lonely Mountain.`,
category: `0`,
score: 200,
answer: `PROGRAMMERS DAY`,
hint: `The first number, that is not reachable with 8 bit, what if it was a day celebrated in a cold country.`,
puzzle: ``,
puzzleAns: ``,
},
{
title: `Riddles in the Dark`,
description: `While crossing The Misty Mountains, the goblins attacked and captured the whole company. They fought bravely, but were outnumbered, but bilbo, due to his size, was able to stay hidden. An hour passed and Bilbo got lost in the goblin caves. He walked silently in the caves, to find the way out.
“Bless us and splash us precious, that’s a meaty mouthful”, he heard.
It was Gollum, a creature from the old days, and bearer of the one ring. In the dark, Bilbo stole it from him, when it accidently fell out of Gollum’s pocket. They agreed to play a game of riddles. If Bilbo wins, Gollum will escort him out. If Gollum wins, He can eat Bilbo. Gollum went first, but he jumbled the words :
Off, high, mighty eighty
and so so the
On ladder expeditions to
of binary store up
era the not duo
the climbed could the
In One They Raising
Now Bilbo got confused because he can answer a riddle but the jumbling of words, he is facing the first time.`,
category: `0`,
score: 250,
answer: `YOTTABYTE`,
hint: `Consider it a matrix, and matrix can be manipulated.`,
puzzle: `A truck has 4 tyres and 1 spare tyre, each tire can go 20000 Km before wearing off. What is the maximum distance the car can travel before one must but a new tyre. The tyres can be switched any number of times.`,
puzzleAns: `25000`,
},
{
title: `Flies and Spider`,
description: `Freed from the goblins, dwarves continued their path to the forest of Mirkwood, infamous for illusions and nasty creatures. In that big forest, they got lost. The river was poisonous, and there was nothing to eat. Their throats were dry, and They were walking for hours, but they suddenly got ambushed, by, Spiders. Bilbo, as usual, creeped up and stayed hidden. This time, he wore the ring, and he could hear the spiders. Spiders were only saying one word, ISWUDKPVSI, and following their queen Fairplay. It did not make any sense, because it was encrypted. To break the encryption, they needed the key. If only he knew, Key was the thing they were craving for in this forest for hours.
ISWUDKPVSI
Key – WATER`,
category: `0`,
score: 300,
answer: `MOUNTDOOM`,
hint: `The queen decides what encryption should spiders use.`,
puzzle: `A four digit number is formed using digits 2, 4, 6, 8 without repeating any one of them. What is the sum of all such possible numbers.`,
puzzleAns: `133320`,
},
{
title: `Barrels out of Bonds`,
description: `After getting out of the grip of spiders with the help of the Ring, Thorin and company were on their way again. Little did they know that Mirkwood was also home to an ancient dynasty of elves, Wood Elves. They were not fond of dwarves and the feeling was mutual. Dwarves were captured and were taken to the woodland king’s cells. Since Bilbo was still wearing the ring elves could not see him.
He soon figured out a rescue plan. The barrels of wine were transported by a river to and from the Laketown, who were in trade with Elves. Barrels were kept on a platform, which, after putting a specific combo of barrels, would tilt downwards and load onto a barge. All the barrels had a character written on them, and only a specific permutation would tilt it downwards.
#AT# CRT##ON#NSIP#GNMPK##ENR#T FP#ROMPLO### WOOPS##DLAMM##ND REX#ALM
He needed to find the correct combination of characters and then after loading all the dwarves into barrels they could get out of the woodland realm.`,
category: `0`,
score: 400,
answer: `A CONSIGNMENT FROM WOODLAND REALM`,
hint: `Some special kinds of barrels are not suited for travel. They get destroyed and destroy the barrel to their left.`,
puzzle: `What is the sum of unit digits of first 50 fibonacci numbers. Consider the first and second number of the fibonacci sequence to be 3 & 5 respectively.`,
puzzleAns: `250`,
},
{
title: `The DESolation of Smaug`,
description: `They got into Laketown with the help from a bargeman. After striking a deal with the Master of Laketown they reached the door of the Lonely Mountain, the last of the ancient dwarven kingdom of Middle Earth. Inside was a Dragon waiting for them. That’s why Bilbo was in the company. He was meant to find Arkenstone, The King’s Jewel, which will give Thorin the right to rule. They wished him luck and he went inside to steal from the greedy firedrake Smaug. Enraged by such daring move from a little hobbit Smaug uttered
6Cf4lsacGxpG59X67kjquUdI/lfwJQhv
Dragons communicate in Dragon Encryption Symbol language and to keep himself alive Bilbo must use his cryptographic skills to decode and understand Smaug. Remember, the key to understand the language is understanding what a dragon really is.
KEY – FIREDRAKE`,
category: `0`,
score: 500,
answer: `I AM FIRE I AM DEATH`,
hint: `Key is Another name for dragon, but watch out in which language.`,
puzzle: `What is the 1234th prime number, consider 2 to be the first prime number.`,
puzzleAns: `10061`,
},
{
title: `The Battle of the Four Armies`,
description: `The dragon flew, high in the sky, promising to turn the Laketown to ashes. But he was slayed by a man, our very own bargeman, Bard. Bard, after losing the whole Laketown, marched to the mountain seeking fair settlement with the dwarves.
The news of the fall of Smaug soon spread out into the world. Everybody knew that the vast wealth of the mountain is there without a guard. Woodland King also lead an army of elves to march on the mountain, to seek out what he considered his family heirloom.
The news also reached The Goblin Mountains. The Goblin King was very pissed at the dwarves and thus he also prepared an assault on the mountain.
The next morning, Thorin saw an army of elves and Men on his doorstep. He sent a message to his cousin, Dain of the Iron hills. The message was hashed with one of the most popular and classic algorithms. The raven could only carry 4 letters at a time. Dain read the hashed message, but he could not figure it out.
If Dain does not read the message, Thorin would be defeated the hand of elves, men and goblins, and dwarves would lose their mountain.
Message: 7d51b7dbf2d49c1e9535a70cc7c66de2`,
category: `0`,
score: 600,
answer: `MEGD`,
hint: `4 Letter key can be destroyed with programming power.
(Small enough to be brute forced)`,
puzzle: `What will be the sum of product of elements of last row of all possible 3X3 magic squares.`,
puzzleAns: `600`,
},
{
title: `The Dusk of Durin’s Line`,
description: `Dain came, and the battleground was ready. On one side, there were Elves and Men, ready to Fight on, the other side were Dwarves. Both were prepared to charge, the suddenly, Goblins appeared, and rallied on the mountains, with a huge army. Seeing these, dwarves and Elves made allies and fought the goblins, they all had a separate goal before, but now, they were fighting together for the sake of good, so that evil could not endure
Thorin Oakenshield joined the battle and led the dwarves. Legolas, the son of Elf King, rallied the Elves, and Bard, gathered the courage of Men, and all were fighting against the largest army in the middle earth. Dwarves were heavily outnumbered, so Thorin, now their King, decided to take out the head of the snake, and went to the top of hill, where goblin king was commanding his army.
Goblins were defeated, but at a great cost. Many lives were spent. The Elven king asked Bilbo and company to get the count of exact lives lost of Men, Goblin, Elves, Dwarves and Others. Parchment paper fell short to contain the causalities, so Gandalf suggested a classical Text compression Method, getting the idea from seeing an Old Cedar Tree.
Bilbo compressed the count and result was a binary string. He took it to the King. Now king needed their exact order, so some would get proper funeral, but bilbo forgot the order. Although He knew that he discovered 3 Men, 5 Goblins, 6 Others, 4 Dwarves and 2 Elves.
Result was:
111011110011010010100100011111010001000010111`,
category: `0`,
score: 700,
answer: `OGOOMGGDDMEOOGGMEDDO`,
hint: `Its a tree, Huffman Tree.`,
puzzle: `Which is the largest palindromic number the can be formed by the product of 3 two-digit numbers.`,
puzzleAns: `828828`,
},
{
title: `The Return to The Shire`,
description: `After The Battle Ended, the hobbit returned home. But after being gone for a year or so, The Shire folk thought he was dead, and started to auction off all the stuff. Bilbo fought them off, but they shut the front door and locked it. The Auctioneers had run off with the key. Without the key, encryption couldn’t be reversed. One of the bidders told, “Hey, Mr. Bilbo, I bid for the house. They told me the key was a 4 letter PIN that anyone can easily remember, and they’ll let me in as soon as Bidding finishes, but now that you’re here, I won’t get the house anymore. “
The Lock was this, can you decrypt it, Bilbo does not know which language this is, but format might narrow the search down.
Ax0trUndl5tIIV7dECaiKg==`,
category: `0`,
score: 800,
answer: `SUPERUSERR`,
hint: `What is the year that anyone can easily remember, that’s right, current year. But the hard part is figuring out the encryption algorithm. The == should give a start.`,
puzzle: `We need to find from which story in a 1000 story building is it safe to drop eggs. Given 3 eggs, using the optimal strategy, minimum how many throws are needed to be sure of the critical floor.
An egg that survives can be used again for the trial
A broken egg is discarded
If an egg breaks from ith floor, it will break for all floors > i
If an egg does not break from ith floor, it will not break from all floors < i`,
puzzleAns: `9`,
},
];
module.exports = questions;
// {
// title: `Question 2`,
// description:
// "The Ciphertext for the Plaintext 01110010, given that the keys K1 is 10100100 and K2 is 01000011 is?",
// category: `0`,
// score: 150,
// answer: `01110111`,
// hint: `01110111`,
// puzzle:
// "A car has 4 tyres and 1 spare tyre. Each tyre can travel a maximum distance of 20000 miles before wearing off. What is the maximum distance the car can travel before you are forced to buy a new tyre? You are allowed to change tyres (using the spare tyre) an unlimited number of times.",
// puzzleAns: `25000`,
// },
// {
// title: `Question 3`,
// description: "Divide (HAPPY)26 by (SAD)26. We get quotient?",
// category: `0`,
// score: 150,
// answer: `MLP`,
// hint: `MLP`,
// puzzle: "",
// puzzleAns: ``,
// },
// {
// title: `Question 4`,
// description: "MARS, Blowfish, RC6, Rijndael and Serpent",
// category: `0`,
// score: 200,
// answer: `MARS`,
// hint: `MARS`,
// puzzle:
// "In year 2001 on October 2, 2001, the date in MMDDYYYY format was a palindrome (same forwards as backwards), 10/02/2001 -> “10022001” When was the last palindrome date before 10/02/2001?",
// puzzleAns: `08/31/1380`,
// },
// {
// title: `Question 5`,
// description:
// "TFor p = 11 and q = 19 and choose e=17. Apply RSA algorithm where message=5 and find the cipher text. C = ?",
// category: `0`,
// score: 200,
// answer: `80`,
// hint: `80`,
// puzzle:
// "A car has 4 tyres and 1 spare tyre. Each tyre can travel a maximum distance of 20000 miles before wearing off. What is the maximum distance the car can travel before you are forced to buy a new tyre? You are allowed to change tyres (using the spare tyre) an unlimited number of times.",
// puzzleAns: `25000`,
// },
// //---------------Repeat--------------------
// {
// title: `Question 6`,
// description:
// "Use Caesar’s Cipher to decipher the following HQFUBSWHG WHAW ",
// category: `0`,
// score: 200,
// answer: `ENCRYPTED TEXT`,
// hint: `ENCRYPTED TEXT`,
// puzzle:
// "A car has 4 tyres and 1 spare tyre. Each tyre can travel a maximum distance of 20000 miles before wearing off. What is the maximum distance the car can travel before you are forced to buy a new tyre? You are allowed to change tyres (using the spare tyre) an unlimited number of times.",
// puzzleAns: `25000`,
// },
// {
// title: `Question 7`,
// description:
// "The Ciphertext for the Plaintext 01110010, given that the keys K1 is 10100100 and K2 is 01000011 is?",
// category: `0`,
// score: 300,
// answer: `01110111`,
// hint: `01110111`,
// puzzle:
// "A car has 4 tyres and 1 spare tyre. Each tyre can travel a maximum distance of 20000 miles before wearing off. What is the maximum distance the car can travel before you are forced to buy a new tyre? You are allowed to change tyres (using the spare tyre) an unlimited number of times.",
// puzzleAns: `25000`,
// },
// {
// title: `Question 8`,
// description: "Divide (HAPPY)26 by (SAD)26. We get quotient?",
// category: `0`,
// score: 300,
// answer: `MLP`,
// hint: `MLP`,
// puzzle:
// "In year 2001 on October 2, 2001, the date in MMDDYYYY format was a palindrome (same forwards as backwards), 10/02/2001 -> “10022001” When was the last palindrome date before 10/02/2001?",
// puzzleAns: `08/31/1380`,
// },
// {
// title: `Question 9`,
// description: "MARS, Blowfish, RC6, Rijndael and Serpent",
// category: `0`,
// score: 350,
// answer: `MARS`,
// hint: `MARS`,
// puzzle:
// "In year 2001 on October 2, 2001, the date in MMDDYYYY format was a palindrome (same forwards as backwards), 10/02/2001 -> “10022001” When was the last palindrome date before 10/02/2001?",
// puzzleAns: `08/31/1380`,
// },
// {
// title: `Question 10`,
// description:
// "TFor p = 11 and q = 19 and choose e=17. Apply RSA algorithm where message=5 and find the cipher text. C = ?",
// category: `0`,
// score: 400,
// answer: `80`,
// hint: `80`,
// puzzle:
// "A car has 4 tyres and 1 spare tyre. Each tyre can travel a maximum distance of 20000 miles before wearing off. What is the maximum distance the car can travel before you are forced to buy a new tyre? You are allowed to change tyres (using the spare tyre) an unlimited number of times.",
// puzzleAns: `25000`,
// },