K4 , 38 바이트
해결책:
{(,/|x,a)(,/a:0 1_'10 11#'.Q`a`n)?x}@'
설명:
검색 목록의 각 문자 "abcdefghij1234567890"및리스트에 다음 인덱스 "1234567890abcdefghijX"여기서 X일본어 문자이다.
줄을 만드는 더 짧은 방법을 찾아야합니다 ...
{(,/|x,a)(,/a:0 1_'10 11#'.Q`a`n)?x}@'
{ }@' / apply (@) lambda {} to each (')
?x / lookup x in
( ) / do this together
.Q`a`n / index into .Q with a (gives a-z) and n (gives 0-9)
10 11#' / take 10 from first list and 11 from second list
0 1_' / drop 0 from first list and 1 from second list
a: / save as a
,/ / flatten
( ) / do this together
x,a / prepend x to a
| / reverse it
,/ / flatten
보너스:
38 바이트에 대한 또 다른 해결책 :
{(a,b,x)?[(b:1_11#.Q.n),a:10#.Q.a]x}@'