Skip to content

Commit 8e250ea

Browse files
authored
Update A2B.md
1 parent 1fd7004 commit 8e250ea

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

content/Blog/A2B.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ xc=(return)true
175175
* Split every character "b" to "xy", then sort the string to "aaa...xx...yy..cc".
176176
* Remove all the occurrences of "ax" and "yc".
177177
* If:
178-
* there're remaining "a"s means `count(a) > count(b)`
179-
* there're remaining "x"s means `count(b) > count(a)`
180-
* there're remaining "y"s means `count(b) > count(c)`
181-
* there're remaining "c"s means `count(b) > count(b)`
178+
* there're remaining "a"s means `count(a) > count(b)`
179+
* there're remaining "x"s means `count(b) > count(a)`
180+
* there're remaining "y"s means `count(b) > count(c)`
181+
* there're remaining "c"s means `count(b) > count(b)`
182182
* Only if there're any "xc"s in the remaining string, we'll return `true`.
183183
* Otherwise, return `false`.
184184

@@ -200,9 +200,9 @@ xc=(return)true
200200
* Move every "x" to the front of "c"s.
201201
* Eliminate every "a" with adjacent "x".
202202
* If:
203-
* there're remaining "a"s means `count(a) > count(b)`
204-
* there're remaining "x"s means `count(b) > count(a)`
205-
* there's no remaining "c"s means `count(b) > count(a)`
203+
* there're remaining "a"s means `count(a) > count(b)`
204+
* there're remaining "x"s means `count(b) > count(a)`
205+
* there's no remaining "c"s means `count(b) > count(a)`
206206
* We match the pattern "xc" as a signal for returning "true".
207207
* Otherwise, return "false".
208208

@@ -227,10 +227,10 @@ c=(return)c
227227
* It's easy to know that `count(x) == count(y) == count(b)`.
228228
* Eliminate all occurances of "ax"s and "yc"s.
229229
* It means:
230-
* `count(remaining a) = count(a) - count(b)` if there're remaining "a"s
231-
* `count(remaining x) = count(b) - count(a)` if there're remaining "x"s
232-
* `count(remaining y) = count(b) - count(c)` if there're remaining "y"s
233-
* `count(remaining c) = count(c) - count(b)` if there're remaining "c"s
230+
* `count(remaining a) = count(a) - count(b)` if there're remaining "a"s
231+
* `count(remaining x) = count(b) - count(a)` if there're remaining "x"s
232+
* `count(remaining y) = count(b) - count(c)` if there're remaining "y"s
233+
* `count(remaining c) = count(c) - count(b)` if there're remaining "c"s
234234
* If there're only "x"s and "y"s remain, it means "b" has the largests count
235235
* If there're only "a"s or "ay"s remain, it means `count(a) > count(b) >= count(c)`
236236
* If there're only "c"s or "xc"s remain, it means `count(c) > count(b) >= count(a)`

0 commit comments

Comments
 (0)