mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-04 02:56:40 +08:00
style: remove unused variables (#2946)
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
This commit is contained in:
@@ -67,7 +67,6 @@ static void test() {
|
||||
// Output: 22
|
||||
// Explanation: Subarray 12, 8, -8, 9, -9, 10 gives the maximum sum, that is 22.
|
||||
|
||||
int n = 7; // size of the array
|
||||
std::vector<int> arr = {8, -8, 9, -9, 10, -11, 12};
|
||||
assert(dynamic_programming::maxCircularSum(arr) == 22); // this ensures that the algorithm works as expected
|
||||
|
||||
|
||||
Reference in New Issue
Block a user