Skip to content

Commit

Permalink
Modify readme wording
Browse files Browse the repository at this point in the history
Updated the wording in the readmer for the divide and conquer section.
  • Loading branch information
mybrainishuge committed Dec 4, 2016
1 parent 464fef8 commit 0728582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Is it a true definition? Mostly. Recursion is when a function calls itself. A re
- A **`base`** case
- A **`recursive`** case

_What does this all mean? Let's consider a silly example:_
_What does this all mean?_ Let's consider a silly example:
```sh
function stepsToZero(n) {
if (n === 0) { // base case
Expand Down Expand Up @@ -83,6 +83,6 @@ Recursion isn't unique to any one programming language. As a software engineer,
### Divide and Conquer
Recursion is often used in _divide and conquer_ algorithms where problems can be divided into similar subproblems and conquered individually. Think about traversing a tree. Each branch may have its own "children" branches. Since a child branch is just another branch, then we can recurse on each child. In other words, a tree is essentially made of many smaller trees.
Recursion is often used in _divide and conquer_ algorithms where problems can be divided into similar subproblems and conquered individually. Consider traversing a tree structure. Each branch may have its own "children" branches. And every branch is essentually just another tree which means, as long as child trees are found, we can recurse on each child.
[inception]: <https://en.wikipedia.org/wiki/Inception>

0 comments on commit 0728582

Please sign in to comment.