mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 00:01:37 +08:00
algorithm: unique paths (#1211)
* dp problem * update Directory.md * suggested changes
This commit is contained in:
11
Dynamic-Programming/tests/UniquePaths.test.js
Normal file
11
Dynamic-Programming/tests/UniquePaths.test.js
Normal file
@ -0,0 +1,11 @@
|
||||
import { uniquePaths } from '../UniquePaths'
|
||||
|
||||
describe('Unique Paths', () => {
|
||||
it('should return 28 when m is 3 and n is 7', () => {
|
||||
expect(uniquePaths(3, 7)).toBe(28)
|
||||
})
|
||||
|
||||
it('should return 48620 when m is 10 and n is 10', () => {
|
||||
expect(uniquePaths(10, 10)).toBe(48620)
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user