changes made

This commit is contained in:
Abhijeet Tiwari
2021-10-06 15:02:37 +05:30
parent c0fa1401c8
commit 5a59d1efc0
2 changed files with 4 additions and 13 deletions

View File

@ -23,13 +23,4 @@ function kadaneAlgo (array) {
return maxSum
// This function returns largest sum contiguous sum in a array
}
function main () {
// input array
const myArray = [1, 2, 3, 4, -6]
// calling the function
const result = kadaneAlgo(myArray)
// result is the variable for storing the ourput of kadaneAlgo function
console.log(result)
}
main()
module.exports = { kadaneAlgo }
export { kadaneAlgo }