See setup instructions, in the Code 301 Setup Guide.
Under the javascript folder, at the top level, is a sub-folder called code-challenges
run npm install from within this folder to setup your system to be able to run tests using Jest
To run your tests
- Change to the
javascriptfolder - run
npm testto run all of the tests - run
npm test ##to only run tests for challenge ## (i.e. 01)
- Please follow the instructions specific to your 401 language, which can be found in the directory below, matching your course.
| Javascript Code Challenges | Links |
|---|---|
| 1- Code challenge 1 reverse Array | link |
| 2- Code challenge 2 array insert shift | link |
| 3- Code challenge 3 binary search | link |
| 4- Code challenge 4 sums of rows in a matrix | link |
| 5- Code challenge 5 Linked List | link |
| 6- Code challenge 6 linked list insertions | link |
| 7- Code challenge 7 linked list kth | link |
| 8- Code challenge 8 Zipped Linked Lists | link |
| 9- Code challenge 9 reverse Linked List | link |
| 10- Code challenge 10 Stack And Queue | link |
| 11- Code challenge 11 Implement a Queue using two Stacks | link |
| 12- Code challenge 12 Stack Queue Animal Shelter | link |
| 13- Code challenge 13 Stack Queue Brackets | link |
| 14- Code challenge 14 Max Stack | link |
| 15- Code challenge 15 Binary Search Tree | link |
| 16- Code challenge 16 Max in Binary Tree | link |
| 17- Code challenge 17 Breadth-first Traversal | link |
| 18- Code challenge 18 Tree Fizz-Buzz | link |
| 19- Code challenge 19 Sum of odd numbers in binary search tree | link |
| 20- Code challenge 26 Sorting & Insertion | link |
| 21- Code challenge 27 Merge Sort | link |
| 22- Code challenge 28 Sorting: Comparisons | link |
| 23- Code challenge 29 Insertion Sort | link |
| 24- Code challenge 30 Hash Table | link |
| 25- Code challenge 31 Hashmap Repeated Word | link |
| 26- Code challenge 32 Tree Intersection | link |
| 27- Code challenge 33 Join Hash Maps | link |
| 28- Code challenge 34 Hash Table count Words | link |
| 29- Code challenge 35 Graphs | link |
| 30- Code challenge 36 Graphs Breadth First | link |
| 31- Code challenge 37 Graphs Business Trip | link |
| 32- Code challenge 38 Graph Depth First | link |
| 33- Code challenge 39 Graph Adjacency list | link |
| 34- Code challenge 41 Linked List ( Navigator ) | link |
| 35- Code challenge 42 Sanitized Url | link |
| 36- Code challenge 43 Converting years to Roman Numerals | link |