SIGN IN SIGN UP

Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.

0 0 56 JavaScript
2021-10-06 15:02:37 +05:30
import { kadaneAlgo } from '../KadaneAlgo'
test('it is being checked that 15 is the answer to the corresponding array input', () => {
2021-10-06 15:34:08 +05:30
expect(kadaneAlgo([1, 2, 3, 4, 5])).toBe(15)
})
2021-10-06 15:02:37 +05:30
test('it is being checked that 5 is the answer to the corresponding array input', () => {
2021-10-06 15:34:08 +05:30
expect(kadaneAlgo([-1, -2, -3, -4, 5])).toBe(5)
})