Skip to content

Commit 5e88c57

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

File tree

6 files changed

+8
-2
lines changed

6 files changed

+8
-2
lines changed

README.md

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

comparisons/leetcode/P0064_Max_Gap.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
| | Solution | Link |
66
| :-------: | :-----------------------------------: | :---: |
77
| APL | `MaxGap ← {⌈/2-/(⊂⍤⍒⌷⊢)⍵}` | |
8-
| Kap | `MaxGap ⇐ ⌈/2-⍨/(⊂⍋)⍛⌷` | |
8+
| Kap | `MaxGap ⇐ ⌈/2-/∨` | |
9+
| TinyAPL | `MaxGap ← {⌈⍆2-⍆↡⊵⍵}` |
910
| J | `MaxGap =. {{ >./ 2-/\ \:~ y }}` | |
1011
| BQN | `MaxGap ← {⌈´-´˘2↕∨𝕩}` | |
1112
| Uiua | `MaxGap ← /↥≡/-◫2⊏⍏.` | |

comparisons/leetcode/P0674_LCIS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
| :-------: | :----------------------------------------------------: | :---------------------------------------------------------------------------: |
77
| APL | `lcis ← ⌈/≢¨((1,2≥/⊢)⊂⊢)`<br>`lcis ← {1⌈1+⌈/≢¨⊆⍨2</⍵}` | [Link](https://github.com/codereport/LeetCode/blob/master/0049_Problem_1.apl) |
88
| Kap | `Lcis ⇐ 1+⌈/≢¨⊂⍨2</` | |
9+
| TinyAPL | `lcis ← {1+⌈⍆≢¨⊆⍨2<⍆↡⍵}` |
910
| J | `lcis =. {{ 1 + >./ (#;._1) 0,2</\ y }}` | [Link](https://github.com/codereport/LeetCode/blob/master/0049_Problem_1.ijs) |
1011
| BQN | `LCIS ← {1+⌈´(⊢×+)``<´˘2↕𝕩}` | [Link](https://github.com/codereport/katas/blob/main/Top10/03_lcis.bqn) |
1112
| Uiua | `Lcis ← +1/↥\(×+,)≡/>◫2` | |

comparisons/leetcode/P1822_Sign_Product_Array.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/0236_Problem_1.apl) |
1010
| Kap | `×/×` | |
11+
| TinyAPL | `×⍆⍤×` |
1112
| J | `*/*` | |
1213
| BQN | `×´×` | |
1314
| Uiua | `/×±` | |

comparisons/leetcode/P2319_Check_Matrix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
| :-------: | :---------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------: |
99
| APL | `checkMatrix ← {(1⌊⍵)≡(⊖⌈⊢)∘.=⍨⍳≢⍵}` | [Link](https://github.com/codereport/LeetCode/blob/master/0299_Problem_1.apl) |
1010
| Kap | `CheckMatrix ⇐ {(1⌊⍵)≡⌽⍛⌈=⌻⍨⍳≢⍵}` | |
11+
| TinyAPL | `checkMatrix ← {(1⌊⍵)≡⊖⊸⌈=⊞⍨⍳≢⍵}` |
1112
| J | `checkMatrix =. {{ (1<.y)-:(\|.>.])=/~i.#y }}` | [Link](https://github.com/codereport/LeetCode/blob/master/0299_Problem_1.ijs) |
1213
| BQN | `CheckMatrix ← {(1⌊𝕩)≡⌽⊸⌈=⌜˜↕≠𝕩}` | [Link](https://github.com/codereport/LeetCode/blob/master/0299_Problem_1.bqn) |
1314
| Uiua | `CheckMatrix ← ≅↧1∶↥⇌.⊞=.⇡⧻.` | |

comparisons/pwc/PWC198_P1_Max_Gap_Count.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
| | Solution | Link |
66
| :-------: | :------------------------------------------------------: | :---: |
77
| APL | `MaxGapCount ← {+/(⌈/=⊢)2-/(⊂⍤⍒⌷⊢)⍵}` | |
8+
| Kap | `MaxGapCount ⇐ +/⌈/⍛=2-/∨` |
9+
| TinyAPL | `MaxGapCount ← {+⍆⌈⍆⊸=2-⍆↡⊵⍵}` |
810
| J | `MaxGapCount =. {{ +/ (= >./) 2-/\ \:~ y }}` | |
911
| BQN | `MaxGapCount ← {+´⌈´⊸=-´˘2↕∨𝕩}` | |
1012
| Uiua | `MaxGapCount ← /+=/↥.≡/-◫2⊏⍏.` | |

0 commit comments

Comments
 (0)