«permutations» etiketlenmiş sorular

Permütasyon, bazı nesne listelerinin özel bir sıralamasıdır. Permütasyon ile etiketlenmiş problemler genellikle metin anagramları dahil permütasyonların bulunmasını veya üretilmesini içerir.

15
Elle Mantık Kapıları
Temel mantık kapılarını taklit eden bir program yapın. Giriş: Tümüyle büyük harfli bir sözcük ve ardından boşluklarla ayrılmış 2 adet 1 basamaklı ikili sayı OR 1 0. Kapılar OR, AND, NOR, NAND, XOR, ve XNORihtiyaç vardır. Çıktı: Girilen mantık geçidinin çıktısına iki sayı verilir: 1 veya 0. Örnekler: AND 1 …
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 

8
Tüm Anagramları ve Subanagramları da bulun!
Bu soru büyük ölçüde bu soruya dayanmaktadır , ancak bir takım ek zorluklar içermelidir. Senin görevin Bir dize alırken, tüm olası anagramlarını yazdıran bir program veya işlev yazmalısınız. Bu sorunun amacı için bir anagram, orijinal dize ile aynı karakteri içeren ancak orijinal dize olmayan bir dizedir. Bir altanagram, girilen bir …

16
Palindrom olan dize permütasyonlarının sayısı
Girişiniz küçük İngilizce harflerden oluşan bir dize olacaktır. Göreviniz, bir palindrom olan orijinal dizenin farklı permütasyonlarının sayısını belirlemektir. Giriş dizesi 100 harfe kadar. Daha uzun bir dizgide sonuç çok büyük olabilir, bu nedenle çıktı modulo 666013 permütasyon sayısı olmalıdır. Örneğin, cababaa -> 3 Olası permütasyonlar: aabcbaa abacaba baacaab Bu kod …

8
Karınca permütasyonu oluşturun
Giriş Daha önceki bir zorlukta karınca permütasyonu sınıfını tanımladım . Bir hatırlatma, bir permütasyon olarak p gelen sayılar 0 için r-1 , her bir giriş için, eğer sabırsız, bir p [i] ilk dışında, daha önceki bazı giriş yoktur , p [ik] öyle ki , p [i] == s [ ik] …

13
Fibonacci ürünleri
Pozitif Fibonacci sayılarının benzersiz bir toplamı olarak 0'dan büyük bir sayı çağırabilirsiniz. Bu soruda bunu mümkün olan en büyük pozitif Fibonacci sayısını art arda çıkararak yapıyoruz . Örneğin: 1 = 1 2 = 2 3 = 3 4 = 3 + 1 12 = 8 + 3 + 1 13 …
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 

6
Belirli bir uzunluğun sihirli sayısı
Programınız bir girdi almalı ( naçıklama amacıyla) ve ntekrarlayan basamaklar içermeyen basamak uzunluğundaki bir sayının tüm permütasyonlarını çıkarmalıdır; burada, önceki ve dizinini içeren basamakların her biri, düştüğü sayıdaki yere bölünebilir . Sihirli sayıları burada okuyabilirsiniz . Kurallar: 1 <= n <= 10 Tekrarlanan rakamlar olamaz Baştaki 0 ​​bulunmalıdır (varsa) İle …

4
Mektupları Alın
Görev Sanırım herkes otomatik kod oluşturmayı ve çalışma sırasında biraz zaman kazanmayı seviyor. Gün boyunca çok sayıda sınıf ve üye oluşturmanız gettersgerekir ve bunların hepsini el ile oluşturmak istemezsiniz . Görev, getterstüm sınıf üyeleri için sizin için otomatik olarak oluşturulan bir program veya işlev yazmaktır . Girdi Bizim dilimizde nesneler …
13 code-golf  string  syntax  code-golf  math  primes  rational-numbers  code-golf  graphical-output  image-processing  code-golf  kolmogorov-complexity  music  audio  code-golf  string  code-golf  math  geometry  code-golf  math  sequence  combinatorics  code-golf  game  grid  board-game  code-golf  restricted-source  array-manipulation  source-layout  code-golf  base-conversion  binary  code-golf  math  physics  code-golf  math  number  date  expression-building  code-golf  array-manipulation  graph-theory  decision-problem  popularity-contest  error-correction  code-golf  kolmogorov-complexity  geometry  grid  code-challenge  arithmetic  combinatorics  set-partitions  code-golf  kolmogorov-complexity  sequence  fibonacci  code-golf  restricted-source  pristine-programming  code-golf  code-golf  string  kolmogorov-complexity  code-golf  arithmetic  code-golf  string  parsing  code-golf  code-golf  sorting  counting  permutations  3d  code-golf  code-golf  ascii-art  music  code-golf  string  code-golf  string  ascii-art  code-golf  string  code-golf  quine  polyglot  code-golf  math  string  code-golf  internet 


