Преглед изворни кода

Fix track ordering

Side exercises can only be unlocked by core exercises. Previously we
had exercises being unlocked by both core and side exercises.

Each core exercise should unlock at least one exercise. Previously we
had some core exercises that didn't unlock any side exercises. Now
that's only true of the last core exercise in the track.
Frida Tveit пре 9 година
родитељ
комит
217d000285
1 измењених фајлова са 47 додато и 47 уклоњено
  1. 47
    47
      config.json

+ 47
- 47
config.json Прегледај датотеку

96
       "uuid": "d916e4f8-fda1-41c0-ab24-79e8fc3f1272",
96
       "uuid": "d916e4f8-fda1-41c0-ab24-79e8fc3f1272",
97
       "slug": "raindrops",
97
       "slug": "raindrops",
98
       "core": false,
98
       "core": false,
99
-      "unlocked_by": "two-fer",
99
+      "unlocked_by": "hello-world",
100
       "difficulty": 3,
100
       "difficulty": 3,
101
       "topics": [
101
       "topics": [
102
 
102
 
136
       "uuid": "2f244afc-3e7b-4f89-92af-e2b427f4ef35",
136
       "uuid": "2f244afc-3e7b-4f89-92af-e2b427f4ef35",
137
       "slug": "sum-of-multiples",
137
       "slug": "sum-of-multiples",
138
       "core": false,
138
       "core": false,
139
-      "unlocked_by": "perfect-numbers",
139
+      "unlocked_by": "difference-of-squares",
140
       "difficulty": 4,
140
       "difficulty": 4,
141
       "topics": [
141
       "topics": [
142
 
142
 
176
       "uuid": "b7310b6e-435c-4d5f-b2bd-31e586d0f238",
176
       "uuid": "b7310b6e-435c-4d5f-b2bd-31e586d0f238",
177
       "slug": "largest-series-product",
177
       "slug": "largest-series-product",
178
       "core": false,
178
       "core": false,
179
-      "unlocked_by": "luhn",
179
+      "unlocked_by": "hamming",
180
       "difficulty": 4,
180
       "difficulty": 4,
181
       "topics": [
181
       "topics": [
182
 
182
 
186
       "uuid": "6791d01f-bae4-4b63-ae76-86529ac49e36",
186
       "uuid": "6791d01f-bae4-4b63-ae76-86529ac49e36",
187
       "slug": "sieve",
187
       "slug": "sieve",
188
       "core": false,
188
       "core": false,
189
-      "unlocked_by": "sum-of-multiples",
189
+      "unlocked_by": "difference-of-squares",
190
       "difficulty": 4,
190
       "difficulty": 4,
191
       "topics": [
191
       "topics": [
192
 
192
 
196
       "uuid": "581afdbb-dfb6-4dc5-9554-a025b5469a3c",
196
       "uuid": "581afdbb-dfb6-4dc5-9554-a025b5469a3c",
197
       "slug": "twelve-days",
197
       "slug": "twelve-days",
198
       "core": false,
198
       "core": false,
199
-      "unlocked_by": "raindrops",
199
+      "unlocked_by": "two-fer",
200
       "difficulty": 4,
200
       "difficulty": 4,
201
       "topics": [
201
       "topics": [
202
 
202
 
236
       "uuid": "2c69db99-648d-4bd7-8012-1fbdeff6ca0a",
236
       "uuid": "2c69db99-648d-4bd7-8012-1fbdeff6ca0a",
237
       "slug": "nth-prime",
237
       "slug": "nth-prime",
238
       "core": false,
238
       "core": false,
239
-      "unlocked_by": "collatz-conjecture",
239
+      "unlocked_by": "triangle",
240
       "difficulty": 4,
240
       "difficulty": 4,
241
       "topics": [
241
       "topics": [
242
 
242
 
256
       "uuid": "ecbd997b-86f4-4e11-9ff0-706ac2899415",
256
       "uuid": "ecbd997b-86f4-4e11-9ff0-706ac2899415",
257
       "slug": "diamond",
257
       "slug": "diamond",
258
       "core": false,
258
       "core": false,
259
-      "unlocked_by": "twelve-days",
259
+      "unlocked_by": "two-fer",
260
       "difficulty": 4,
260
       "difficulty": 4,
261
       "topics": [
261
       "topics": [
262
 
262
 
266
       "uuid": "c3e89c7c-3a8a-4ddc-b653-9b0ff9e1d7d8",
266
       "uuid": "c3e89c7c-3a8a-4ddc-b653-9b0ff9e1d7d8",
267
       "slug": "isogram",
267
       "slug": "isogram",
268
       "core": false,
268
       "core": false,
269
-      "unlocked_by": "pangram",
269
+      "unlocked_by": "hello-world",
270
       "difficulty": 4,
270
       "difficulty": 4,
271
       "topics": [
271
       "topics": [
272
 
272
 
286
       "uuid": "38bc80ae-d842-4c04-a797-48edf322504d",
286
       "uuid": "38bc80ae-d842-4c04-a797-48edf322504d",
287
       "slug": "pig-latin",
287
       "slug": "pig-latin",
288
       "core": false,
288
       "core": false,
289
-      "unlocked_by": "rna-transcription",
289
+      "unlocked_by": "hello-world",
290
       "difficulty": 5,
290
       "difficulty": 5,
291
       "topics": [
291
       "topics": [
292
 
292
 
296
       "uuid": "5f9139e7-9fbb-496a-a0d7-a946283033de",
296
       "uuid": "5f9139e7-9fbb-496a-a0d7-a946283033de",
297
       "slug": "phone-number",
297
       "slug": "phone-number",
298
       "core": false,
298
       "core": false,
299
-      "unlocked_by": "largest-series-product",
299
+      "unlocked_by": "hamming",
300
       "difficulty": 5,
300
       "difficulty": 5,
301
       "topics": [
301
       "topics": [
302
 
302
 
306
       "uuid": "2d80fdfc-5bd7-4b67-9fbe-8ab820d89051",
306
       "uuid": "2d80fdfc-5bd7-4b67-9fbe-8ab820d89051",
307
       "slug": "nucleotide-count",
307
       "slug": "nucleotide-count",
308
       "core": false,
308
       "core": false,
309
-      "unlocked_by": "phone-number",
309
+      "unlocked_by": "hamming",
310
       "difficulty": 5,
310
       "difficulty": 5,
311
       "topics": [
311
       "topics": [
312
 
312
 
346
       "uuid": "599c08ec-7338-46ed-99f8-a76f78f724e6",
346
       "uuid": "599c08ec-7338-46ed-99f8-a76f78f724e6",
347
       "slug": "prime-factors",
347
       "slug": "prime-factors",
348
       "core": false,
348
       "core": false,
349
-      "unlocked_by": "nth-prime",
349
+      "unlocked_by": "triangle",
350
       "difficulty": 5,
350
       "difficulty": 5,
351
       "topics": [
351
       "topics": [
352
 
352
 
356
       "uuid": "6a617ddb-04e3-451c-bb30-27ccd0be9125",
356
       "uuid": "6a617ddb-04e3-451c-bb30-27ccd0be9125",
357
       "slug": "allergies",
357
       "slug": "allergies",
358
       "core": false,
358
       "core": false,
359
-      "unlocked_by": "secret-handshake",
359
+      "unlocked_by": "gigasecond",
360
       "difficulty": 5,
360
       "difficulty": 5,
361
       "topics": [
361
       "topics": [
362
 
362
 
366
       "uuid": "34cd328c-cd96-492b-abd4-2b8716cdcd9a",
366
       "uuid": "34cd328c-cd96-492b-abd4-2b8716cdcd9a",
367
       "slug": "bob",
367
       "slug": "bob",
368
       "core": false,
368
       "core": false,
369
-      "unlocked_by": "diamond",
369
+      "unlocked_by": "two-fer",
370
       "difficulty": 5,
370
       "difficulty": 5,
371
       "topics": [
371
       "topics": [
372
 
372
 
376
       "uuid": "d2a76905-1c8c-4b03-b4f7-4fbff19329f3",
376
       "uuid": "d2a76905-1c8c-4b03-b4f7-4fbff19329f3",
377
       "slug": "pascals-triangle",
377
       "slug": "pascals-triangle",
378
       "core": false,
378
       "core": false,
379
-      "unlocked_by": "kindergarten-garden",
379
+      "unlocked_by": "matrix",
380
       "difficulty": 5,
380
       "difficulty": 5,
381
       "topics": [
381
       "topics": [
382
 
382
 
396
       "uuid": "af80d7f4-c7d0-4d0b-9c30-09da120f6bb9",
396
       "uuid": "af80d7f4-c7d0-4d0b-9c30-09da120f6bb9",
397
       "slug": "series",
397
       "slug": "series",
398
       "core": false,
398
       "core": false,
399
-      "unlocked_by": "nucleotide-count",
399
+      "unlocked_by": "hamming",
400
       "difficulty": 5,
400
       "difficulty": 5,
401
       "topics": [
401
       "topics": [
402
 
402
 
406
       "uuid": "d36ce010-210f-4e9a-9d6c-cb933e0a59af",
406
       "uuid": "d36ce010-210f-4e9a-9d6c-cb933e0a59af",
407
       "slug": "atbash-cipher",
407
       "slug": "atbash-cipher",
408
       "core": false,
408
       "core": false,
409
-      "unlocked_by": "run-length-encoding",
409
+      "unlocked_by": "rotational-cipher",
410
       "difficulty": 5,
410
       "difficulty": 5,
411
       "topics": [
411
       "topics": [
412
 
412
 
416
       "uuid": "163fcc6b-c054-4232-a88b-0aded846a6eb",
416
       "uuid": "163fcc6b-c054-4232-a88b-0aded846a6eb",
417
       "slug": "spiral-matrix",
417
       "slug": "spiral-matrix",
418
       "core": false,
418
       "core": false,
419
-      "unlocked_by": "pascals-triangle",
419
+      "unlocked_by": "matrix",
420
       "difficulty": 6,
420
       "difficulty": 6,
421
       "topics": [
421
       "topics": [
422
 
422
 
426
       "uuid": "3e728cd4-5e5f-4c69-8a53-bc36d020fcdb",
426
       "uuid": "3e728cd4-5e5f-4c69-8a53-bc36d020fcdb",
427
       "slug": "roman-numerals",
427
       "slug": "roman-numerals",
428
       "core": false,
428
       "core": false,
429
-      "unlocked_by": "series",
429
+      "unlocked_by": "hamming",
430
       "difficulty": 6,
430
       "difficulty": 6,
431
       "topics": [
431
       "topics": [
432
 
432
 
436
       "uuid": "57b76837-4610-466f-9373-d5c2697625f1",
436
       "uuid": "57b76837-4610-466f-9373-d5c2697625f1",
437
       "slug": "transpose",
437
       "slug": "transpose",
438
       "core": false,
438
       "core": false,
439
-      "unlocked_by": "spiral-matrix",
439
+      "unlocked_by": "matrix",
440
       "difficulty": 6,
440
       "difficulty": 6,
441
       "topics": [
441
       "topics": [
442
 
442
 
446
       "uuid": "6b51aca3-3451-4a64-ad7b-00b151d7548a",
446
       "uuid": "6b51aca3-3451-4a64-ad7b-00b151d7548a",
447
       "slug": "house",
447
       "slug": "house",
448
       "core": false, 
448
       "core": false, 
449
-      "unlocked_by": "bob",
449
+      "unlocked_by": "two-fer",
450
       "difficulty": 6,
450
       "difficulty": 6,
451
       "topics": [
451
       "topics": [
452
 
452
 
456
       "uuid": "dd3e6fd6-5359-4978-acd7-c39374cead4d",
456
       "uuid": "dd3e6fd6-5359-4978-acd7-c39374cead4d",
457
       "slug": "food-chain",
457
       "slug": "food-chain",
458
       "core": false,
458
       "core": false,
459
-      "unlocked_by": "house",
459
+      "unlocked_by": "two-fer",
460
       "difficulty": 6,
460
       "difficulty": 6,
461
       "topics": [
461
       "topics": [
462
 
462
 
466
       "uuid": "56943095-de76-40bf-b42b-fa3e70f8df5e",
466
       "uuid": "56943095-de76-40bf-b42b-fa3e70f8df5e",
467
       "slug": "beer-song",
467
       "slug": "beer-song",
468
       "core": false,
468
       "core": false,
469
-      "unlocked_by": "food-chain",
469
+      "unlocked_by": "two-fer",
470
       "difficulty": 6,
470
       "difficulty": 6,
471
       "topics": [
471
       "topics": [
472
 
472
 
506
       "uuid": "b4af5da1-601f-4b0f-bfb8-4a381851090c",
506
       "uuid": "b4af5da1-601f-4b0f-bfb8-4a381851090c",
507
       "slug": "grade-school",
507
       "slug": "grade-school",
508
       "core": false,
508
       "core": false,
509
-      "unlocked_by": "etl",
509
+      "unlocked_by": "word-count",
510
       "difficulty": 6,
510
       "difficulty": 6,
511
       "topics": [
511
       "topics": [
512
 
512
 
516
       "uuid": "993bde9d-7774-4e7a-a381-9eee75f28ecb",
516
       "uuid": "993bde9d-7774-4e7a-a381-9eee75f28ecb",
517
       "slug": "robot-simulator",
517
       "slug": "robot-simulator",
518
       "core": false,
518
       "core": false,
519
-      "unlocked_by": "allergies",
519
+      "unlocked_by": "secret-handshake",
520
       "difficulty": 6,
520
       "difficulty": 6,
521
       "topics": [
521
       "topics": [
522
 
522
 
536
       "uuid": "416a1489-12af-4593-8540-0f55285c96b4",
536
       "uuid": "416a1489-12af-4593-8540-0f55285c96b4",
537
       "slug": "minesweeper",
537
       "slug": "minesweeper",
538
       "core": false,
538
       "core": false,
539
-      "unlocked_by": "queen-attack",
539
+      "unlocked_by": "scrabble-score",
540
       "difficulty": 6,
540
       "difficulty": 6,
541
       "topics": [
541
       "topics": [
542
 
542
 
546
       "uuid": "3310a3cd-c0cb-45fa-8c51-600178be904a",
546
       "uuid": "3310a3cd-c0cb-45fa-8c51-600178be904a",
547
       "slug": "wordy",
547
       "slug": "wordy",
548
       "core": false,
548
       "core": false,
549
-      "unlocked_by": "robot-simulator",
549
+      "unlocked_by": "secret-handshake",
550
       "difficulty": 6,
550
       "difficulty": 6,
551
       "topics": [
551
       "topics": [
552
 
552
 
556
       "uuid": "f7c2e4b5-1995-4dfe-b827-c9aff8ac5332",
556
       "uuid": "f7c2e4b5-1995-4dfe-b827-c9aff8ac5332",
557
       "slug": "all-your-base",
557
       "slug": "all-your-base",
558
       "core": false,
558
       "core": false,
559
-      "unlocked_by": "sieve",
559
+      "unlocked_by": "saddle-points",
560
       "difficulty": 6,
560
       "difficulty": 6,
561
       "topics": [
561
       "topics": [
562
 
562
 
576
       "uuid": "4b3f7771-c642-4278-a3d9-2fb958f26361",
576
       "uuid": "4b3f7771-c642-4278-a3d9-2fb958f26361",
577
       "slug": "bowling",
577
       "slug": "bowling",
578
       "core": false,
578
       "core": false,
579
-      "unlocked_by": "minesweeper",
579
+      "unlocked_by": "scrabble-score",
580
       "difficulty": 6,
580
       "difficulty": 6,
581
       "topics": [
581
       "topics": [
582
 
582
 
586
       "uuid": "fb10dc2f-0ba1-44b6-8365-5e48e86d1283",
586
       "uuid": "fb10dc2f-0ba1-44b6-8365-5e48e86d1283",
587
       "slug": "anagram",
587
       "slug": "anagram",
588
       "core": false,
588
       "core": false,
589
-      "unlocked_by": "isogram",
589
+      "unlocked_by": "hello-world",
590
       "difficulty": 7,
590
       "difficulty": 7,
591
       "topics": [
591
       "topics": [
592
 
592
 
606
       "uuid": "b53bde52-cb5f-4d43-86ec-18aa509d62f9",
606
       "uuid": "b53bde52-cb5f-4d43-86ec-18aa509d62f9",
607
       "slug": "word-search",
607
       "slug": "word-search",
608
       "core": false,
608
       "core": false,
609
-      "unlocked_by": "bowling",
609
+      "unlocked_by": "scrabble-score",
610
       "difficulty": 7,
610
       "difficulty": 7,
611
       "topics": [
611
       "topics": [
612
 
612
 
616
       "uuid": "e3e5ffe5-cfc1-467e-a28a-da0302130144",
616
       "uuid": "e3e5ffe5-cfc1-467e-a28a-da0302130144",
617
       "slug": "simple-linked-list",
617
       "slug": "simple-linked-list",
618
       "core": false,
618
       "core": false,
619
-      "unlocked_by": "sublist",
619
+      "unlocked_by": "linked-list",
620
       "difficulty": 7,
620
       "difficulty": 7,
621
       "topics": [
621
       "topics": [
622
 
622
 
646
       "uuid": "162bebdc-9bf2-43c0-8460-a91f5fc16147",
646
       "uuid": "162bebdc-9bf2-43c0-8460-a91f5fc16147",
647
       "slug": "crypto-square",
647
       "slug": "crypto-square",
648
       "core": false,
648
       "core": false,
649
-      "unlocked_by": "atbash-cipher",
649
+      "unlocked_by": "rotational-cipher",
650
       "difficulty": 7,
650
       "difficulty": 7,
651
       "topics": [
651
       "topics": [
652
 
652
 
656
       "uuid": "57eeac00-741c-4843-907a-51f0ac5ea4cb",
656
       "uuid": "57eeac00-741c-4843-907a-51f0ac5ea4cb",
657
       "slug": "poker",
657
       "slug": "poker",
658
       "core": false,
658
       "core": false,
659
-      "unlocked_by": "word-search",
659
+      "unlocked_by": "scrabble-score",
660
       "difficulty": 7,
660
       "difficulty": 7,
661
       "topics": [
661
       "topics": [
662
         "Parsing",
662
         "Parsing",
668
       "uuid": "97c8fcd4-85b6-41cb-9de2-b4e1b4951222",
668
       "uuid": "97c8fcd4-85b6-41cb-9de2-b4e1b4951222",
669
       "slug": "clock",
669
       "slug": "clock",
670
       "core": false,
670
       "core": false,
671
-      "unlocked_by": "all-your-base",
671
+      "unlocked_by": "saddle-points",
672
       "difficulty": 7,
672
       "difficulty": 7,
673
       "topics": [
673
       "topics": [
674
 
674
 
678
       "uuid": "5cbc6a67-3a53-4aad-ae68-ff469525437f",
678
       "uuid": "5cbc6a67-3a53-4aad-ae68-ff469525437f",
679
       "slug": "ocr-numbers",
679
       "slug": "ocr-numbers",
680
       "core": false,
680
       "core": false,
681
-      "unlocked_by": "roman-numerals",
681
+      "unlocked_by": "robot-name",
682
       "difficulty": 8,
682
       "difficulty": 8,
683
       "topics": [
683
       "topics": [
684
 
684
 
688
       "uuid": "626dc25a-062c-4053-a8c1-788e4dc44ca0",
688
       "uuid": "626dc25a-062c-4053-a8c1-788e4dc44ca0",
689
       "slug": "circular-buffer",
689
       "slug": "circular-buffer",
690
       "core": false,
690
       "core": false,
691
-      "unlocked_by": "simple-linked-list",
691
+      "unlocked_by": "linked-list",
692
       "difficulty": 8,
692
       "difficulty": 8,
693
       "topics": [
693
       "topics": [
694
         "Queues",
694
         "Queues",
700
       "uuid": "64cda115-919a-4eef-9a45-9ec5d1af98cc",
700
       "uuid": "64cda115-919a-4eef-9a45-9ec5d1af98cc",
701
       "slug": "rectangles",
701
       "slug": "rectangles",
702
       "core": false,
702
       "core": false,
703
-      "unlocked_by": "ocr-numbers",
703
+      "unlocked_by": "robot-name",
704
       "difficulty": 8,
704
       "difficulty": 8,
705
       "topics": [
705
       "topics": [
706
 
706
 
710
       "uuid": "e5f05d00-fe5b-4d78-b2fa-934c1c9afb32",
710
       "uuid": "e5f05d00-fe5b-4d78-b2fa-934c1c9afb32",
711
       "slug": "book-store",
711
       "slug": "book-store",
712
       "core": false,
712
       "core": false,
713
-      "unlocked_by": "bracket-push",
713
+      "unlocked_by": "flatten-array",
714
       "difficulty": 8,
714
       "difficulty": 8,
715
       "topics": [
715
       "topics": [
716
 
716
 
720
       "uuid": "f654831f-c34b-44f5-9dd5-054efbb486f2",
720
       "uuid": "f654831f-c34b-44f5-9dd5-054efbb486f2",
721
       "slug": "simple-cipher",
721
       "slug": "simple-cipher",
722
       "core": false,
722
       "core": false,
723
-      "unlocked_by": "crypto-square",
723
+      "unlocked_by": "rotational-cipher",
724
       "difficulty": 8,
724
       "difficulty": 8,
725
       "topics": [
725
       "topics": [
726
 
726
 
730
       "uuid": "52d11278-0d65-4b5b-b387-1374fced3243",
730
       "uuid": "52d11278-0d65-4b5b-b387-1374fced3243",
731
       "slug": "complex-numbers",
731
       "slug": "complex-numbers",
732
       "core": false,
732
       "core": false,
733
-      "unlocked_by": "prime-factors",
733
+      "unlocked_by": "triangle",
734
       "difficulty": 8,
734
       "difficulty": 8,
735
       "topics": [
735
       "topics": [
736
 
736
 
740
       "uuid": "a9836565-5c39-4285-b83a-53408be36ccc",
740
       "uuid": "a9836565-5c39-4285-b83a-53408be36ccc",
741
       "slug": "list-ops",
741
       "slug": "list-ops",
742
       "core": false,
742
       "core": false,
743
-      "unlocked_by": "circular-buffer",
743
+      "unlocked_by": "linked-list",
744
       "difficulty": 8,
744
       "difficulty": 8,
745
       "topics": [
745
       "topics": [
746
 
746
 
750
       "uuid": "bac1f4bc-eea9-43c1-8e95-097347f5925e",
750
       "uuid": "bac1f4bc-eea9-43c1-8e95-097347f5925e",
751
       "slug": "change",
751
       "slug": "change",
752
       "core": false,
752
       "core": false,
753
-      "unlocked_by": "book-store",
753
+      "unlocked_by": "flatten-array",
754
       "difficulty": 8,
754
       "difficulty": 8,
755
       "topics": [
755
       "topics": [
756
 
756
 
760
       "uuid": "873c05de-b5f5-4c5b-97f0-d1ede8a82832",
760
       "uuid": "873c05de-b5f5-4c5b-97f0-d1ede8a82832",
761
       "slug": "palindrome-products",
761
       "slug": "palindrome-products",
762
       "core": false,
762
       "core": false,
763
-      "unlocked_by": "clock",
763
+      "unlocked_by": "saddle-points",
764
       "difficulty": 8,
764
       "difficulty": 8,
765
       "topics": [
765
       "topics": [
766
 
766
 
770
       "uuid": "88505f95-89e5-4a08-8ed2-208eb818cdf1",
770
       "uuid": "88505f95-89e5-4a08-8ed2-208eb818cdf1",
771
       "slug": "pythagorean-triplet",
771
       "slug": "pythagorean-triplet",
772
       "core": false,
772
       "core": false,
773
-      "unlocked_by": "complex-numbers",
773
+      "unlocked_by": "triangle",
774
       "difficulty": 9,
774
       "difficulty": 9,
775
       "topics": [
775
       "topics": [
776
 
776
 
780
       "uuid": "f0c0316d-3fb5-455e-952a-91161e7fb298",
780
       "uuid": "f0c0316d-3fb5-455e-952a-91161e7fb298",
781
       "slug": "forth",
781
       "slug": "forth",
782
       "core": false,
782
       "core": false,
783
-      "unlocked_by": "wordy",
783
+      "unlocked_by": "secret-handshake",
784
       "difficulty": 9,
784
       "difficulty": 9,
785
       "topics": [
785
       "topics": [
786
 
786
 
790
       "uuid": "377fe38b-08ad-4f3a-8118-a43c10f7b9b2",
790
       "uuid": "377fe38b-08ad-4f3a-8118-a43c10f7b9b2",
791
       "slug": "custom-set",
791
       "slug": "custom-set",
792
       "core": false,
792
       "core": false,
793
-      "unlocked_by": "list-ops",
793
+      "unlocked_by": "linked-list",
794
       "difficulty": 10,
794
       "difficulty": 10,
795
       "topics": [
795
       "topics": [
796
 
796