Skip to main content
edited body
Source Link
gnibbler
  • 15.2k
  • 4
  • 49
  • 75

Python - 61 chars

Recursive

importfrom random;f=lambdarandom import*;f=lambda l:l==sorted(l)or random.shuffle(l)>f(l)

Python - 61 chars

Recursive

import random;f=lambda l:l==sorted(l)or random.shuffle(l)>f(l)

Python - 61 chars

Recursive

from random import*;f=lambda l:l==sorted(l)or shuffle(l)>f(l)
deleted 3 characters in body; added 2 characters in body
Source Link
gnibbler
  • 15.2k
  • 4
  • 49
  • 75

Python - 6261 chars

Recursive

import random;f=lambda l:l==sorted(l)or( random.shuffle(l),f>f(l))

Python - 62 chars

Recursive

import random;f=lambda l:l==sorted(l)or(random.shuffle(l),f(l))

Python - 61 chars

Recursive

import random;f=lambda l:l==sorted(l)or random.shuffle(l)>f(l)
Source Link
gnibbler
  • 15.2k
  • 4
  • 49
  • 75

Python - 62 chars

Recursive

import random;f=lambda l:l==sorted(l)or(random.shuffle(l),f(l))