3
Brainfuck'ta Bitsel Operatörler
Göreviniz, aşağıdaki ikili işleçlerin her biri için bir beyin fırtınası programı oluşturmaktır. Her program girişten bir veya iki 8-bit sayı (A ve B) almalı ve belirtilen işlemi hesaplamalıdır: A XOR B A AND B A OR B A Shifted Left by 1 (circular shift) NOT A 5'in hepsini uygulamak zorunda …
13 code-golf  binary  brainfuck  code-golf  code-golf  ascii-art  random  code-golf  code-golf  code-challenge  sorting  code-golf  code-challenge  java  code-golf  statistics  code-golf  code-challenge  fastest-code  code-golf  math  code-golf  math  kolmogorov-complexity  code-golf  code-golf  array-manipulation  combinatorics  code-golf  kolmogorov-complexity  popularity-contest  underhanded  code-golf  math  floating-point  code-golf  interpreter  code-golf  music  code-golf  code-golf  cryptography  code-challenge  scrabble  code-golf  code-challenge  popularity-contest  quine  code-golf  quine  cryptography  code-golf  kolmogorov-complexity  code-golf  printable-ascii  code-golf  chess  code-golf  math  number-theory  code-challenge  c  code-golf  random  popularity-contest  hello-world  code-shuffleboard  code-golf  compression  grammars  code-golf  tips  code-golf  sequence  code-golf  string  code-challenge  sorting  permutations  code-golf  string  code-challenge  optimization  code-golf  interpreter  code-challenge  string  code-golf  math  number  fibonacci  string  compression  c#  code-golf  chemistry  popularity-contest  math  c  c++  java  code-golf  math  function  code-golf  complex-numbers  code-golf  geometry 

6
Rasyonel üretici fonksiyonun katsayılarını bulun
Bir güç serisinin katsayıları olarak bir sayı dizisi yazarsak, o güç serisine o dizinin (sıradan) üretici fonksiyonu (veya Gf) denir . Yani, eğer bazı fonksiyonlar F(x)ve tamsayılar dizisi a(n)için: a(0) + a(1)x + a(2)x^2 + a(3)x^3 + a(4)x^4 + ... = F(x) O F(x)halde üreten işlevidir a. Örneğin, geometrik seri …
12 code-golf  math  integer  polynomials  code-golf  math  abstract-algebra  restricted-time  code-golf  math  primes  code-golf  math  number  arithmetic  code-golf  quine  code-golf  number  sequence  code-golf  string  number  code-golf  array-manipulation  code-golf  number  code-golf  string  code-golf  arithmetic  code-golf  string  array-manipulation  rubiks-cube  code-golf  math  number  code-golf  tips  bash  code-golf  ascii-art  music  code-golf  arithmetic  code-golf  math  number  arithmetic  integer  code-golf  number  array-manipulation  code-golf  geometry  grid  set-partitions  code-golf  math  number  code-golf  combinatorics  code-golf  regular-expression  code-golf  permutations  code-golf  ascii-art  code-golf  number  array-manipulation  matrix  code-golf  kolmogorov-complexity  compile-time  cops-and-robbers  polyglot  cops-and-robbers  polyglot  code-golf  string  code-golf  string  ascii-art  matrix  animation  code-golf  ascii-art  code-golf  string  balanced-string  code-golf  integer  integer-partitions  expression-building 

