DataStructures-and-Algorithms

Data Structures

Code Challenges are taken out of order in CodeFellows. First five have no code, and Implementation of Data Structures don’t aren’t required a whiteboard.

Each Challenge will have full description. The Data Structure order is Arrays, Linked List, Hashmap, Binary tree, Binary Search Tree, K-ary tree, Stacks, Queues.

Table of Contents


</tr>
challenge 1 challenge 2 challenge 3 challenge 4 challenge 5 challenge 6 challenge 7 challenge 8
Interview 9 challenge 10 challenge 11 challenge 12 challenge 13 challenge 14 challenge 15 challenge 16
challenge 17 challenge 18 challenge 19 challenge 26 challenge 27 challenge 28 Interview 29a Interview 29b
challenge 30 challenge 31 challenge 32 challenge 33 challenge 34 challenge 35 challenge 36 challenge 37
challenge 39 challenge 41 challenge 44 challenge 42 challenge 43

Code Challenges

Challenge 01

Reverse an Array

Whiteboard Process

Approach & Efficiency

Challenge 02

Insert and Shift Array

Approach & Efficiency

Challenge 03

Approach & Efficiency

Challenge 04

Approach & Efficiency

Challenge 05

Approach & Efficiency

this insert adds to the beginning of the list: Time O(1), Space O(1).

Includes method checks the list : Time O(N), Space O(1)

API

Challenge 6

Singly Linked List - appends, insertBefore, insertAfter

Approach & Efficiency

API

Challenge 7

Challenge Summary

Whiteboard Process

No white board needed for process on today’s lab. it seemed straight forward. especially iteratively.

Approach & Efficiency

I solved it just subtracting the length - k and the time complexity is O(n) space O(1)

Full Description

Solution

running libraryTest will run tests. or create a static main and call the function in main.

Challenge Summary - 08

Approach & Efficiency

Challenge 09

Challenge Summary

Challenge 10

Stacks and Queues - 10

Approach & Efficiency

Challenge Summary - 11

Challenge 12

Challenge Summary - 12

Code Challenge 13

Challenge Summary

Code Challenge 14

Challenge Summary

Code Challenge 15

Challenge Summary - 15

Code Challenge 16

Challenge Summary

Approach & Efficiency

Code Challenge 17

Challenge Summary

Approach & Efficiency

Contributors

Code Challenge 18

Challenge Summary

Approach & Efficiency

Code Challenge 19

Challenge Summary

Approach & Efficiency

Code Challenge 26 - Insertion Sort

Challenge Summary

Approach & Efficiency

Code Challenge 27 - Merge Sort

Challenge Summary

Approach & Efficiency

Code Challenge 28 - Quick Sort

Challenge Summary

Code Challenge 29

Challenge Summary

Challenge Challenge 30 - Hashtables Abstract Data Type

Challenge Summary

Whiteboarding

Whiteboarding

Coded Algorthm Test Algorthm

Approach & Efficiency

API

Code Challenge 31

Challenge Summary

Code Challenge 32

Challenge Summary

Code Challenge 33

Challenge Summary

Code Challenge 34

Challenge Summary

Code Challenge 35

Challenge Summary

Code Challenge 36

Challenge Summary

Code Challenge 37

Challenge Summary

Code Challenge 39

Challenge Summary

Code Challenge 41

Challenge Summary

Code Challenge 42

Challenge Summary

Code Challenge 43

Challenge Summary

Code Challenge 44

Challenge Summary