Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Palindrome-detection/Excel/palindrome-detection-1.excel
Normal file
11
Task/Palindrome-detection/Excel/palindrome-detection-1.excel
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
ISPALINDROME
|
||||
=LAMBDA(s,
|
||||
LET(
|
||||
lcs, FILTERP(
|
||||
LAMBDA(c, " " <> c)
|
||||
)(
|
||||
CHARS(LOWER(s))
|
||||
),
|
||||
CONCAT(lcs) = CONCAT(REVERSE(lcs))
|
||||
)
|
||||
)
|
||||
24
Task/Palindrome-detection/Excel/palindrome-detection-2.excel
Normal file
24
Task/Palindrome-detection/Excel/palindrome-detection-2.excel
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
CHARS
|
||||
=LAMBDA(s,
|
||||
MID(s, ROW(INDIRECT("1:" & LEN(s))), 1)
|
||||
)
|
||||
|
||||
|
||||
FILTERP
|
||||
=LAMBDA(p,
|
||||
LAMBDA(xs,
|
||||
FILTER(xs, p(xs))
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
REVERSE
|
||||
=LAMBDA(xs,
|
||||
LET(
|
||||
n, ROWS(xs),
|
||||
SORTBY(
|
||||
xs,
|
||||
SEQUENCE(n, 1, n, -1)
|
||||
)
|
||||
)
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue