Compare commits
10
Commits
17eded72a4
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f87053fc48 | ||
|
|
91f979832f | ||
|
|
c9c078ea94 | ||
|
|
9ffef4453a | ||
|
|
552f3f40e6 | ||
|
|
91056e7d95 | ||
|
|
5a26caca6e | ||
|
|
a71e6b30b9 | ||
|
|
4973b8bb07 | ||
|
|
eeb6ee73af |
@@ -0,0 +1,7 @@
|
|||||||
|
[
|
||||||
|
{ "input": ["listen", "silent"], "expected": true },
|
||||||
|
{ "input": ["evil", "vile"], "expected": true },
|
||||||
|
{ "input": ["fluster", "restful"], "expected": true },
|
||||||
|
{ "input": ["hello", "world"], "expected": false },
|
||||||
|
{ "input": ["a", "a"], "expected": true }
|
||||||
|
]
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[
|
||||||
|
{ "input": [0], "expected": 1 },
|
||||||
|
{ "input": [1], "expected": 1 },
|
||||||
|
{ "input": [5], "expected": 120 },
|
||||||
|
{ "input": [7], "expected": 5040 },
|
||||||
|
{ "input": [10], "expected": 3628800 }
|
||||||
|
]
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[
|
||||||
|
{ "input": [0], "expected": 0 },
|
||||||
|
{ "input": [1], "expected": 1 },
|
||||||
|
{ "input": [5], "expected": 5 },
|
||||||
|
{ "input": [10], "expected": 55 },
|
||||||
|
{ "input": [12], "expected": 144 }
|
||||||
|
]
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
[
|
||||||
|
{ "input": [[3, 0, 1], 3], "expected": 2 },
|
||||||
|
{ "input": [[0, 1], 2], "expected": 2 },
|
||||||
|
{ "input": [[9,6,4,2,3,5,7,0,1], 9], "expected": 8 },
|
||||||
|
{ "input": [[1], 1], "expected": 0 }
|
||||||
|
]
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
[
|
[
|
||||||
{ "input": ["racecar"], "expected": true },
|
{ "input": ["racecar"], "expected": true },
|
||||||
{ "input": ["hello"], "expected": false },
|
{ "input": ["hello"], "expected": false },
|
||||||
{ "input": ["madam"], "expected": true },
|
{ "input": ["madam"], "expected": true }
|
||||||
]
|
]
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
[
|
||||||
|
{ "input": ["hello world"], "expected": "world hello" },
|
||||||
|
{ "input": ["the sky is blue"], "expected": "blue is sky the" },
|
||||||
|
{ "input": [""], "expected": "" },
|
||||||
|
{ "input": ["a"], "expected": "a" }
|
||||||
|
]
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[
|
||||||
|
{ "input": [[2, 7, 11, 15], 9], "expected": true },
|
||||||
|
{ "input": [[1, 2, 3], 7], "expected": false },
|
||||||
|
{ "input": [[3, 3], 6], "expected": true },
|
||||||
|
{ "input": [[-1, -2, -3, -4], -6], "expected": true },
|
||||||
|
{ "input": [[5], 5], "expected": false }
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user