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.
Огромное спасибо автору, за проделанную работу. Потрясающее Ката. Очень понравилось. Для тех, кто решает на Swift, обратите внимание, что .utf8, дает ошибку, по этому не стоит его использовать и если у Вас не получается решить задачу, то внимательно прочитайте инструкции и сведения в "Интернете", мне очень помогло. Всем хорошего кодирования!!!
real🤣
This comment is hidden because it contains spoiler information about the solution
most clever solution with side effects
on the first iteration of your
while
loop you callstrlen()
on uninitialized memory returned bymalloc()
(it is not guaranteed to be zeroed)the code you posted crashes on an empty list, as it dereferences
NULL
your new code passes the tests most of the time, though it allocates a static amount of memory that is not always enough for the return string
;-)
Thanks, I got it, I got the problem.
dc
at this point of your program ?realloc()
does not expand a buffer. it allocates what you requested, no more, no less. if the new size is less than the old one, the buffer will shrink.This comment is hidden because it contains spoiler information about the solution
Does the AI also generate the ascii art?
The logic of this decision looks unfortunate and may lead to undesirable consequences. It may be worth rethinking the approach and finding a more optimal solution.
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣤⣤⣤⣄⣀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⣠⡾⠟⠋⠀⠀⠀⠀⠙⠻⣦⡀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⣠⡾⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢷⡀⠀⠀⠀⠀
⠀⠀⠀⠀⣴⡟⠀⠀⠀⣤⣄⠀⠀⣠⣄⠀⠀⠀⠘⣷⠀⠀⠀⠀
⠀⠀⠀⢠⡿⠀⠀⠀⠈⠿⠿⠀⠀⠿⠿⠀⠀⠀⠀⢿⡆⠀⠀⠀
⠀⠀⠀⣾⡇⣴⣶⣦⠀⠀⠀⠠⠤⠀⠀⠀⣴⣶⣦⠸⣷⠀⠀⠀
⠀⠀⠀⢿⡇⠻⠿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠙⠿⠟⢸⡿⠀⠀⠀
⠀⠀⠀⠘⢿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡾⠃⠀⠀⠀
⠀⠀⠀⠀⠀⠙⠦⣄⠀⠀⠀⠀⠀⠀⢀⣠⠴⠋⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠈⠉⠛⠲⠶⠖⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀
Eloquent comment tho
This comment has been reported as abusive
JS fork 🤖
mocha/chai
assertions +lodash
for randomnessLoading more items...