14
m_vv
4 10 32
914/ 945
Last seen 4 months ago
Member for 5 years, 10 months, 2 days
Difficulty Normal
Best reviews / Newest reviews
str.split-oduvan 5 1
Cool, but not optimal solution. **strip()** Return a copy of the string with the leading and trailing characters removed. we need only first word Why do you need care about trailing characters? split() Return a list of the words in the string, using sep as the delimiter string. If maxsplit is give More
Second Index-Pooja_Checkio 1 1
maybe you can think about why do you create 2 addition variable and perform slicing of text? Maybe you read about function find and refactor your solution. More
Fizz Buzz-Pooja_Checkio 1 1
Good solution, but I recommend you to read "PEP 8 -- Style Guide for Python Code" More
AAA in alphas-Ilis 1 1
Your algo read complete list even if three words were at the beginning. More
try convert str_number into int with radix basis - except return -1-mathieu.roesch 1 1
Optimal solution, but creating of nb is not necessary. You can use return several times. More
isupper()-vadim.kashko 1 1
clear but maybe you should think about names of variables More
First-MarcAureleCoste 1 1
True if (index_second - index_first) == 1 else False is unnecessary you may simple write (index_second - index_first) == 1 result will be same More
range with step-frankiser 1
you may read about slicing. you can do this without range. More
First (='ω'=) - a plain solution-Magu 1
please read about re.findall your solution can be improved More
First-oracloid 1
your code made text.lower().split() on each iteration. You can make more optimal solution. More
based on flattering of list-m_vv
how to solve this more clearly I don't know More
First-emmermarci
you may improve your code and emit variable f. More
Second-krzysztofc10
good approach, but when you count symbol you should check all text. you can be more optimal. More
First-mikra
Nice, but this algo may use a lot of memory. More
First-idavhid 1
Please note args has type tuple! Why did you make list from tuple? You can find out max or min from tuple like you made with list More
init dict and split by word.-yanhua.dev
rather good. It is useful to you to find out information about this "the value (an empty list or dict) must be initialized the first time a given key is used. While this is relatively easy to do manually, the defaultdict type automates and simplifies these kinds of operations." see more https://www. More
short code-lg8n24jrnkj
cool one line solution for those who know ternary operator. More
One liner-OrginalS
Cool, but difficult to understand. Checking 'right' in i maybe impove speed, but replace make this although. More
Bigger Price-yehor.tishyn
making bicycle more and more times, it is not optimal, but for exercise may be usefull More
First-goranmrd
len(set(elements)) == 0 or len(set(elements)) == 1 equivalent len(set(elements))<=1 More
1
2 3 4