14
Bir dosyayı sıfırlarla doldurma
Bugünkü göreviniz mevcut bir dosyayı almak ve belirli bir boyuta ulaşana kadar sıfır eklemek olacaktır. Geçerli dizindeki bir dosyanın adını fve birkaç bayt alan bir program veya işlev yazmalısınız b. Orijinal içeriğini korurken sonuna yeni değerler bayt olacak şekildef sıfır (ascii 0s değil boş bayt) yazmalısınız b. fAdında yalnızca alfasayısal …
12 code-golf  file-system  code-golf  code-golf  string  code-golf  string  code-golf  random  game  compression  code-golf  array-manipulation  sorting  code-golf  number  arithmetic  primes  code-golf  geometry  code-golf  code-golf  decision-problem  regular-expression  code-golf  string  math  code-challenge  restricted-source  integer  palindrome  code-golf  string  palindrome  code-challenge  busy-beaver  code-golf  ascii-art  code-golf  string  code-golf  string  permutations  code-golf  code-golf  string  permutations  code-golf  number  primes  function  set-theory  code-challenge  hello-world  code-golf  math  number  decision-problem  code-golf  code-golf  sequence  arithmetic  integer  code-golf  math  number  arithmetic  decision-problem  code-golf  kolmogorov-complexity  alphabet  code-golf  combinatorics  graph-theory  tree-traversal  code-golf  set-theory  code-golf  interpreter  brainfuck  substitution  code-golf  quine  permutations 

10
Önden Arkaya Permütasyon Endeksi
Meydan okuma Öğe sayısı göz önüne alındığında, nboş olmayan, sıralanmış bir listede, adı geçen permütasyonlar sözlükbilimsel olarak sıralanırsa i(n), " Önden Arkaya Permütasyon " un tüm permütasyonlar listesinde yer alacağı endeksi çıkarır. Sonuçlar 0 veya 1 tabanlı olabilir, sadece hangisi olduğunu söyleyin (yani ideğil n). Önden Arkaya Permütasyon ... tüm …

3
Fonemik Abugida
Karakterler Bu Unicode karakterlerine İngilizce IPA ünsüzleri diyelim : bdfhjklmnprstvwzðŋɡʃʒθ Ve şu Unicode karakterlerine İngilizce IPA ünlüleri diyelim : aeiouæɑɔəɛɜɪʊʌː (Evet, ːsadece uzun sesli harftir, ancak bu zorluğun amacı için bir sesli harf olarak ele alın.) Son olarak, bunlar birincil ve ikincil stres işaretleri : ˈˌ Not ɡ( U +, …

2
Kipple'ı yorumla!
Giriş Kipple , Mart 2003'te Rune Berg tarafından icat edilen yığın tabanlı, ezoterik bir programlama dilidir. Kipple 27 yığın, 4 operatör ve bir kontrol yapısına sahiptir. Yığınlar Yığınları adlandırılır a- zve 32-bit işaretli tamsayı içerir. @Çıktı numaralarını daha uygun hale getirmek için özel bir yığın da vardır . Bir sayı …
12 code-golf  interpreter  code-golf  string  code-golf  math  string  code-golf  ascii-art  path-finding  code-golf  string  ascii-art  code-golf  interpreter  binary  logic-gates  logic  code-golf  ascii-art  code-golf  graph-theory  code-golf  string  code-golf  number  sorting  code-golf  number-theory  random  cryptography  polynomials  code-golf  number  code-golf  math  number  sequence  code-golf  quine  code-generation  code-golf  arithmetic  set-theory  code-golf  sequence  code-golf  code-golf  string  math  fastest-code  optimization  code-golf  code-golf  internet  stack-exchange-api  code-golf  array-manipulation  code-golf  string  internet  string  code-challenge  internet  test-battery  code-golf  math  pi  code-golf  arithmetic  primes  code-golf  array-manipulation  code-golf  string  code-golf  string  palindrome  code-golf  sequence  number-theory  fastest-algorithm  code-golf  math  number  base-conversion  code-golf  number-theory  sorting  subsequence  search  code-golf  permutations  code-challenge  popularity-contest  code-generation 

2
Döndürme güvenli Latin kareler
Latin karesi, X veya Y sütunlarında yinelenen sembol içermeyen bir karedir . Örneğin: ABCD DABC CDAB BCDA böyle bir karedir. Her sütun ve satırın aynı 4 harfin permütasyonunu nasıl içerdiğine dikkat edin. Bununla birlikte, Latin karemizin bir sorunu var: İkinci satırı ( DABC) 1 sola döndürürsem, sonuçta ABCDyukarıdaki permütasyonla aynı …

Sitemizi kullandığınızda şunları okuyup anladığınızı kabul etmiş olursunuz: Çerez Politikası ve Gizlilik Politikası.
Licensed under cc by-sa 3.0 with attribution required.