Given an array of n elements with all elements positive generate all possible according to 2 rules:- 1)Consider any 2 adjacent elements i and i+1 and i+1 is not the last element so you can decrease both by 1 and add 1 to the i+1 th element. 2)if i+1 is the last element so u can reduce both by 1 and append 1 to the last.
-
Notifications
You must be signed in to change notification settings - Fork 0
topchoder/backtracking-
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
generate all possible according to 2 rules.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published