Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Add the byte count
Source Link
lyxal
  • 35.6k
  • 2
  • 69
  • 148

APL (Dyalog Unicode), (削除) 12 (削除ここまで) 11 bytes

−1 byte thanks to Mukundan314

Requires ⎕IO←0 which is default on many systems. Returns [max, row_idx, col_idx]

M,⍴⊤,⍳M←⌈/,

Try it online!

⌈/ the maximum (lit. maximum reduction) of the

, ravelled (flattened) argument

M← store that as M (for Maximum)

,⍳ index of first location of that in the ravelled (flattened) argument

⍴⊤ the shape-radix representation of that

M, prepend the Maximum

APL (Dyalog Unicode), (削除) 12 (削除ここまで) bytes

−1 byte thanks to Mukundan314

Requires ⎕IO←0 which is default on many systems. Returns [max, row_idx, col_idx]

M,⍴⊤,⍳M←⌈/,

Try it online!

⌈/ the maximum (lit. maximum reduction) of the

, ravelled (flattened) argument

M← store that as M (for Maximum)

,⍳ index of first location of that in the ravelled (flattened) argument

⍴⊤ the shape-radix representation of that

M, prepend the Maximum

APL (Dyalog Unicode), (削除) 12 (削除ここまで) 11 bytes

−1 byte thanks to Mukundan314

Requires ⎕IO←0 which is default on many systems. Returns [max, row_idx, col_idx]

M,⍴⊤,⍳M←⌈/,

Try it online!

⌈/ the maximum (lit. maximum reduction) of the

, ravelled (flattened) argument

M← store that as M (for Maximum)

,⍳ index of first location of that in the ravelled (flattened) argument

⍴⊤ the shape-radix representation of that

M, prepend the Maximum

-1
Source Link
Adám
  • 31.8k
  • 4
  • 131
  • 292

APL (Dyalog Unicode), 12(削除) 12 (削除ここまで) bytes

−1 byte thanks to Mukundan314

Requires ⎕IO←0 which is default on many systems. Returns [max, row_idx, col_idx]

⌈/∘M,⍴⊤,⍴⊤⊃∘⍒∘⍳M←⌈/,

Try it online! Try it online!

⌈/ the maximum (lit. maximum reduction)

... of of the

, ravelled (flattened) argument

,M← followed by...

store that as ⍴⊤M... the shape-radix representation of... (for Maximum)

,⍳... theindex of first

... of the...

... descending grade location of that in the ravelled (indices that would sort descendingflattened)... argument

⍴⊤... of the...the shape-radix representation of that

M, ravelled (flattened) argumentprepend the Maximum

APL (Dyalog Unicode), 12 bytes

Requires ⎕IO←0 which is default on many systems. Returns [max, row_idx, col_idx]

⌈/∘,,⍴⊤⊃∘⍒∘,

Try it online!

⌈/ the maximum (lit. maximum reduction)

... of the

, ravelled (flattened) argument

, followed by...

⍴⊤... the shape-radix representation of...

... the first

... of the...

... descending grade (indices that would sort descending)...

... of the...

, ravelled (flattened) argument

APL (Dyalog Unicode), (削除) 12 (削除ここまで) bytes

−1 byte thanks to Mukundan314

Requires ⎕IO←0 which is default on many systems. Returns [max, row_idx, col_idx]

M,⍴⊤,⍳M←⌈/,

Try it online!

⌈/ the maximum (lit. maximum reduction) of the

, ravelled (flattened) argument

M← store that as M (for Maximum)

,⍳ index of first location of that in the ravelled (flattened) argument

⍴⊤ the shape-radix representation of that

M, prepend the Maximum

added 323 characters in body
Source Link
Adám
  • 31.8k
  • 4
  • 131
  • 292

APL (Dyalog Unicode), 12 bytes

Requires ⎕IO←0 which is default on many systems. Returns [max, row_idx, col_idx]

⌈/∘,,⍴⊤⊃∘⍒∘,

Try it online!

⌈/ the maximum (lit. maximum reduction)

... of the

, ravelled (flattened) argument

, followed by...

⍴⊤... the shape-radix representation of...

... the first

... of the...

... descending grade (indices that would sort descending)...

... of the...

, ravelled (flattened) argument

APL (Dyalog Unicode), 12 bytes

⌈/∘,,⍴⊤⊃∘⍒∘,

Try it online!

APL (Dyalog Unicode), 12 bytes

Requires ⎕IO←0 which is default on many systems. Returns [max, row_idx, col_idx]

⌈/∘,,⍴⊤⊃∘⍒∘,

Try it online!

⌈/ the maximum (lit. maximum reduction)

... of the

, ravelled (flattened) argument

, followed by...

⍴⊤... the shape-radix representation of...

... the first

... of the...

... descending grade (indices that would sort descending)...

... of the...

, ravelled (flattened) argument

Source Link
Adám
  • 31.8k
  • 4
  • 131
  • 292
Loading

AltStyle によって変換されたページ (->オリジナル) /