Skip to content

Commit ededea0

Browse files
committed
♻️ refactors thx to @RubenVerg
1 parent 5e88c57 commit ededea0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

comparisons/leetcode/P1672_Richest_Customer_Wealth.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
| :-------: | :-----------------------------: | :-------------------------------------------------------------------------------------------------------------------------: |
99
| APL | `⌈/+/` | [Link](https://github.com/codereport/LeetCode/blob/master/0217_Problem_1.apl) |
1010
| Kap | `⌈/+/` | |
11-
| TinyAPL | `⦅⌈⍆⋄+⍆⍤1⦆` |
11+
| TinyAPL | `⦅⌈⍆⋄+⍆◡⦆` |
1212
| J | `[: >./ +/"1` | [Link](https://github.com/codereport/LeetCode/blob/master/0217_Problem_1.ijs) |
13-
| BQN | `⌈´+˝⎉1` | [Link](https://github.com/codereport/LeetCode/blob/master/0217_Problem_1.bqn) |
13+
| BQN | `⌈´+˝˘` | [Link](https://github.com/codereport/LeetCode/blob/master/0217_Problem_1.bqn) |
1414
| Uiua | `/↥≡/+` | |
1515
| Q | `max sum each x` | |
1616
| Julia | `sum(x, dims=2) \|> maximum` | [Link](https://github.com/codereport/LeetCode/blob/master/0217_Problem_1.jl) |

comparisons/matrix_identity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| :-------: | :--------------------------------------------------------------------------------: |
77
| APL | `∘.=⍨⍳` |
88
| Kap | `=⌻⍨⍳` |
9-
| TinyApl | `=⊞⍨⍳` |
9+
| TinyAPL | `=⊞⍨` |
1010
| J | `e.@i.` |
1111
| BQN | `=⌜˜↕` |
1212
| Uiua | `⊞=.⇡` |

comparisons/matrix_reversing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
| | Reverse In Memory | Reverse Columns | Reverse Rows |
66
| :-------: | :------------------------------------: | :------------------------------------------------------------: | :------------------------------------: |
77
| APL | ravel, reverse, reshape | `` | `` <br> `⊖⍤1` |
8-
| Kap | `⊖⍢,` | `` | `⊖⍤1` |
8+
| Kap | `⊖⍢,` | `` | `⊖◡` |
99
| TinyAPL | `⊖⍢,` | `` | `⊖⍤1` |
1010
| J | ravel, reverse, reshape | `\|.` | `\|."1` |
11-
| BQN | `⌽⌾⥊` | `` | `⌽˘`<br>`⎉1` |
11+
| BQN | `⌽⌾⥊` | `` | `⌽˘`<br>`˘` |
1212
| Uiua | `⍜⇌♭`* | `` | `≡⇌` |
1313
| Q | deshape, reverse, reshape | `reverse` | `reverse each` |
1414
| Julia | `reverse(a)` <br> `reverse(a, dims=:)` | `reverse(a, dims=1)` | `reverse(a, dims=2)` |
@@ -97,7 +97,7 @@
9797
8 7 6
9898
9999
# or
100-
⎉1 a
100+
˘ a
101101
┌─
102102
╵ 2 1 0
103103
5 4 3

comparisons/matrix_summing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
| :-------: | :------------------------------: | :-------------------------------: | :----------------------------------------------------------------------------------------------------: |
77
| APL | `+/,` | `+⌿` | `+/`<br>`+/⍤1` |
88
| Kap | `+/,` | `+⌿` | `+/`<br>`+/⍤1` |
9-
| TinyAPL | `+⍆,` | `+⍆` | `+⍆⍤1` |
9+
| TinyAPL | `+⍆,` | `+⍆` | `+⍆` |
1010
| J | `+/&,` | `+/` | `+/"1` |
11-
| BQN | `+´⥊` | `` | `+´˘`<br>`⎉1` |
11+
| BQN | `+´⥊` | `` | `+´˘`<br>`˘` |
1212
| Uiua | `/+♭` | `/+` | `≡/+` |
1313
| Q | `sum raze` | `sum` | `sum each` |
1414
| Julia | `sum(a)`<br>`sum(a, dims=:)` | `sum(a, dims=1)` | `sum(a, dims=2)` |

0 commit comments

Comments
 (0)