Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
It's because this kata is using postgresql, and has sqlite disabled. I'd rather this kata be categorized as PostgreSQL then, to be honest, this threw me off too.
This comment is hidden because it contains spoiler information about the solution
Mostly the same, but reversed the if statement returns
ditto~
Ditto
This would also work, if I didnt have access to min() and max() lol. Every other language will require the max from the sorted to be
lst[len(lst)-1]
unless its coding in python...? please state why. This is more understandable for other, especially more lower-level / typed languages... but why?
It's all about the segmentation of whats going on in each line... imo. Many of these answers either dont state clear variables, or theyre long, messy, or even use imports
(imo, try to not use imports on codewars, especially for python. Python is so versatile that I really havent had to yet. and hope i still wont have to.)
In my own projects, I will do this. Codewars though, I just like making an effort to try putting everything in 1 line of code. especially with python, theres been many instances of this lol.
This comment is hidden because it contains spoiler information about the solution
Ditto. Im surprised that adding the space separator in the split function actually makes it work :p
This comment is hidden because it contains spoiler information about the solution
Mine is the same, minus the much better named variables like here lol.
Huh. the in statement can find characters within a string? interesing...
Ditto. Its a little lengthy, but its elegant imo.
Loading more items...