This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2018 Pierantonio Cangianiello | |
* | |
* MIT License | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// iterate through tree using geneartors !/// | |
/// setup /// | |
class Comment { | |
constructor(content, children) { | |
this.content = content; | |
this.children = children; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Binary Search Tree */ | |
class Node { | |
constructor(data, left = null, right = null) { | |
this.data = data; | |
this.left = left; | |
this.right = right; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Capstone Product Plan | |
The second deliverable for the capstone is your product plan. | |
## Product Plan Components | |
1. __Personal Learning Goals__: A list outlining the major things that you want to focus on learning in this project. | |
1. __Problem Statement__: A clear, concise statement describing the problem your project will solve. Re-use the problem statement from the concept write-up or update if you've made adjustments. | |
1. __Market Research__: Outline the key insights from your research, including: | |
- your application’s competition - what alternatives are already out there (competing apps and/or non-app solutions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// functions are values | |
// here is a function in its natural habitat: | |
function triple(x) { | |
return x * 3 ; | |
} | |
// what this does is create an anonimous function and assign it a value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def compress(string) | |
result = "" | |
num_repeated = 1 | |
current = nil | |
return "" if string.nil? || string.empty? | |
string.length.times do |i| | |
letter = string[i] |