Commit Graph

2 Commits

Author SHA1 Message Date
Udit Gupta
308148653a Enhances 'base case' logic (#227)
Original function does not work when input array is empty or contains a single value. In the revised code, base case has been augmented to support those. Works successfully for all these test cases: find_max([1, 12, 8, 5]), find_max([]), find_max([1])
2022-11-18 15:47:57 -06:00
=
345d09b69e add recursive soln. 2020-06-03 15:28:01 +02:00