New Main Posts

  The Nineteenth Bakery

Trash for The Nineteenth Byte (commonly known as TN🍞)
May 30, 2021 03:17
0
Q: Write a program to build a sudoku grid

AIDAN GREENImagine that you are a worker at a puzzle book making company. You are in charge of making sudoku puzzles. You decide to make your life easier, and write a program to do it for you. What you have to do: Write a program that outputs an 81 digit code. The code must be randomly generated, so as to b...

May 30, 2021 03:17
1
Q: System-defined short forms for function-option combinations in Mathematica?

theoristSeveral Mathematica functions have system-defined short forms, e.g., /@ for Map. Many of them are listed here: https://reference.wolfram.com/language/tutorial/OperatorInputForms.html However, there also exist some system-defined short forms for function-option combinations. E.g., Log2@ninstead ...

May 30, 2021 03:17
12
Q: A bracket amphitheater

schuelermineSpecification Write the shortest possible code in any language that does the following: It takes two arguments, x and y, and generates x + y lines of text. The first x lines should consist of y nested pairs of square brackets separated by a space surrounding a single digit, which cycles from 1 to...

May 30, 2021 03:17
4
Q: Print the last answerer's first submission

Purple PIn this challenge, your past self comes back to help or hurt someone else! The task is simple: write a full program, not a function, that prints the first code submission on this site submitted by the previous user, in the language of your first answer. (In the case that your first answer was pur...

May 30, 2021 03:17
8
Q: Generate a UK numberplate

pxegerModern British number plates (a.k.a. registration marks or license plates) use the format AANNXXX where AA is a "DVLA memory tag" (basically a location code), NN is the age identifier, and XXX is three random letters. Your task is to, given a date, generate a random valid number plate with a date...