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.
This is fast for smaller inputs, but .count gets extremly expensive in more repative and longer inputs. Still valid and fast for small inputs :)
Mine is faster )))
I literally have this much to learn.....
enumerate creates a pair index, value for each element in the list/array passed in. That's how he's incrementing p, by adding the index to it each time rather than actually incrementing it by 1 in each iteration. I honestly wished I would have thought of this.
Pretty concise
Eu gostaria de saber, por gentileza, por que ao tentar visualizar a mensagem "Olá mundo" por três vezes na tela de "Console", aparece essa mensagem de erro, mostrada abaixo?
676718f2f590508f5fe195f8:92 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'nonce-EDic_iE28bDa0A6CQU4dqQ==' https://code.jquery.com https://cdn.jsdelivr.net". Either the 'unsafe-inline' keyword, a hash ('sha256-A70QUc2Kse21wsA4D7Pq5ITbT/jYO221ulMbeKG0p3A='), or a nonce ('nonce-...') is required to enable inline execution.
OP's language was Python, and it seems to no longer be a problem
Approved
OCaml translation (author gone)
Don't worry about it. I solved this problem in two ways. First, classically, as I would do in a structured programming language, for example in Delphi - using a for loop and a condition. And then, for my own pleasure, in one line. Of course, it's better not to do this in real problems)
You're asking programmers to not explain why bad code is bad.
Great kata of the bowling series, well done.
I knew it! (There is should be an elegant "python" way to do that)!
Wish I had done it this clean!
damn, forgot this method exited haha
Loading more items...