Skip to content

Commit dd0dfce

Browse files
author
Chhavi Bansal
committed
[2380] Time Needed to Rearrange a Binary String
1 parent ce6eb56 commit dd0dfce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

LeetcodeProblemsTests/Algorithms/Maximise_Hour_Glass_Sum.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ const assert = require('assert');
22
const maxSum = require('../../LeetcodeProblems/Algorithms/Maximise_Hour_Glass_Sum').maxSum;
33

44
function test() {
5-
assert.equal(maxSum([[6,2,1,3],[4,2,1,5],[9,2,8,7],[4,1,2,9]]));
6-
assert.equal(maxSum([[1,2,3],[4,5,6],[7,8,9]]));
5+
assert.equal(maxSum([[6,2,1,3],[4,2,1,5],[9,2,8,7],[4,1,2,9]]), 30);
6+
assert.equal(maxSum([[1,2,3],[4,5,6],[7,8,9]]), 35);
77
}
88

99
module.exports.test = test

LeetcodeProblemsTests/Algorithms/Time_Needed_Rearrange_Binary_String_Test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ const assert = require('assert');
22
const secondsToRemoveOccurrences = require('../../LeetcodeProblems/Algorithms/Time_Needed_Rearrange_Binary_String').secondsToRemoveOccurrences;
33

44
function test() {
5-
assert.equal(secondsToRemoveOccurrences("0110101"));
6-
assert.equal(secondsToRemoveOccurrences("11100"))
5+
assert.equal(secondsToRemoveOccurrences("0110101"), 4);
6+
assert.equal(secondsToRemoveOccurrences("11100"), 0)
77
};
88

99
module.exports.test = test

0 commit comments

Comments
 (0)