Skip to content

Commit a1f69b0

Browse files
committed
Style fix (Standard js)
1 parent 0f703a5 commit a1f69b0

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Dynamic-Programming/KadaneAlgo.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function KadaneAlgo (array) {
22
let cummulativeSum = 0
33
let maxSum = 0
4-
for (var i = 0; i < array.length; i++) {
4+
for (let i = 0; i < array.length; i++) {
55
cummulativeSum = cummulativeSum + array[i]
66
if (cummulativeSum < 0) {
77
cummulativeSum = 0
@@ -13,8 +13,8 @@ function KadaneAlgo (array) {
1313
// This function returns largest sum contigous sum in a array
1414
}
1515
function main () {
16-
var myArray = [1, 2, 3, 4, -6]
17-
var result = KadaneAlgo(myArray)
16+
const myArray = [1, 2, 3, 4, -6]
17+
const result = KadaneAlgo(myArray)
1818
console.log(result)
1919
}
2020
main()

Dynamic-Programming/findMonthCalendar.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ class Month {
9999
}
100100
}
101101

102-
103-
//testing
102+
// testing
104103
const x = new Month()
105104
x.generateMonthCal('1/2021')

0 commit comments

Comments
 (0)