Post History
Python, 45 bytes I am not a Python guy at all, so I'm quite proud of this. I'm sure, though, there's something simple I could be doing to save myself a few bytes! lambda n:int(n,int(max("1"+n),...
Answer
#4: Post edited
# Python, <s>45</s> 48 bytesI am not a Python guy _at all_, so I'm quite proud of this. I'm sure, though, there's something simple I could be doing to save myself a few bytes! The double `max` is annoying me, for example.- <!-- language-all: lang-python -->
lambda n:int(n,max(2,int(max(n),16)+1))or len(n)[Try it online!](https://tio.run/##K6gsycjPM7YoKPqfZhvzPycxNyklUSHPKjOvRCNPJzexQsNIB8QGsfI0dQzNNLUNNTXzixRyUvOAAv8LikCyaRpKhgZKmpr/AQ)
- # Python, 45 bytes
- I am not a Python guy _at all_, so I'm quite proud of this. I'm sure, though, there's something simple I could be doing to save myself a few bytes!
- <!-- language-all: lang-python -->
- lambda n:int(n,int(max("1"+n),16)+1)or len(n)
- [Try it online!](https://tio.run/##K6gsycjPM7YoKPqfZhvzPycxNyklUSHPKjOvRCNPB0TmJlZoKBkqaedp6hiaaWobauYXKeSk5mnkaf4vKAIpSANKGyhpav4HAA)
#3: Post edited
# Python, 45 bytesI am not a Python guy _at all_, so I'm quite proud of this. I'm sure, though, there's something simple I could be doing to save myself a few bytes!- <!-- language-all: lang-python -->
lambda n:int(n,int(max("2"+n),16)+1)or len(n)[Try it online!](https://tio.run/##K6gsycjPM7YoKPqfZhvzPycxNyklUSHPKjOvRCNPB0TmJlZoKBkpaedp6hiaaWobauYXKeSk5mnkaf4vKAIpSNNQMjAwUNLU/J8GAA)
- # Python, <s>45</s> 48 bytes
- I am not a Python guy _at all_, so I'm quite proud of this. I'm sure, though, there's something simple I could be doing to save myself a few bytes! The double `max` is annoying me, for example.
- <!-- language-all: lang-python -->
- lambda n:int(n,max(2,int(max(n),16)+1))or len(n)
- [Try it online!](https://tio.run/##K6gsycjPM7YoKPqfZhvzPycxNyklUSHPKjOvRCNPJzexQsNIB8QGsfI0dQzNNLUNNTXzixRyUvOAAv8LikCyaRpKhgZKmpr/AQ)
#2: Post edited
- # Python, 45 bytes
I am not a Python guy _at all_, so I'm quite proud of this. I'm sure, though, there's someone simple I could be doing to save myself a few bytes!- <!-- language-all: lang-python -->
- lambda n:int(n,int(max("2"+n),16)+1)or len(n)
- [Try it online!](https://tio.run/##K6gsycjPM7YoKPqfZhvzPycxNyklUSHPKjOvRCNPB0TmJlZoKBkpaedp6hiaaWobauYXKeSk5mnkaf4vKAIpSNNQMjAwUNLU/J8GAA)
- # Python, 45 bytes
- I am not a Python guy _at all_, so I'm quite proud of this. I'm sure, though, there's something simple I could be doing to save myself a few bytes!
- <!-- language-all: lang-python -->
- lambda n:int(n,int(max("2"+n),16)+1)or len(n)
- [Try it online!](https://tio.run/##K6gsycjPM7YoKPqfZhvzPycxNyklUSHPKjOvRCNPB0TmJlZoKBkpaedp6hiaaWobauYXKeSk5mnkaf4vKAIpSNNQMjAwUNLU/J8GAA)
#1: Initial revision
# Python, 45 bytes I am not a Python guy _at all_, so I'm quite proud of this. I'm sure, though, there's someone simple I could be doing to save myself a few bytes! <!-- language-all: lang-python --> lambda n:int(n,int(max("2"+n),16)+1)or len(n) [Try it online!](https://tio.run/##K6gsycjPM7YoKPqfZhvzPycxNyklUSHPKjOvRCNPB0TmJlZoKBkpaedp6hiaaWobauYXKeSk5mnkaf4vKAIpSNNQMjAwUNLU/J8GAA)