«array-manipulation» 태그된 질문

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


23
O (n) 알고리즘으로 정수 배열 회전 [닫기]
폐쇄되었습니다 . 이 질문에는 세부 사항이나 명확성 이 필요 합니다 . 현재 답변을받지 않습니다. 이 질문을 개선하고 싶습니까? 이 게시물 을 편집 하여 세부 사항을 추가하고 문제점을 명확하게하십시오 . 휴일 2 년 전 . 주어진 숫자 k만큼 정수 배열을 회전시키는 함수를 작성하십시오. 끝에서 k 개의 요소는 배열의 시작 부분으로 이동하고 …

13
리스트를 이용한 조작
이 질문에서 영감을 얻었습니다 . 숫자가 포함 된 목록이 제공되면 다음을 인쇄하십시오. 목록에있는 숫자의 합과 곱 평균과 중앙값 목록의 각 용어의 차이 (예 [1,2,3] -> [1,1]: 1+1=2, 2+1=3) 오름차순으로 정렬 된 목록 목록의 최소 및 최대 리스트의 표준 편차 참고로 : 표준 편차 μ가 평균 평균 인 경우, x i …

7
코드-골프 : 패 레이 시퀀스 (I)
도전 이 작업에서는 정수 N (10 ^ 5 미만)이 주어지고 순서 N 의 Farey 시퀀스 를 출력합니다 . 입력 N은 한 줄로 주어지며 입력은 EOF로 종료됩니다. 입력 4 3 1 2 산출 F4 = {0/1, 1/4, 1/3, 1/2, 2/3, 3/4, 1/1} F3 = {0/1, 1/3, 1/2, 2/3, 1/1} F1 = …
10 code-golf  math  code-golf  math  code-golf  number  number-theory  code-golf  math  arithmetic  repeated-transformation  code-golf  geometry  popularity-contest  code-golf  code-golf  tips  haskell  math  fastest-algorithm  code-golf  combinatorics  code-golf  math  polynomials  rational-numbers  code-golf  code-golf  popularity-contest  javascript  code-golf  kolmogorov-complexity  code-golf  code-golf  math  combinatorics  permutations  code-challenge  restricted-source  random  array-manipulation  code-challenge  generation  code-golf  code-golf  ascii-art  arithmetic  division  code-challenge  number  code-golf  math  number  binary  code-golf  ascii-art  code-golf  interpreter  stack  code-golf  internet  networking  code-golf  math  code-golf  ascii-art  code-golf  math  sequence  code-golf  hello-world  restricted-source  code-golf  ascii-art  code-golf  geometry  code-golf  kolmogorov-complexity  pi  code-golf  math  combinatorics  permutations  code-golf  math  code-challenge  ascii-art  code-golf  string  code-golf  quine  code-golf  math  floating-point  golfscript  code-golf  string  code-golf  sliding-puzzle  code-challenge  arithmetic  code-golf  math  code-golf  geometry  optimized-output 

1
이항 조옮김
대부분의 APL 기호와 마찬가지로 ⍉하나의 인수 (전치)와 두 개의 인수 (이항 전치 / 재주문 차원)로 호출 할 때 다른 의미를 갖습니다. 이 과제는 후자에 관한 것으로, numpy.moveaxis파이썬이나 permuteMATLAB 에서 와 비슷하게 작동 하지만 더 강력합니다. order ⍉ Aorder별개의 항목이 있을 때 의 모든 구성원 order이 고유 order ⍉ A하면 다음과 …

6
Codegolf Rainbow : 리플렉션을 사용한 색상 정렬
소개: : 나는 두 개의 무지개 관련 문제에 게시 한 후 Codegolf 레인보우 : 정수 배열 재미 (1) 및 Codegolf 무지개 : 블랙 앤 화이트에 그리기 2 , 다음 주석에 의해 만들어진 @ChrisM 아스키에 ( 블랙 앤 화이트에 그리기 ) 도전 : 어쩌면 당신은 이것을 알고 있으며 의도적으로 설계된 것입니다 …

24
곱셈 언 델타
값 의 "곱하기 델타" 를 정의합시다 는 다음과 같습니다.[a0,⋯aN,][a0,⋯aN,][\; a_0, \cdots a_N, \;] [a1/a0,⋯,ai+1/ai,⋯,aN/aN−1][a1/a0,⋯,ai+1/ai,⋯,aN/aN−1] [\; a_1 / a_0, \cdots, a_{i+1} / a_i, \cdots, a_N / a_{N-1} \;] 역 연산, 즉 "곱하기 곱하기" 는 위의 연산이 주어진 값이되도록 값을 반환합니다. 예 주어진 값 " multiplicative undelta "연산에 대한 일반적인 해결책 은 …

