Activity for AndrewTheCodegolferâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #282439 | Initial revision | — | over 3 years ago |
Question | — |
Create a Sudoku Write the shortest program that takes no input and outputs a Sudoku solution. For reference, a Sudoku solution is a 9x9 grid of digits where each column, each row and each of the nine 3x3 grids that compose the board have all of the digits from 1 to 9. Your output may look like this: ``` 12... (more) |
— | over 3 years ago |
Edit | Post #282428 | Initial revision | — | over 3 years ago |
Answer | — |
A: Evens or Odds - you know this one Regex, 8 bytes ``` [02468]$ ``` Matches strings ending in one of 0, 2, 4, 6, 8. `[13579]$` is equivalent but with opposite outputs. Try it on Regex101! (more) |
— | over 3 years ago |
Edit | Post #282424 | Initial revision | — | over 3 years ago |
Answer | — |
A: Evens or Odds - you know this one Mathematica, 4 bytes ``` OddQ ``` Not at all my code - this is the original post by Martin Ender. Prints `True` for odd inputs and `False` for even inputs. (more) |
— | over 3 years ago |
Edit | Post #282421 | Initial revision | — | over 3 years ago |
Question | — |
Evens or Odds - you know this one Get ready for a comparatively dry question - this is intended to be one of the "the"s of the code-golfing dictionary. Create a program which inputs a base 10 non-negative whole number (without leading 0s) and outputs something if the number is odd or something else if the number is even. You M... (more) |
— | over 3 years ago |
- ← Previous
- 1
- 2
- 3
- Next →