data-structures-and-algorithms

data-structures-and-algorithms

View on GitHub

Data Structures and Algorithms

Language: Python


| Challenges | links | | ———– | ——————– | | array-reverse | link | | array-insert-shift | link | | array-binary-search | link | | linked_list | link | | linked_list_kth | link | | linked_list_insertions | link | | stacks_and_queues | link | | linked_list_zip | link | | stack_queue_pseudo | link | | stack_queue_animal_shelter | link | | stack_queue_brackets | link | | trees | link | | max_tree | link | | tree_bsf | link | | tree_fizz_buzz | link | | Insertion_Sort | link | ___

Folder and Challenge Setup

Each type of code challenge has slightly different instructions. Please refer to the notes and examples below for instructions for each DS&A assignment type.

Data Structure: New Implementation

```python class LinkedList: def init(self): # … initialization code

  def method_name(self):
    # method body
```

Data Structure: Extending an implementation

Code Challenge / Algorithm

Code challenges should be completed within a folder named code_challenges under the python level

Running Tests

If you setup your folders according to the above guidelines, running tests becomes a matter of deciding which tests you want to execute. Jest does a good job at finding the test files that match what you specify in the test command

From the root of the data-structures-and-algorithms/python folder, execute the following commands: