«array-manipulation» 태그된 질문

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

15
논리 게이트 수동
기본 논리 게이트를 시뮬레이트하는 프로그램을 작성하십시오. 입력 : 모두 대문자로 된 단어 다음에 공백으로 구분 된 2 자리 숫자 2 진수 (예 :) OR 1 0. 게이트는 OR, AND, NOR, NAND, XOR, 및이 XNOR요구된다. 출력 : 입력 된 논리 게이트의 출력에 1 또는 0의 두 숫자가 제공됩니다. 예 :이 AND …
13 code-golf  logic-gates  hashing  code-golf  code-golf  number  array-manipulation  integer  code-golf  string  unicode  text-processing  cops-and-robbers  boggle  cops-and-robbers  boggle  code-golf  ascii-art  code-golf  word-puzzle  king-of-the-hill  python  code-golf  sequence  kolmogorov-complexity  code-golf  source-layout  code-golf  string  kolmogorov-complexity  math  number  code-golf  date  code-golf  combinatorics  recursion  game  king-of-the-hill  javascript  code-golf  array-manipulation  code-golf  radiation-hardening  self-referential  code-golf  integer  code-golf  number  code-golf  set-theory  code-golf  sequence  code-golf  string  sorting  natural-language  code-golf  decision-problem  number-theory  primes  code-golf  code-golf  ascii-art  code-challenge  array-manipulation  sorting  rubiks-cube  regular-expression  code-golf  counting  file-system  recursion  code-golf  string  kolmogorov-complexity  color  code-golf  game  code-challenge  permutations  encode  restricted-time  decode  code-golf  math  decision-problem  matrix  integer  palindrome  code-golf  matrix  statistics  king-of-the-hill  king-of-the-hill  python  card-games  code-golf  string  natural-language  code-golf  sequence  number-theory 

16
주의가 산만 해지는 배경을 제거하십시오!
사진을 찍을 때 성 가시지 않습니까?하지만 배경이 이미지의 실제 물질에서 벗어나지 않습니까? 나는 그것을 말할 것입니다. 이 문제를 없애기 위해 얼마나 자르어야하는지 알아야합니다! 그러나-평소와 같이-나는 게으르다. 그래서 누군가 나를 위해 이것을해야한다. 작업 및 규칙 이미지를 나타내는 이진 행렬이 주어지면 원래 행렬에 모두 포함하는 가장 작은 하위 행렬의 크기 (너비 및 …

1
FIFO 캐시 이상
이것은에서 후속 도전 이 하나의 당신이 먼저 하나를 확인하시기 바랍니다 혼동하는 경우. 먼저하자 캐시의 개수는 시퀀스 그리워 수 의 우리 캐시 가정하면 용량 갖는 것 리소스 된 액세스를 K를 하고 찼을 때 선입 선출 (FIFO) 토출 방식을 사용한다.m(s,k)m(s,k)m(s, k)ssskkk 그 후, 소정 비율 , 리소스 액세스의 비어 시퀀스 복귀 의 …

30
프라임 파워에서 프라임 복구
정의 : 소수 는 자연수이며 p n 형식으로 표현할 수있는 자연수입니다. 여기서 p는 소수이고 n은 자연수입니다. 작업 : 프라임 전력 p n > 1이 주어지면 프라임 p를 반환합니다. 테스트 케이스 : input output 9 3 16 2 343 7 2687 2687 59049 3 채점 : 이것은 code-golf 입니다. 바이트 단위의 …
13 code-golf  arithmetic  primes  king-of-the-hill  python  board-game  code-golf  number  subsequence  code-golf  ascii-art  code-golf  array-manipulation  decision-problem  grid  fastest-algorithm  logic-gates  logic  code-golf  cards  code-golf  rational-numbers  code-golf  math  number  sequence  code-golf  array-manipulation  integer  code-golf  number  array-manipulation  code-golf  number  sequence  decision-problem  code-golf  ascii-art  number  code-challenge  sequence  arithmetic  sorting  code-golf  date  fastest-algorithm  code-golf  string  number  random  combinatorics  code-golf  combinatorics  code-golf  ascii-art  base-conversion  code-golf  array-manipulation  code-golf  string  code-golf  string  number  arithmetic  code-golf  kolmogorov-complexity  code-golf  string  array-manipulation  json  code-golf  puzzle-solver  code-golf  binary  graph-theory  code-golf  arithmetic  haskell  code-golf  string  cipher  code-golf  code-golf  string  parsing  alphabet  code-golf  string  code-golf  ascii-art  code-golf  string  number  code-golf  string  balanced-string 

13
배열 데이터 그룹화
정수 행렬 a과 음이 아닌 정수가 주어지면 th 열의 고유 값을 th 열에 해당 값을 가진 행으로 i맵핑하는 맵핑 b을 출력하십시오 .iaai i절반 개방 범위에 [0, num_cols(a))있거나 [1, num_cols(a)]1 기반 인덱스를 사용하도록 선택한 경우 모든 정수가 사용자 언어의 표현 가능한 범위 내에 있다고 가정 할 수 있습니다. 입력 및 출력은 …

3
배열에서 항목을 제거하여 정렬하고 요소 합계를 최대화하십시오.
이 과제는 입학 시험부터 비공개 사이버 보안 코스까지입니다. 어쨌든 사이버 보안과 관련이 없으며 학생들에게 논리적이고 코딩 기술을 테스트하는 것입니다. 직무 나머지 값이 엄격하게 감소하는 순서로 정렬되고 가능한 모든 감소하는 시퀀스 중에서 합계가 최대화되도록 배열에서 항목을 제거하는 프로그램을 작성하십시오. 입력과 출력 입력은 정수 값의 배열 될 것이다 엄격히 더 이상 0모두 …

20
최적의 제곱 행렬 계산
최적 행렬 (이 도전 다소 좁은 범위에 대한)에 의해 얻어지는 「완봉」정방 행렬과 각 쌍의 최대 값을 얻는 상응하는 행과 열에서 엘리먼트. 예를 들어, 다음 행렬이 주어집니다. 4 5 6 1 7 2 7 3 0 그것을 전치와 결합하여 얻을 수 있습니다 : [[[4,5,6],[4,1,7]],[[1,7,2],[5,7,3]],[[7,3,0],[6,2,0]]]. 각 목록 쌍을 압축하면 다음이 제공 [[(4,4),(5,1),(6,7)],[(1,5),(7,7),(2,3)],[(7,6),(3,2),(0,0)]]됩니다.. …

4
배열 늘리기
앞에서 나는 배열을 분쇄하는 과정을 정의했다 호감에서 우리는 배열을 왼쪽에서 오른쪽으로 읽습니다. 한 지점에서 같은 요소 중 두 개가 연속으로 나타나면 첫 번째 요소를 제거하고 두 번째 요소를 두 배로 늘립니다. 예를 들어 다음은 다음 배열을 분쇄하는 과정입니다 [5,2,2,4] ^ [5,2,2,4] ^ [5,2,2,4] ^ [5,4,4] ^ [5,4,4] ^ [5,8] ^ …

28
배열 분해
양의 정수 배열이 주어지면 이러한 정수의 고유 한 소수 요소의 안정적인 배열을 출력하십시오. 즉, 입력의 각 정수에 대해 순서대로 소수를 가져 와서 정렬하고 출력에 아직없는 소수를 출력에 추가합니다. 테스트 사례 [1,2,3,4,5,6,7,8,9,10] -> [2,3,5,7] [10,9,8,7,6,5,4,3,2,1] -> [2,5,3,7] [100,99,98,1,2,3,4,5] -> [2,5,3,11,7] [541,60,19,17,22] -> [541,2,3,5,19,17,11] [1,1,2,3,5,8,13,21,34,45] -> [2,3,5,13,7,17] [6,7,6,7,6,7,6,5] -> [2,3,7,5] [1] -> …

26
정렬되지 않은 목록에서 두 개의 정수를 찾아 입력에 합산
이것은 Google 인터뷰 질문입니다. YouTube 링크는 여기를 참조하십시오. 작업: 순서가없는 목록에서 주어진 정수에 해당하는 2 개의 정수를 찾으십시오. 순서가 정해지지 않은 정수 목록이 주어지면 주어진 값에 해당하는 2 개의 정수를 찾고이 2 개의 정수를 인쇄하고 성공을 나타냅니다 (종료 0). 그것들은 특정 숫자 일 필요는 없습니다 (즉, 올바른 숫자에 합산되는 처음 …

11
이 배열을 행렬로 변환
중첩되지 않은 배열을 입력으로 사용하십시오. 다음 방법을 사용하여 행렬로 변환하십시오. 내 배열이 [1, 2, 3, 4, 5] 먼저, 그 배열을 5 번 반복합니다 : (길이) [[1, 2, 3, 4, 5], [1, 2, 3, 4, 5], [1, 2, 3, 4, 5], [1, 2, 3, 4, 5], [1, 2, 3, 4, 5]] …

11
느슨한 범위 해석
느슨한 범위 해석 ListSharp 는 많은 기능을 가진 해석 된 프로그래밍 언어입니다. 이러한 기능 중 하나는 다음과 같은 1 인덱스 기반 범위 작성자입니다. 범위를 정의 (INT) TO (INT)하거나 (INT)둘 다 또는 단일 int가 min에서 max int32 값으로 갈 수있는 곳을 정의하십시오. 그런 다음 해당 범위를 사용하여 배열의 경계를 넘길 염려없이 …
13 code-golf  array-manipulation  parsing  code-golf  string  ascii-art  kolmogorov-complexity  code-challenge  code-golf  sequence  code-golf  number  array-manipulation  sorting  code-golf  string  function  code-golf  arithmetic  code-golf  math  sequence  number-theory  primes  restricted-source  javascript  code-challenge  polyglot  rosetta-stone  code-golf  code-golf  regular-expression  code-golf  math  code-golf  math  primes  code-golf  ascii-art  kolmogorov-complexity  binary  code-golf  math  sequence  code-golf  sequence  subsequence  code-golf  string  code-golf  parsing  music  code-golf  grid  game  path-finding  board-game  code-golf  string  binary  code-golf  array-manipulation  balanced-string  code-golf  code-golf  algorithm  code-golf  string  number  arithmetic  array-manipulation  code-golf  array-manipulation  binary-tree  tree-traversal  code-golf  code-golf  tips  code-golf  string  base-conversion  code-golf  tips  s.i.l.o.s  code-golf  string  ascii-art  code-golf  code-challenge  code-golf  game 

13
피보나치 제품
양의 피보나치 수의 고유 한 합계로 0보다 큰 수를 분해 할 수 있습니다. 이 질문에서 우리는 가능한 가장 큰 양의 피보나치 수 를 반복적으로 빼서이 작업을 수행합니다 . 예 : 1 = 1 2 = 2 3 = 3 4 = 3 + 1 12 = 8 + 3 + …
13 code-golf  math  sequence  fibonacci  code-golf  word  code-golf  cipher  code-golf  string  math  subsequence  code-golf  regular-expression  code-golf  brainfuck  assembly  machine-code  x86-family  code-golf  math  factorial  code-golf  math  geometry  code-golf  math  arithmetic  array-manipulation  math  number  optimization  stack  metagolf  code-golf  tips  assembly  code-golf  tips  lisp  code-golf  number-theory  path-finding  code-golf  number  sequence  generation  code-golf  math  geometry  code-golf  grid  permutations  code-golf  code-golf  graphical-output  geometry  fractal  knot-theory  code-golf  math  arithmetic  code-golf  interpreter  balanced-string  stack  brain-flak  code-golf  math  set-theory  code-golf  math  array-manipulation  code-golf  code-golf  string  natural-language  code-golf  code-golf  math  linear-algebra  matrix  code-golf  string  encode 

21
배열을 통해 실행
우리는 종종 "배열을 걷다"라는 관용구를 듣고 "다음 배열에 함수를 매핑합니다"를 의미합니다. 그러나, 나는 그것을 할 필요가 (지금!), 당신이 할 수 있도록 실행 배열을. 달리는 방법 당신 뒤에 늑대 의 야생 팩이 있다고 상상해보십시오 배열을 통해 실행하는 것은 요소를 건너 뛸 수 있다는 점을 제외하고는 하나를 걷는 것과 같습니다. 예, 때로는 …

6
토너먼트의 왕은 누구입니까?
배경 각 참가자가 다른 참가자와 하나의 게임을하는 라운드 로빈 토너먼트를 고려하십시오. 추첨이 없으므로 모든 게임에는 승자와 패자가 있습니다. 참가자 A는 A는 왕이 다른 모든 참가자에 대한 경우, 토너먼트의 B , 중 A가 이길 B를 , 또는 A가 다른 참가자 이길 C 차례로 비트 B를 . 모든 토너먼트에는 적어도 하나의 왕이 …

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