10
목록 목록의 항목을 순차적으로 단계별로 튜플
도전: 비어 있지 않은 정수 목록이 제공되면 다음 형식의 튜플 목록을 반환하십시오. 첫 번째 목록의 각 요소로 시작하는 첫 번째 목록 튜플과 그 이후의 모든 목록의 첫 번째 요소가 이어 지므로 i 번째 튜플은이어야합니다 [ith element of first list, first element of second list, ... , first element of last …

2
파우더 토이의 골프 팁
이것으로 재미있게, The Powder Toy 는 골프, 특히 filt Logic에서 흥미로운 도전입니다. TPT를 도전으로 만드는 것은 문제에 접근하는 많은 많은 방법입니다. Should I use Cellular Automaton rules, SWCH logic, Filt logic, subframe filt logic, and/or wall logic? 따라서 TPT 골프 팁을 얻을 수있는 위치가 도움이 될 것이므로이 질문 스레드를 만들었습니다. …
9 code-golf  tips  the-powder-toy  code-golf  number  array-manipulation  integer  code-golf  string  decision-problem  boggle  code-golf  array-manipulation  average  code-golf  math  code-golf  decision-problem  restricted-source  code-golf  code-golf  math  primes  code-golf  random  code-golf  tips  perl  code-golf  string  parsing  code-golf  math  number  decision-problem  code-golf  math  number  code-golf  string  alphabet  code-golf  math  geometry  code-golf  interpreter  brainfuck  code-golf  code-golf  decision-problem  boggle  code-golf  math  number  sequence  code-golf  math  code-golf  ascii-art  code-challenge  restricted-source  quine  code-golf  math  decision-problem  number-theory  primes  code-golf  ascii-art  code-golf  integer  graph-theory  chess  code-golf  math  interpreter  code-golf  code-golf  code-golf  ascii-art  code-golf  arithmetic  number-theory  code-golf  string  kolmogorov-complexity  code-golf  string  decision-problem  code-golf  primes  factoring  encode  code-golf  decision-problem  code-golf  geometry  grid  code-golf  quine  code-golf  matrix  code-golf  matrix  code-golf  code-golf  number  array-manipulation  code-golf  array-manipulation  sorting  code-golf  matrix  code-golf  brain-flak 

5
Advent Challenge 6 : 운송 도크 레이블 재 지정!
<< 이전 다음 >> PPCG 커뮤니티 덕분에 산타는 선물을 운송장으로 옮기기 위해 올바른 순서로 선물을 분류했습니다. 불행히도 교통 도크 표지판이 깨져서 모든 선물을 어디에 둘지 모릅니다! 선물은 모두 범위별로 분류되지 않고 그룹화되어있어 산타가 더 나은 아이디어라고 인정했습니다. 이제, 정렬 된 순서로 선물이 주어지면 현재가 올바른 순서로 될 수있는 모든 가능한 …

23
Advent Challenge 5 : 선물을 운송 도크로 옮기십시오!
<< 이전 다음 >> PPCG 커뮤니티 덕분에 산타는 자신의 모든 선물을 재 제조 할 수 있었으며 조립 라인 후에 선물을 운송 도크로 옮길 준비가되었습니다! 운송용 썰매는 특정 크기에 특화되어 있기 때문에 산타의 운송 도크마다 현재 크기의 범위 만 보유하고 있습니다 (가벼우 며 낭비가 많고 더 무겁고 썰매가 적재물을 처리 할 …

7
유사 프라임 골프!
소개 / 배경 A의 최근 논의 에서 크립토 채팅 I가와 / 도움을 논의하기 위해 도전했다 페르마 소수도 테스트 와 카 마이 클 번호. 이 테스트는 a^(p-1) mod p==1항상 소수 p에 대해서는 적용되지만 항상 복합 소수 에는 적용되지 않는 전제를 기반으로합니다 . 이제 카 마이클 숫자는 본질적으로 Fermat의 테스트 최악의 적입니다 …
9 code-golf  math  sequence  number-theory  primes  code-golf  string  code-golf  math  combinatorics  permutations  restricted-complexity  code-golf  array-manipulation  code-golf  number  sequence  code-golf  number  sequence  code-golf  binary-matrix  code-golf  math  tips  javascript  algorithm  code-golf  string  code-golf  number  sequence  code-golf  math  arithmetic  parsing  code-golf  number  sequence  primes  code-golf  string  ascii-art  geometry  integer  code-golf  geometry  code-golf  number  array-manipulation  code-golf  math  geometry  code-golf  number  sequence  arithmetic  integer  code-golf  string  kolmogorov-complexity  code-golf  number  code-golf  number  chess  code-golf  sequence  decision-problem  subsequence  code-golf  math  number  primes  code-golf  primes  permutations  code-golf  integer  probability-theory  statistics  code-golf  string  code-golf  sequence  decision-problem  parsing  board-game  code-golf  binary  graph-theory  code-golf  board-game  classification  tic-tac-toe  code-golf  ascii-art  polyglot  code-golf  date  code-golf  geometry 

13
비교 체인 확장
대부분의 언어와는 달리, 파이썬은 평가 a<b<c부울 비교에 반대가 실제로 세 개의 숫자를 비교, 수학에서 할 것처럼 a<b로를 c. 이것을 C (및 다른 많은 것)로 쓰는 올바른 방법은입니다 a<b && b<c. 이 도전에서, 당신의 임무는 파이썬 / 직관적 인 표현에서 다른 언어로 쓰여지는 방법으로 임의 길이의 비교 체인을 확장하는 것입니다. 명세서 …
9 code-golf  parsing  conversion  syntax  code-golf  sequence  primes  code-challenge  geometry  optimization  code-golf  graph-theory  code-golf  number-theory  primes  integer  code-golf  source-layout  cops-and-robbers  code-golf  source-layout  cops-and-robbers  code-golf  sequence  primes  integer  code-golf  math  number-theory  primes  rational-numbers  code-golf  math  sequence  number-theory  primes  code-golf  string  code-golf  math  combinatorics  permutations  restricted-complexity  code-golf  array-manipulation  code-golf  number  sequence  code-golf  number  sequence  code-golf  binary-matrix  code-golf  math  tips  javascript  algorithm  code-golf  string  code-golf  number  sequence  code-golf  math  arithmetic  parsing  code-golf  number  sequence  primes  code-golf  string  ascii-art  geometry  integer  code-golf  geometry  code-golf  number  array-manipulation  code-golf  math  geometry  code-golf  number  sequence  arithmetic  integer  code-golf  string  kolmogorov-complexity  code-golf  number  code-golf  number  chess  code-golf  sequence  decision-problem  subsequence  code-golf  math  number  primes  code-golf  primes  permutations  code-golf  integer  probability-theory  statistics  code-golf  string  code-golf  sequence  decision-problem  parsing  board-game  code-golf  binary  graph-theory  code-golf  board-game  classification  tic-tac-toe  code-golf  ascii-art  polyglot  code-golf  date  code-golf  geometry 

30
int 입력 n이 주어지면 n * reversed (n)을 출력하십시오.
정수가 주어지면 n출력하십시오.n * reversed(n) reversed(n)reverse의 자릿수 일 때 얻는 숫자입니다 n. reverse(512) = 215 reverse(1) = 1 reverse(101) = 101 >>>>>>>> func(5) = 5*5 = 25 func(12) = 12*21 = 252 func(11) = 11*11 = 121 func(659) = 659*956 = 630004 최단 코드 승리! 리더 보드 코드 스 니펫 …
9 code-golf  math  arithmetic  code-golf  math  integer  code-golf  arithmetic  integer  code-golf  sequence  base-conversion  palindrome  code-golf  math  primes  integer  code-golf  parsing  conversion  syntax  code-golf  sequence  primes  code-challenge  geometry  optimization  code-golf  graph-theory  code-golf  number-theory  primes  integer  code-golf  source-layout  cops-and-robbers  code-golf  source-layout  cops-and-robbers  code-golf  sequence  primes  integer  code-golf  math  number-theory  primes  rational-numbers  code-golf  math  sequence  number-theory  primes  code-golf  string  code-golf  math  combinatorics  permutations  restricted-complexity  code-golf  array-manipulation  code-golf  number  sequence  code-golf  number  sequence  code-golf  binary-matrix  code-golf  math  tips  javascript  algorithm  code-golf  string  code-golf  number  sequence  code-golf  math  arithmetic  parsing  code-golf  number  sequence  primes  code-golf  string  ascii-art  geometry  integer  code-golf  geometry  code-golf  number  array-manipulation  code-golf  math  geometry  code-golf  number  sequence  arithmetic  integer  code-golf  string  kolmogorov-complexity  code-golf  number  code-golf  number  chess  code-golf  sequence  decision-problem  subsequence  code-golf  math  number  primes  code-golf  primes  permutations  code-golf  integer  probability-theory  statistics  code-golf  string  code-golf  sequence  decision-problem  parsing  board-game  code-golf  binary  graph-theory  code-golf  board-game  classification  tic-tac-toe  code-golf  ascii-art  polyglot  code-golf  date  code-golf  geometry 

3
오래 된 무선 전화기
친구에게 전화를 걸어야하지만 무선 전화기의 버튼이 제대로 작동하지 않습니다. 누를 수있는 유일한 버튼은 [위로], [아래로] 및 [통화]입니다. [위로] 및 [아래로]를 사용하여 최근 통화를 탐색하고 [통화]를 사용하여 선택한 이름으로 전화를 걸 수 있습니다. 내 전화에는 N최근 통화 가 포함 된 목록이 있으며 전화해야하는 모든 친구가이 목록에 있음을 알고 있습니다. 직무: 당신은 …

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