Compare commits

...
10 Commits
7 changed files with 41 additions and 1 deletions
+7
View File
@@ -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 }
]
+7
View File
@@ -0,0 +1,7 @@
[
{ "input": [0], "expected": 1 },
{ "input": [1], "expected": 1 },
{ "input": [5], "expected": 120 },
{ "input": [7], "expected": 5040 },
{ "input": [10], "expected": 3628800 }
]
+7
View File
@@ -0,0 +1,7 @@
[
{ "input": [0], "expected": 0 },
{ "input": [1], "expected": 1 },
{ "input": [5], "expected": 5 },
{ "input": [10], "expected": 55 },
{ "input": [12], "expected": 144 }
]
+6
View File
@@ -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 -1
View File
@@ -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" }
]
+7
View File
@@ -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 }
]