lynn.github.io

Jelly Puzzles

Set 1

Write 3-byte Jelly programs that produce these outputs.

The puzzles are very roughly sorted by difficulty.

  1. [-1, 2]
  2. [0, [0, 1], [0, 1, 2]]
  3. [1, 0, -1]
  4. [-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5]
  5. [1, 5, 25, 125, 625]
  6. [100, 1, 0, 0]
  7. [1, 0, 1, 0, 1, 0, 1, 0]
  8. ː
  9. 81000000
  10. [1, 2, 1, 2, 1, 2]
  11. [[[0, 0], 0], 0]
  12. [9, 0, 0, 9]
  13. [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4]
  14. [[1, 2], [1, 3], [2, 3]]
  15. [[1, 0, 0], [0, 1, 0], [0, 0, 1]]
  16. [1, 5, 10, 10, 5, 1]
  17. [-5, -1]
  18. [4, 25, 36]
  19. [[1, 2, 3], [4, 5, 6]]
  20. [inf, 1]
  21. [0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0]
  22. [[2, 1], [3, 1]]
  23. [3, 4, 6, 7, 8, 9, 1, 2, 5, 10]
  24. 500500
  25. [[1, 1], [1, 2], [2, 1], [2, 2]]
  26. [[1, 2, 3, 4, 5, 6, 7, 8, 9], 10]
  27. [3125, 3125]
  28. 166167000
  29. [1, 1, 3, 1, 1, 3, 1, 1, 9]
  30. [1, 6, 2, 6, 3, 6, 4, 6, 5]
  31. [2, 2, 2, 5, 5, 5]
  32. -99.99
  33. [2, 3, 1]
  34. [7, 6, 1, 0]
  35. 1814400
  36. [[2, 8], [1, 4], [6, 10], 7, [3, 5, 9]]
  37. [17, 18]
  38. [0, 0, 2, 3, 4]
  39. [0, 2, 2, 4, 4, 6]
  40. [2, 7, 13]
  41. [1000, 1000, 1000, 1]
  42. 11111111110
  43. [9, 0, 1]
  44. eeooyy
  45. [46, 53]
  46. [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2]
  47. [3, 1, 4]
  48. [10, 9, 7]
  49. 112 30
  50. [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]