«javascript» 태그된 질문

이 과제는 JavaScript 언어와 관련이 있습니다. 특정 언어로 답변해야하는 문제는 일반적으로 권장하지 않습니다.

26
제곱 단어 만들기
도전 당신의 작업은 주어진 문자열 입력을 취하고 입력을 제곱 형식으로 출력하는 프로그램을 만드는 것입니다. 빈 문자열은 빈 문자열을 반환해야합니다. 예 주어진 입력 : golf 프로그램은 다음을 출력해야합니다 : golf o l l o flog 입력: 123 산출: 123 2 2 321 입력: a 산출: a 입력: Hello, world! 출력 (와 …

3
루빅스 큐브 해결
합리적인 시간과 이동 시간 내에서 Rubik의 큐브 (3 * 3 * 3)를 해결하는 가장 짧은 프로그램을 작성하십시오 (예 : 기계에서 최대 5 초, 1000 미만). 입력 형식은 다음과 같습니다. UF UR UB UL DF DR DB DL FR FL BR BL UFR URB UBL ULF DRF DFL DLB DBR 이 …

9
"정렬"알고리즘
스탈린 정렬이라고도하는 "정렬 알고리즘"이 있는데, 목록을 정렬하기 위해 목록에서 요소를 순서대로 정렬 할 때까지 요소를 제거하면됩니다. 예를 들어 목록 [1, 2, 4, 5, 3, 6, 6] 스탈린 정렬을 사용하여 "정렬"된 경우 [1, 2, 4, 5, 6, 6] 순서가 잘못되어 세 개가 제거되었습니다. 이제 목록을 정렬하기 위해 요소를 제거하는 많은 방법이 …

28
수퍼 로그 계산
이것은 간단한 도전이어야합니다. 숫자 감안할 때 n >= 0, 출력 슈퍼 로그 (로그 - 스타 또는 로그 *를, 또는 로그 반복 하기 때문에 동일, n이 문제에 대한 부정적인 결코합니다.)의 n. 이것은 tetratation 에 대한 두 가지 역함수 중 하나입니다 . 다른 하나는 관련 질문 에있는 수퍼 루트 입니다. 예 Input …
29 code-golf  math  code-golf  array-manipulation  sorting  code-golf  math  arithmetic  matrix  code-golf  string  kolmogorov-complexity  code-golf  string  code-golf  math  sequence  arithmetic  recursion  code-golf  math  ascii-art  sequence  code-golf  math  array-manipulation  code-golf  code-golf  kolmogorov-complexity  code-golf  string  code-golf  string  decision-problem  code-golf  array-manipulation  tips  javascript  json  code-golf  math  string  number  number-theory  code-golf  math  sequence  fibonacci  number  arithmetic  fastest-code  integer  code-golf  math  sequence  code-golf  string  file-system  tips  golfscript  code-golf  string  code-golf  string  natural-language  code-golf  string  file-system  code-golf  math  array-manipulation  code-challenge  image-processing  compression  code-golf  math  number  sequence  code-golf  math  combinatorics  regular-expression  code-golf  sequence  pi  code-golf  ascii-art  code-golf  string  array-manipulation  sorting  code-golf  string  graph-theory  code-golf  string  code-golf  string  ascii-art  code-challenge  compression  code-golf  code-golf  math  sequence  number-theory  code-golf  maze  graph-theory  code-golf  math  sequence 

11
StackOverflow 분해 (소책자) [닫기]
때때로 사람들은 StackExchange 네트워크 (특히 SO)에서 좌절감을 느낍니다. 당신의 임무는 어떤 방식으로 StackOverflow가 폭발 / 폭파 / 파괴되도록하는 북마크를 만드는 것입니다. 이렇게하면 좌절감을 더 잘 분산시킬 수 있습니다. 규칙: 북마크릿 형태 여야합니다. Chrome 및 Firefox에서 작동해야합니다 (최신 안정) jQuery가 사이트에 있으므로 사용할 수 있습니다. explosionThisPage.js 또는 이와 유사한 것을 가져 …

6
언덕의 팀!
이 도전은 @HelkaHomba 의 Red vs. Blue-Pixel Team Battlebots 의 탁월한 도전에서 영감을 받았습니다 . 그 도전은 아마도이 사이트에서 본 최고의 도전 일 것입니다. 이제까지. 내 도전은 여전히 ​​많이 다르지만 @HelkaHomba는 영감을 얻을만한 가치가 있습니다. 개요 입니다 팀 왕 -의 언덕 팀이 팀에 살아있는 모든 선수를함으로써 승리. 다시 말해, 마지막 …

8
KOTH : 모두가 토큰을 좋아합니다
이 게임에서 두 명의 플레이어는 가장 많은 점수의 토큰을 먹기 위해 경쟁하지만 비틀기가 있습니다! 같은 색깔의 행에 여러 개의 토큰을 먹으면 점점 보너스가 증가하지만 조심하십시오. 그렇지 않으면 상대방이 원하는 토큰을 먹음으로써 계획을 방해합니다! 규칙 : 1 대 1 n x n 보드 (5x5에서 15x15 사이의 임의 크기) 당신과 당신의 상대는 …

15
반 회문 퍼즐
회문은 그 자체로 반대되는 단어입니다. 이제 회문처럼 보이지만 그렇지 않은 단어가 있습니다. 단어를 고려 예를 들어 sheesh, sheesh그 반대이기 때문에 회문 아닌 hseehs다른 어떤 우리가 생각 그러나 경우에, sh다음이 역의이다, 단일 문자로 sheesh. 이런 종류의 단어를 우리는 반 회문이라고 부릅니다. 청크의 순서가 반대로되어 원래 단어가 형성되도록 단어를 몇 개의 청크로 …


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 

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 

30
0이 아닌 고유 한 숫자로 임의의 n 자리 숫자를 얻습니다.
나는 이 질문을 읽고 그것이 좋은 도전이 될 것이라고 생각했다. 태스크 입력 0<n<10으로 임의의 숫자를 생성하십시오. 정확히 n 자리 첫 번째가 아닌 0 그래서 f(n)>10**(n-1)-1 고유 숫자 우승 기준 이것은 코드 골프 이므로 가장 짧은 코드가 승리합니다. 무작위 나는 균등하게 분포 된 것을 의미합니다. 따라서 프로그램의 관점에서 볼 때 각각의 …
22 code-golf  number  random  grid  game  king-of-the-hill  javascript  code-golf  arithmetic  statistics  code-golf  math  code-golf  math  code-golf  string  palindrome  code-golf  string  interactive  code-golf  quine  polyglot  code-golf  string  stack-exchange-api  code-golf  number-theory  decision-problem  code-golf  tips  code-golf  string  internet  code-golf  graphical-output  image-processing  fractal  code-golf  ascii-art  geometry  hexagonal-grid  code-golf  string  restricted-source  hello-world  code-golf  game  code-golf  cipher  code-golf  permutations  cops-and-robbers  permutations  cops-and-robbers  code-golf  internet  stack-exchange-api  code-golf  ascii-art  random  code-golf  tips  code-golf  ascii-art  code-golf  code-golf  kolmogorov-complexity  code-golf  string  unicode  code-golf  number  sequence  primes  palindrome  code-golf  game  decision-problem  code-golf  math  geometry  code-golf  graphical-output  interactive  code-golf  set-partitions  code-golf  number  arithmetic  restricted-source  code-golf  decision-problem  python  recursion  code-golf  ascii-art  code-golf  source-layout  code-golf  function  recursion  functional-programming  code-golf  game  combinatorics  permutations  code-golf  string  file-system  code-golf  string  hashing  code-golf  stack-exchange-api  code-golf  string  code-golf  math  number  arithmetic  polyglot 

13
서쪽에서 가장 빠른 총, 언덕의 왕 도전
이것은 라운드 로빈에서 언덕의 왕 도전입니다. 서부의 최고의 총잡이를 찾는 것은 전투입니다! 이 콘테스트에서 경쟁하려면 두 가지 기능을 수행해야합니다. 첫 번째는 총잡이의 특성을 설정하고 두 번째는 총잡이의 주요 논리 기능입니다. 속성 기능 function () { var bot = { name: "testBot", numbOfBullets: 7, reloadSpeed: 1, shotsPerTurn: 1, moveSpeed: 2 } …

20
상대에게 접근 할 수있는 죄수의 딜레마
이 도전에서, 당신은 죄수의 딜레마 인 봇을 쓸 것입니다. 캐치가 있습니다 : 이전 게임의 역사에 접근 할 수 없습니다. 대신, 당신은 상대 자신에 액세스 할 수 있습니다. 이 버전에서는 두 플레이어가 모두 협력하면 +2 점을 받고 결함이 둘 다 있으면 +1 점을 얻습니다. 하나가 협력하지만 하나의 결함 만 있으면 탈북자는 …

5
JavaScript에서 알파벳 생성
이 작업을 수행하는 더 좋은 방법은 없지만 확실하게 물어볼 수는 없다고 생각합니다. 입력하는 데 지쳤습니다 a='abcdefghijklmnopqrstuvwxyz'. 멋진 언어는 Range('a'..'z')유사하다 우리는 가능한 짧은 JS를 어떻게 만들 수 있습니까? for(i=97,a='';i<123;){a+=String.fromCharCode(i++)} 알파벳보다 길지만 어딘가에 망칠 수는 없습니다. 50 자 미만으로 z를 생성하는 불쾌한 비트 쉬프트 방법이 있기를 바랍니다. 나는 엉망 i=97;Array(26).map(x=>String.fromChar....i++ 하지만 내가 …

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