Skip to content

Commit 93b98b7

Browse files
committed
✨ more tinyapl solutions
1 parent b23b850 commit 93b98b7

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ Note that even when using `rlwrap`, some of the limitations will remain (such as
163163
| :-------: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
164164
| APL | 💚 || 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 |
165165
| Kap | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 |
166+
| TinyAPL | 💚 | 💚 | 💚 | 💚 | 💚 |
166167
| J | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 |
167168
| BQN | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 |
168169
| Uiua | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 | 💚 |

comparisons/leetcode/P0485_MCO.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ There are two general solutions covered here.
1010
| :-------: | :--------------------------------------------------------------------------: | :---------------------------------------------------------------------------: |
1111
| APL | `mco ← {0⌈⌈/(≢¨⊆⍨)⍵}` | [Link](https://github.com/codereport/LeetCode/blob/master/0015_Problem_1.apl) |
1212
| Kap | `Mco ⇐ ⌈/≢¨⊂⍨` |
13+
| TinyAPL | `Mco ← {⌈⍆≢¨⊆⍨⍵}` <br> `Mco ← ⌈⍆⍤(≢¨⍤⊆⍨)` |
1314
| J | `mco =. [: >./ [: (#;._1) 0,]` <br> `mco =. {{ >./ (#;._1) 0,y }}` | [Link](https://github.com/codereport/LeetCode/blob/master/0015_Problem_1.ijs) |
1415
| BQN | ``Mco ← ⌈´·+´¨(+`¬)⊸⊔ `` | [Link](https://github.com/codereport/LeetCode/blob/master/0015_Problem_1.bqn) |
1516
| Uiua | `Mco ← /↥⊜⧻.` | |
@@ -31,6 +32,7 @@ There are two general solutions covered here.
3132
| :-------: | :--------------------------------------------------------------: | :---------------------------------------------------------------------------: |
3233
| APL | scan is broken | |
3334
| Kap | `mco ⇐ ⌈/⊢«×»+\` | |
35+
| TinyAPL | `Mco ← ⦅⌈⍆⋄⊢«×»+⍆↟⦆` |
3436
| J | `mco =. {{ >./(([*+)/\.)&.\|. y }}` | |
3537
| BQN | ``Mco ← ⌈´(⊢×+)` `` | [Link](https://github.com/codereport/LeetCode/blob/master/0015_Problem_1.bqn) |
3638
| Uiua | `Mco ← /↥\(×+,)` | |

comparisons/leetcode/P1351_Count_Negatives.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
| :-------: | :-----------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------: |
99
| APL | `+/0>,` | [Link](https://github.com/codereport/LeetCode/blob/master/0176_Problem_1.apl) |
1010
| Kap | `+/,0>` | |
11+
| TinyAPL | `⦅+⍆⋄0⋄>⋄,⦆` |
1112
| J | `[:+/0>,` | [Link](https://github.com/codereport/LeetCode/blob/master/0176_Problem_1.ijs) |
1213
| BQN | `+´0>⥊` | |
1314
| Uiua | `/+<0♭` |

comparisons/leetcode/P1614_Max_Paren_Depth.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
| :-------: | :--------------------------------------------: | :---------------------------------------------------------------------------: |
1010
| APL | `maxDepth ← {⌈/+\-⌿'()'∘.=⍵}` | [Link](https://github.com/codereport/LeetCode/blob/master/0210_Problem_1.apl) |
1111
| Kap | `MaxDepth ⇐ ⌈/+\-⌿"()"=⌻` | |
12+
| TinyAPL | `MaxDepth ←{⌈⍆+⍆↟-⍆"()"=⊞⍵}` |
1213
| J | `maxDepth =. {{ >./+/\-/'()'=/y }}` | |
1314
| BQN | ``MaxDepth ← ⌈´·+`·-˝"()"=⌜⊢`` | [Link](https://github.com/codereport/LeetCode/blob/master/0210_Problem_1.bqn) |
1415
| Q | `maxDepth: { max sums (-) over "()" =/:\: x }` | [Link](https://github.com/codereport/LeetCode/blob/master/0210_Problem_1.q) |

comparisons/leetcode/P1672_Richest_Customer_Wealth.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
| :-------: | :-----------------------------: | :-------------------------------------------------------------------------------------------------------------------------: |
99
| APL | `⌈/+/` | [Link](https://github.com/codereport/LeetCode/blob/master/0217_Problem_1.apl) |
1010
| Kap | `⌈/+/` | |
11+
| TinyAPL | `⦅⌈⍆⋄+⍆⍤1⦆` |
1112
| J | `[: >./ +/"1` | [Link](https://github.com/codereport/LeetCode/blob/master/0217_Problem_1.ijs) |
1213
| BQN | `⌈´+˝⎉1` | [Link](https://github.com/codereport/LeetCode/blob/master/0217_Problem_1.bqn) |
1314
| Uiua | `/↥≡/+` | |

0 commit comments

Comments
 (0)