Skip to content

Commit

Permalink
README.md for CanBalance
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslieu authored May 17, 2019
1 parent 912100a commit d172201
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CanBalance/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### CanBalance

Given a non-empty array, return true if there is a place to split the array so that
the sum of the numbers on one side is equal to the sum of the numbers on the other side.
```
canBalance([1, 1, 1, 2, 1]) → true
canBalance([2, 1, 1, 2, 1]) → false
canBalance([10, 10]) → true
```

0 comments on commit d172201

Please sign in to comment.