Coursera-Algorithmic-Toolbox
Coursera-Algorithmic-Toolbox copied to clipboard
This repository contains all the solutions for the assignments of the course - Algorithmic Toolbox offered on Coursera.
**Input:** ``` 6 2 1 4 4 4 6 ``` Your program outputs 1, although there is now way to partition this array into three subsets with equal sums.
Majority function should return -1 in case the sequence is of size 2 and each member is unique. However this code will provide the left member. To correct it simply...
Direct Fibonacci formula