Post History
Vyxal, 19 18 bytes 16Ḣλ»≤ṪḢ»3τ?nτİ∑;∴ Try it Online! The link goes to a program which has every test case. -1 thanks to Steffan Explained (old) 16Ḣλ?$τ»≤ṪḢ»3τ$İ∑;O 16Ḣ # Th...
Answer
#2: Post edited
# [Vyxal](https://github.com/Vyxal/Vyxal), 19 bytes- ```
16Ḣλ?$τ»≤ṪḢ»3τ$İ∑;O- ```
[Try it Online!](https://vyxal.pythonanywhere.com/#WyJBIiwiIiwiMTbhuKLOuz8kz4TCu+KJpOG5quG4osK7M8+EJMSw4oiRO08iLCIiLCIwXG4xXG4yXG4zXG40XG41XG42XG43XG44XG45XG4xMFxuMTFcbjEyXG4xM1xuMTRcbjE1XG4xNlxuMTdcbjE4XG4xOVxuMjBcbjIxXG4yMlxuMjNcbjI0XG4yNVxuMjZcbjI3XG4yOFxuMjlcbjMwXG4zMVxuMzJcbjMzXG4zNFxuMzVcbjM2XG4zN1xuMzhcbjM5XG40MFxuNDFcbjQyXG40M1xuNDRcbjQ1XG40NlxuNDdcbjQ4XG40OVxuNTBcbjUxXG41MlxuNTNcbjU0XG41NVxuNTZcbjU3XG41OFxuNTlcbjYwXG42MVxuNjJcbjYzXG42NFxuNjVcbjY2XG42N1xuNjhcbjY5XG43MFxuNzFcbjcyXG43M1xuNzRcbjc1XG43NlxuNzdcbjc4XG43OVxuODBcbjgxXG44MlxuODNcbjg0XG44NVxuODZcbjg3XG44OFxuODlcbjkwXG45MVxuOTJcbjkzXG45NFxuOTVcbjk2XG45N1xuOThcbjk5XG4xMjNcbjEyMDBcbjEyMDFcbjEyMDJcbjEyMDNcbjEyMDRcbjEyMDVcbjEyMDZcbjEyMDdcbjEyMDhcbjEyMDlcbjEyMTBcbjEyMTFcbjEyMTJcbjEyMTNcbjEyMTRcbjEyMTVcbjEyMTZcbjEyMTdcbjEyMThcbjEyMTlcbjEyMjBcbjEyMjFcbjEyMjJcbjEyMjNcbjEyMjRcbjEyMjVcbjEyMjZcbjEyMjdcbjEyMjhcbjEyMjlcbjEyMzBcbjEyMzFcbjEyMzJcbjEyMzNcbjEyMzRcbjEyMzVcbjEyMzZcbjEyMzdcbjEyMzhcbjEyMzlcbjEyNDBcbjEyNDFcbjEyNDJcbjEyNDNcbjEyNDRcbjEyNDVcbjEyNDZcbjEyNDdcbjEyNDhcbjEyNDlcbjEyNTBcbjEyNTFcbjEyNTJcbjEyNTNcbjEyNTRcbjEyNTVcbjEyNTZcbjEyNTdcbjEyNThcbjEyNTlcbjEyNjBcbjEyNjFcbjEyNjJcbjEyNjNcbjEyNjRcbjEyNjVcbjEyNjZcbjEyNjdcbjEyNjhcbjEyNjlcbjEyNzBcbjEyNzFcbjEyNzJcbjEyNzNcbjEyNzRcbjEyNzVcbjEyNzZcbjEyNzdcbjEyNzhcbjEyNzlcbjEyODBcbjEyODFcbjEyODJcbjEyODNcbjEyODRcbjEyODVcbjEyODZcbjEyODdcbjEyODhcbjEyODlcbjEyOTBcbjEyOTFcbjEyOTJcbjEyOTNcbjEyOTRcbjEyOTVcbjEyOTZcbjEyOTdcbjEyOThcbjEyOTkiXQ==)- The link goes to a program which has every test case.
## Explained- ```python
- 16Ḣλ?$τ»≤ṪḢ»3τ$İ∑;O
- 16Ḣ # The range [2, 16]
- λ ;O # Get the maximal items in the list by:
- ∑ # Summing
- ?$τ # The input in that base
- $İ # Indexed into (as in, vectorised index)
- »≤ṪḢ»3τ # ⟨ 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 2 | 1 | 1 | 2 | 0 | 1 | 0 | 0 ⟩ (14551254 converted to base 3 - this is a 0-indexed list representing the number of holes in each letter)
- ```
- # [Vyxal](https://github.com/Vyxal/Vyxal), <s>19</s> 18 bytes
- ```
- 16Ḣλ»≤ṪḢ»3τ?nτİ∑;∴
- ```
- [Try it Online!](https://vyxal.pythonanywhere.com/#WyJBIiwiIiwiMTbhuKLOu8K74omk4bmq4biiwrszz4Q/bs+ExLDiiJE74oi0IiwiIiwiMFxuMVxuMlxuM1xu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Y2XG4xMjY3XG4xMjY4XG4xMjY5XG4xMjcwXG4xMjcxXG4xMjcyXG4xMjczXG4xMjc0XG4xMjc1XG4xMjc2XG4xMjc3XG4xMjc4XG4xMjc5XG4xMjgwXG4xMjgxXG4xMjgyXG4xMjgzXG4xMjg0XG4xMjg1XG4xMjg2XG4xMjg3XG4xMjg4XG4xMjg5XG4xMjkwXG4xMjkxXG4xMjkyXG4xMjkzXG4xMjk0XG4xMjk1XG4xMjk2XG4xMjk3XG4xMjk4XG4xMjk5Il0=)
- The link goes to a program which has every test case.
- -1 thanks to Steffan
- ## Explained (old)
- ```python
- 16Ḣλ?$τ»≤ṪḢ»3τ$İ∑;O
- 16Ḣ # The range [2, 16]
- λ ;O # Get the maximal items in the list by:
- ∑ # Summing
- ?$τ # The input in that base
- $İ # Indexed into (as in, vectorised index)
- »≤ṪḢ»3τ # ⟨ 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 2 | 1 | 1 | 2 | 0 | 1 | 0 | 0 ⟩ (14551254 converted to base 3 - this is a 0-indexed list representing the number of holes in each letter)
- ```
#1: Initial revision
# [Vyxal](https://github.com/Vyxal/Vyxal), 19 bytes ``` 16Ḣλ?$τ»≤ṪḢ»3τ$İ∑;O ``` [Try it Online!](https://vyxal.pythonanywhere.com/#WyJBIiwiIiwiMTbhuKLOuz8kz4TCu+KJpOG5quG4osK7M8+EJMSw4oiRO08iLCIiLCIwXG4xXG4yXG4zXG40XG41XG42XG43XG44XG45XG4xMFxuMTFcbjEyXG4xM1xuMTRcbjE1XG4xNlxuMTdcbjE4XG4xOVxuMjBcbjIxXG4yMlxuMjNcbjI0XG4yNVxuMjZcbjI3XG4yOFxuMjlcbjMwXG4zMVxuMzJcbjMzXG4zNFxuMzVcbjM2XG4zN1xuMzhcbjM5XG40MFxuNDFcbjQyXG40M1xuNDRcbjQ1XG40NlxuNDdcbjQ4XG40OVxuNTBcbjUxXG41MlxuNTNcbjU0XG41NVxuNTZcbjU3XG41OFxuNTlcbjY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»≤ṪḢ»3τ$İ∑;O 16Ḣ # The range [2, 16] λ ;O # Get the maximal items in the list by: ∑ # Summing ?$τ # The input in that base $İ # Indexed into (as in, vectorised index) »≤ṪḢ»3τ # ⟨ 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 2 | 1 | 1 | 2 | 0 | 1 | 0 | 0 ⟩ (14551254 converted to base 3 - this is a 0-indexed list representing the number of holes in each letter) ```