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.
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
i like how every comment is just "this is not best practice!!!"
guys, chill
The count method is called for each unique character in the text, leading to an overall time complexity of 𝑂(𝑛⋅𝑚)
O(n⋅m), where n is the length of the text and 𝑚 is the number of unique characters. This can be inefficient for large texts.
This comment is hidden because it contains spoiler information about the solution
OP solved it, closing
OP solved it, closing. (Your initial code will not work for odd number of chained calls)
Loading more items...