+ 8
heres mine...
short nd efficient..(version 1)
@ Ace ## nice challenge sir
(version 2)
## 2 line code
https://code.sololearn.com/cbHJwBPGfv82/?ref=app
## input a integer ##
https://code.sololearn.com/c6ODM0Tw0bCR/?ref=app
+ 16
+ 15
+ 10
bookmarking thread
+ 9
@VcC what do you propose?
+ 4
just did it with
python, itertools, set, index
https://code.sololearn.com/cOHP6DbYndUY
+ 4
https://code.sololearn.com/wlfpFe6hKJqO/?ref=app added some comments for better understanding
+ 3
Ace, what's supposed to happen when the current permutation is the largest one? What do you want people to do?
+ 2
My second try
https://code.sololearn.com/cj84rxxW8PxC/?ref=app
+ 2
Seems not difficult.
https://code.sololearn.com/cyDF0QkjCi8e/#cpp
+ 2
Thanks for the challenge.
Here's my try...
https://code.sololearn.com/czVeev3s3N0I/?ref=app
+ 2
have to make
+ 2
for performance one could try
- perm last 2 digits
- perm last 3 digits
....
and find here a good solution it will be a good solution in general
+ 2
@VcC Excuse me.
Your code is pretty nice, But I think the ability of comparing between integer and character is only a language matter. So I think we need not be proud it so much.
I think my code will work "ze..90a" if all to_i methods are removed.
+ 1
all these solution have very bad execution times. If you google this you will see these are N time solutions with N = number of digits
+ 1
@sayan exactly what i was mentionning. Prefer the longer one easier to read. And i want to keep my king of python oneliners title.
+ 1
why it can't be 531 for 153 ???
+ 1
#john did you change sth?
0
are repeated digits allowed? if that's the case, you have to specify a max.