You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A shipment of emergency supplies has arrived, but there's a problem.
4
+
To protect from damage, the items — flashlights, first-aid kits, blankets — are packed inside boxes, and some of those boxes are nested several layers deep inside other boxes!
5
+
6
+
To be prepared for an emergency, everything must be easily accessible in one box.
7
+
Can you unpack all the supplies and place them into a single box, so they're ready when needed most?
At the Global Verification Authority, you've just been entrusted with a critical assignment.
4
+
Across the city, from online purchases to secure logins, countless operations rely on the accuracy of numerical identifiers like credit card numbers, bank account numbers, transaction codes, and tracking IDs.
5
+
The Luhn algorithm is a simple checksum formula used to help identify mistyped numbers.
6
+
7
+
A batch of identifiers has just arrived on your desk.
8
+
All of them must pass the Luhn test to ensure they're legitimate.
9
+
If any fail, they'll be flagged as invalid, preventing mistakes such as incorrect transactions or failed account verifications.
10
+
11
+
Can you ensure this is done right? The integrity of many services depends on you.
There are 64 codons which in turn correspond to 20 amino acids; however, all of the codon sequences and resulting amino acids are not important in this exercise.
15
-
If it works for one codon, the program should work for all of them.
16
-
However, feel free to expand the list in the test suite to include them all.
17
-
18
-
There are also three terminating codons (also known as 'STOP' codons); if any of these codons are encountered (by the ribosome), all translation ends and the protein is terminated.
19
-
20
-
All subsequent codons after are ignored, like this:
0 commit comments