Domande taggate «decision-problem»

Per le sfide che implicano decidere se l'input soddisfa o meno determinati criteri e fornire alcuni dati, che rappresentano tale decisione.




6
Numeri che sono palindromi in N basi
Dato un numero intero non negativo n >= 0, genera per sempre la sequenza di numeri interi x_i >= 3che sono palindromi in nbasi esattamente diverse b, dove può essere la base 2 <= b <= x_i-2. Questo è fondamentalmente l'inverso di OEIS A126071 , dove vengono emessi gli indici …
10 code-golf  sequence  base-conversion  palindrome  code-golf  array-manipulation  matrix  code-golf  string  ascii-art  code-golf  ascii-art  physics  code-golf  number  sequence  fibonacci  code-golf  ascii-art  packing  code-golf  string  hexadecimal  code-challenge  restricted-source  decision-problem  binary  code-golf  code-golf  code-golf  stack-exchange-api  code-golf  string  parsing  generation  data-structures  code-golf  kolmogorov-complexity  graphical-output  code-golf  array-manipulation  integer  generation  data-structures  code-golf  number  random  probability-theory  king-of-the-hill  java  minesweeper  code-golf  string  kolmogorov-complexity  animation  code-golf  string  code-golf  code-golf  quine  code-golf  internet  code-golf  arithmetic  base-conversion 


4
Prelude Syntax-Checker
Preludio è un linguaggio di programmazione esoterico, che ha pochissime, ma inusuali, restrizioni su ciò che costituisce un programma valido. Qualsiasi blocco di testo ASCII stampabile ("blocco" significa che le linee di ASCII stampabile sono separate da nuove righe - 0x0A) è valida a condizione che: Ogni colonna (verticale) di …

2
Convalida dell'email
Scrivi una funzione o un programma per convalidare un indirizzo e-mail con RFC 5321 (alcune regole grammaticali trovate in 5322 ) con il rilassamento che puoi ignorare i commenti e piegare spazi bianchi ( CFWS) e letterali di indirizzi generalizzati. Questo dà la grammatica Mailbox = Local-part "@" ( Domain …

7
Controlla se una stringa è un riordino di due gemelli
Spiegazione Due stringhe possono essere mischiate mescolando le loro lettere per formare una nuova stringa, proprio come due pile di carte possono essere mescolate per formare una singola pila. Ad esempio, le stringhe HELLOe WORLDpossono essere mescolate per formare HWEOLRLLOD, o HEWORLLLDO, o forse semplicemente HELLOWORLD. E ' non è …

16
Corrispondenza argomento abbonamento MQTT
sfondo MQTT (trasporto di telemetria di accodamento messaggi) è un protocollo di messaggistica basato su pubblicazione e sottoscrizione ( Wikipedia ) standard ISO . Ogni messaggio ha un argomento, ad esempio i seguenti esempi: myhome/groundfloor/livingroom/temperature USA/California/San Francisco/Silicon Valley 5ff4a2ce-e485-40f4-826c-b1a5d81be9b6/status Germany/Bavaria/car/2382340923453/latitude I client MQTT possono iscriversi agli argomenti dei messaggi utilizzando …

4
È valido UTF-8 modificato?
UTF-8 è un modo relativamente semplice per codificare i punti di codice Unicode in un formato a larghezza variabile in modo tale da non confondere facilmente il codice che non è a conoscenza di Unicode. Panoramica UTF-8 I byte nell'intervallo 1-0x7F, inclusi, sono normalmente validi I byte con il modello …

7
Magic: The Gathering, Paying for Spells
Per ulteriori qualità MTG: Magic: The Gathering Combat with Abilities Premessa: In Magic: the Gathering, lanci incantesimi pagando il loro costo di mana toccando terre per l'importo richiesto. Queste terre possono produrre uno dei cinque colori che sono: Bianco (W) Blu (U) Nero (B) Rosso (R) Verde (G) Il costo …

2
Suggerimenti per giocare a golf in The Powder Toy
Divertiti con questo, The Powder Toy è una sfida interessante per il golf, in particolare con la logica dei filtri. La cosa che rende TPT una sfida sono i molti molti molti molti modi per affrontare un problema: Should I use Cellular Automaton rules, SWCH logic, Filt logic, subframe filt …
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 

7
Golf gli pseudoprimi!
Introduzione / Contesto In una recente discussione nella chat crittografica sono stato sfidato a discutere / aiutare con il test di primalità di Fermat e i numeri di Carmichael. Questo test si basa sulla premessa che a^(p-1) mod p==1sarà sempre valida per i numeri primi p, ma non sempre per …
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
Espandi catene di confronto
A differenza di molti linguaggi, Python valuta a<b<cin quanto sarebbe stato fatto nel campo della matematica, in realtà a confronto i tre numeri, al contrario di confrontare il booleano a<ba c. Il modo corretto di scrivere questo in C (e molti altri) sarebbe a<b && b<c. In questa sfida, il …
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 

4
Badugi, chi vince?
Ispirato da questa sfida e correlato a questa . sfondo Badugi [bæduːɡiː] è una variante di draw-poker low-ball. L' evento $ 1K di Pokerstars World Cup Of Online Poker inizia entro 3 ore e dovrò sapere quanto sono buone le mie mani! Il gioco utilizza un mazzo standard di 52 …

Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.