«array-manipulation» 태그된 질문

어레이의 사용법과 조작을 통해 특정 문제를 해결하기위한 경쟁.

13
많은 색깔의 외투
도전 입력 한 고유 한 색상 이름 목록이 제공 되면 Joseph의 Amazing Technicolor Dreamcoat 에 처음 나타나는 순서대로 정렬하십시오 . 예 Input: green, blue, red, brown Output: red, green, brown, blue 전체 색상 목록은 다음과 같습니다. 1. red 2. yellow 3. green 4. brown 5. scarlet 6. black 7. ochre …

24
삼각형 수를 센다
양의 정수 목록이 주어지면 측면 길이가 입력 목록의 세 가지 별개의 항목으로 표시되도록 형성 할 수있는 삼각형의 수를 찾으십시오. (영감은 CR 에서 나옵니다 .) 세부 세 변 길이 a , b , c 의 모든 순열이 엄격한 삼각형 부등식 a + b > c를 만족하면 삼각형이 형성 될 수 있습니다 …

23
ASCII 아트 팔각형
입력 integer가 주어지면 문자 n > 1로 구성된 측면 길이를 가진 ASCII 아트 팔각형을 출력하십시오 n. 아래 예를 참조하십시오. n=2 ## # # # # ## n=3 ### # # # # # # # # # # ### n=4 #### # # # # # # # # # …
22 code-golf  ascii-art  code-golf  geometry  code-golf  balanced-string  code-golf  cops-and-robbers  code-challenge  cops-and-robbers  code-golf  code-golf  random  cryptography  code-golf  array-manipulation  number  code-challenge  integer  code-golf  math  integer  code-golf  math  math  parsing  image-processing  test-battery  math  number  combinatorics  fastest-code  code-golf  code-golf  math  number-theory  rational-numbers  polynomials  code-golf  math  geometry  code-golf  code-golf  number-theory  primes  factoring  code-golf  restricted-source  code-golf  string  decision-problem  counting  code-golf  math  sequence  fibonacci  code-golf  array-manipulation  counting  code-golf  array-manipulation  number-theory  code-golf  array-manipulation  code-golf  random  code-golf  string  hexadecimal  code-golf  string  code-challenge  sorting  code-golf  number  floating-point  code-golf  sorting  code-golf  decision-problem  fibonacci  code-golf  number  combinatorics  code-golf  string  code-golf  math  code-golf  electrical-engineering  code-golf  javascript  code-golf  base-conversion  code-golf  array-manipulation  matrix  binary-matrix  code-golf  kolmogorov-complexity  python  perl  ruby  code-golf  number  code-golf  optimization  integer-partitions  code-golf  string  code-golf  ascii-art 

28
간단한 단어 래퍼 만들기
(참고 : 이것은 처음으로 코드 골프 질문이지만, 내가 알 수있는 한, 아무도 정확히 이것을하지 않았으므로 좋을 것입니다.) 당신의 임무는 문자열 s과 정수 를 취하고 n그 텍스트를 여러 줄로 감싸서 반환하거나 출력 하는 프로그램이나 함수를 만드는 것 입니다. 각 단어는 한 줄에 있어야합니다. 즉, 단어가 중간에 쪼개지지 않습니다. 각 줄은 더 …
22 code-golf  string  code-golf  string  parsing  apl  math  primes  integer  fastest-code  code-golf  math  primes  integer  code-golf  ascii-art  kolmogorov-complexity  code-golf  string  array-manipulation  code-golf  number  code-golf  sequence  code-golf  math  arithmetic  code-golf  date  conversion  code-golf  geometry  combinatorics  grid  code-golf  string  code-golf  counting  java  code-golf  chess  code-golf  path-finding  conversion  atomic-code-golf  logic-gates  code-golf  fibonacci  code-golf  ascii-art  fractal  code-golf  quine  code-golf  string  code-golf  array-manipulation  decision-problem  code-golf  quine  code-golf  code-challenge  array-manipulation  code-challenge  word-search  code-golf  binary  conversion  code-golf  code-golf  restricted-source  code-golf  kolmogorov-complexity  restricted-source  code-golf  kolmogorov-complexity  random  animation 

24
ogl-edocf 도전
입력 범위의 ASCII 문자로 구성된 비어 있지 않은 섞인 문자열 입니다.[ 32..126 ][32..126][32..126] 산출 입력 문자열에 연속적인 회전을 적용하여 출력을 얻습니다. [a-zA-Z]입력 문자열의 각 문자 ( )에 대해 왼쪽에서 오른쪽으로 : 문자가 대문자 인 경우 모든 문자를 왼쪽으로 한 위치 씩 회전 문자가 소문자 인 경우 오른쪽 앞의 한 위치 …
22 code-golf  string  code-golf  string  code-golf  string  parsing  brainfuck  code-challenge  python  hello-world  error-message  code-golf  string  code-golf  number  integer  counting  subsequence  code-golf  string  cipher  code-golf  array-manipulation  arithmetic  integer  matrix  code-golf  math  sequence  code-golf  restricted-source  pi  popularity-contest  cops-and-robbers  polyglot  popularity-contest  cops-and-robbers  polyglot  code-golf  file-system  king-of-the-hill  code-golf  number  sequence  integer  rational-numbers  string  code-challenge  source-layout  code-golf  ascii-art  king-of-the-hill  code-golf  array-manipulation  sorting  code-golf  string  code-golf  restricted-source  source-layout  tips  math  code-challenge  permutations  logic-gates  code-golf  number  random  integer  code-golf  math  code-golf  math  number  decision-problem  king-of-the-hill  python  board-game  code-challenge  brainfuck  busy-beaver  code-golf  number  cops-and-robbers  polyglot  obfuscation  answer-chaining  code-golf  number  integer  conversion  code-golf  string  parsing  code-golf  ascii-art  number  king-of-the-hill  javascript  code-golf  source-layout  radiation-hardening  code-golf  array-manipulation  matrix  code-golf  string  graph-theory  code-golf  array-manipulation  decision-problem  code-golf  string  ascii-art  code-golf  string  code-golf  array-manipulation 

