Skip to content

Commit

Permalink
Add ques
Browse files Browse the repository at this point in the history
  • Loading branch information
MadhavBahl committed Jan 16, 2019
1 parent 62e46e2 commit e1b4bb3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions day20/README.md
Expand Up @@ -6,8 +6,15 @@ Write a program to divide the given array into sub arrays where each sub array i

## Example

partition([1,2,3,4,5,6,7,8], 2) --> [[1, 2], [3, 4], [5, 6], [7, 8]]
partition([1,2,3,4,5,6,7], 2) --> [[1, 2], [3, 4], [5, 6], [7]]
```
input: partition([1,2,3,4,5,6,7,8], 2)
output: [[1, 2], [3, 4], [5, 6], [7, 8]]
input: partition([1,2,3,4,5,6,7], 2)
output: [[1, 2], [3, 4], [5, 6], [7]]
```

![ques](./ques.png)

## JavaScript Solution(s)

Expand Down

0 comments on commit e1b4bb3

Please sign in to comment.