mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
feat(challenges): add maximum-subarray-sum
This commit is contained in:
7
challenges/maximum-subarray-sum/test/1/input.txt
Normal file
7
challenges/maximum-subarray-sum/test/1/input.txt
Normal file
@ -0,0 +1,7 @@
|
||||
6
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
1
challenges/maximum-subarray-sum/test/1/output.txt
Normal file
1
challenges/maximum-subarray-sum/test/1/output.txt
Normal file
@ -0,0 +1 @@
|
||||
21
|
9
challenges/maximum-subarray-sum/test/2/input.txt
Normal file
9
challenges/maximum-subarray-sum/test/2/input.txt
Normal file
@ -0,0 +1,9 @@
|
||||
8
|
||||
-1
|
||||
2
|
||||
4
|
||||
-3
|
||||
5
|
||||
2
|
||||
-5
|
||||
2
|
1
challenges/maximum-subarray-sum/test/2/output.txt
Normal file
1
challenges/maximum-subarray-sum/test/2/output.txt
Normal file
@ -0,0 +1 @@
|
||||
10
|
7
challenges/maximum-subarray-sum/test/3/input.txt
Normal file
7
challenges/maximum-subarray-sum/test/3/input.txt
Normal file
@ -0,0 +1,7 @@
|
||||
6
|
||||
-1
|
||||
-2
|
||||
-3
|
||||
-4
|
||||
-5
|
||||
-6
|
1
challenges/maximum-subarray-sum/test/3/output.txt
Normal file
1
challenges/maximum-subarray-sum/test/3/output.txt
Normal file
@ -0,0 +1 @@
|
||||
-1
|
9
challenges/maximum-subarray-sum/test/4/input.txt
Normal file
9
challenges/maximum-subarray-sum/test/4/input.txt
Normal file
@ -0,0 +1,9 @@
|
||||
8
|
||||
-2
|
||||
-3
|
||||
4
|
||||
-1
|
||||
-2
|
||||
1
|
||||
5
|
||||
-3
|
1
challenges/maximum-subarray-sum/test/4/output.txt
Normal file
1
challenges/maximum-subarray-sum/test/4/output.txt
Normal file
@ -0,0 +1 @@
|
||||
7
|
8
challenges/maximum-subarray-sum/test/5/input.txt
Normal file
8
challenges/maximum-subarray-sum/test/5/input.txt
Normal file
@ -0,0 +1,8 @@
|
||||
7
|
||||
11
|
||||
-8
|
||||
16
|
||||
-7
|
||||
24
|
||||
-2
|
||||
3
|
1
challenges/maximum-subarray-sum/test/5/output.txt
Normal file
1
challenges/maximum-subarray-sum/test/5/output.txt
Normal file
@ -0,0 +1 @@
|
||||
37
|
Reference in New Issue
Block a user