15
도미노를 쓰러 뜨려 라!
영감을 얻은 이 질문 덕분에 이 챌린지에서 우리는 도미노 라인을 |, /및 의 문자열로 나타냅니다 \. 입력으로 도미노 문자열이 제공되며 정착시 모양을 결정해야합니다. 다음은 도미노가 넘어지는 방법에 대한 규칙입니다. 상설 도미노은 |, 왼쪽 타락한 도미노의 왼쪽 \,뿐만 아니라 왼쪽 타락한 도미노 될 것입니다. |오른쪽 도미노의 오른쪽에 서있는 도미노도 /오른쪽 도미노가됩니다. …

30
자체 배열을 추가
오늘날의 과제는 배열을 가져 와서 청크로 나눈 다음 해당 청크를 추가하는 것입니다. 작동 방식은 다음과 같습니다. 프로그램이나 함수에는 정수 배열 a과 청크 크기가 부여 L됩니다. L배열의 길이를 나눌 수없는 경우 배열을 size의 배열로 분할해야합니다 L. 배열이 청크되면 모든 청크가 요소별로 함께 추가됩니다. 결과 배열이 출력됩니다. L0보다 크다고 가정 할 수 …

27
차이 목록 정렬
정수 목록의 차이 목록은 연속 멤버의 목록 차이입니다. 예를 들어 차이 목록 1, 3, 2 ,4 이다 2, -1, 2 당신의 임무는 차이 목록을 입력으로 가져 와서 원래 목록이 정렬 된 경우 차이 목록의 모양을 출력하는 것입니다. 예를 들어 차이 목록 2, 1, -2, -1 목록을 나타낼 수 있습니다 2 …

1
커크 먼의 여학생 문제 확장
Kirkman의 여학생 문제 는 익숙하지 않은 사람들을 위해 다음과 같이 진행됩니다. 한 학교의 15 명의 젊은 여성이 7 일 연속으로 3 개의 나란히 걸어 다닌다. 두 사람이 나란히 두 번 걷지 않도록 매일 그들을 배치해야한다. 이것을 중첩 된 3 x 5 목록 (또는 행렬) 처럼 볼 수 있습니다 . [[a,b,c] …

29
인접 중복 축소
도전 정수 목록이 주어지면 인접한 동일한 항목의 모든 쌍을 반복적으로 제거한 후 이러한 정수 목록을 반환하십시오. 홀수 길이의 같은 수의 런이 있으면 그 중 하나가 쌍의 일부가 아닌 그대로 유지됩니다. 예: [0, 0, 0, 1, 2, 4, 4, 2, 1, 1, 0] 첫째, 당신은 제거해야합니다 0, 0, 4, 4그리고 1, …

14
숫자의 안전
양의 정수의 주기적 시퀀스가 ​​시퀀스에서 n발생하는 모든 정수 에 대해 n두 개의 연속 발생 사이에 다른 정수를 넘지 않는 특성을 갖는지 판별하는 프로그램을 작성하십시오 n. 예를 들어, 2, 3, 5, 2, 3, 6, 2, 3, 5, 2, 3, 6, ...연속 발생의 모든 쌍 :이 속성을 가지고 2같은 그들 사이의 가장 …

17
데이터 중화
데이터를 무효화하려면 모든 숫자 (숫자가 아님)를 0으로, 문자열이 아닌 모든 문자를 공백으로 재귀 적으로 바꿉니다. 언어에서 처리 할 수있는 단일 숫자, 문자 또는 문자열 또는 혼합 된 숫자 / 문자 데이터의 재귀 배열 *을 허용해야합니다. 예를 들어, 언어에서 처리 할 수있는 경우 실제 문자열을 수락하고 입력을 단일 문자 목록으로 제한하지 …

10
배열 단순화
입력 배열 또는 양의 연속적인 오름차순 정수를 포함 할 수있는 배열입니다. 배열은 그 안에 여러 배열을 가질 수 있습니다. 배열이 비어 있지 않습니다. 산출 이 배열은 단순화되었습니다 배열을 단순화하는 방법 [1, [2, 3], [[4]], [[[5, 6], 7, [[[8]]]], 9]]예제로 배열을 사용합니다 . 먼저 값이 얼마나 깊이 중첩되어 있는지 확인합니다. 깊이와 …

30
양수 런
입력 입력은 일련의 숫자를 포함하여 합리적인 형식의 단일 숫자 목록입니다. 입력이 비어 있지 않습니다. 산출 출력은 입력 목록이되지만 0이 아닌 숫자의 각 최대 실행은 반전됩니다. 예 입력을 고려하십시오 95883007414830 <---> <----> 0이 아닌 런에는 화살표가 표시되어 있습니다. 이러한 각 실행을 취소하면 결과가 나타납니다. 38859003841470 규칙과 득점 전체 프로그램이나 함수를 작성할 …

16
일반화 된 어레이 리플
주를 시작하는 간단한 골프! 기본 배열 B , 값 배열 V 및 인덱스 배열의 세 가지 배열이 제공 됩니다I . 값이 다른 배열을 생성해야합니다.VB에서 지정한 색인에 이 삽입되는 합니다 I. 예를 들면 다음과 같습니다. Base: [5, 1, 4, 1, 3] Values: [0, 0, 7] Indices: [5, 0, 3] 인덱스는 기본 …

당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.