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←⌈/,
⌈/ 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←⌈/,
⌈/ 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←⌈/,
⌈/ 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(削除) 12 (削除ここまで) bytes
−1 byte thanks to Mukundan314
Requires ⎕IO←0 which is default on many systems. Returns [max, row_idx, col_idx]
⌈/∘M,⍴⊤,⍴⊤⊃∘⍒∘⍳M←⌈/,
⌈/ 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]
⌈/∘,,⍴⊤⊃∘⍒∘,
⌈/ 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←⌈/,
⌈/ 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
Requires ⎕IO←0 which is default on many systems. Returns [max, row_idx, col_idx]
⌈/∘,,⍴⊤⊃∘⍒∘,
⌈/ 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
Requires ⎕IO←0 which is default on many systems. Returns [max, row_idx, col_idx]
⌈/∘,,⍴⊤⊃∘⍒∘,
⌈/ 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