Skip to main content
deleted 1 character in body
Source Link
Uriel
  • 13.2k
  • 4
  • 17
  • 45

Python, 48 5251 bytes

23 bytes saved thanks to @WheatWizard

lambda n:[x for x in range(100)if~-x%9+1==n orn==~-x%9or x==n]

Python, 48 52 bytes

2 bytes saved thanks to @WheatWizard

lambda n:[x for x in range(100)if~-x%9+1==n or x==n]

Python, 48 51 bytes

3 bytes saved thanks to @WheatWizard

lambda n:[x for x in range(100)if~-n==~-x%9or x==n]
edited body
Source Link
Uriel
  • 13.2k
  • 4
  • 17
  • 45

Python, 48 4752 bytes

1 byte2 bytes saved thanks to @WheatWizard

lambda n:[x for x in range(1,100)if ~if~-x%9+1==n]x%9+1==n or x==n]

Python, 48 47 bytes

1 byte saved thanks to @WheatWizard

lambda n:[x for x in range(1,100)if ~-x%9+1==n]

Python, 48 52 bytes

2 bytes saved thanks to @WheatWizard

lambda n:[x for x in range(100)if~-x%9+1==n or x==n]
added 54 characters in body
Source Link
Uriel
  • 13.2k
  • 4
  • 17
  • 45

Python, 4848 47 bytes

1 byte saved thanks to @WheatWizard

lambda n:[x for x in range(1,100)if(x ~-1)%9+1==n]x%9+1==n]

Python, 48 bytes

lambda n:[x for x in range(1,100)if(x-1)%9+1==n]

Python, 48 47 bytes

1 byte saved thanks to @WheatWizard

lambda n:[x for x in range(1,100)if ~-x%9+1==n]
Source Link
Uriel
  • 13.2k
  • 4
  • 17
  • 45
Loading