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.
Enabled in this fork
Great kata! Thanks 😀
.
This isn't an issue. An issue is a bug with a kata. This problem is caused by your code. Your code crashes when the input is an empty vector.
I think this kata should be at level 7, but not at level 6
i get this error over and over
UndefinedBehaviorSanitizer:DEADLYSIGNAL
==1==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000425435 bp 0x7ffc2eb9db58 sp 0x7ffc2eb9db40 T1)
==1==The signal is caused by a READ memory access.
==1==Hint: address points to the zero page.
==1==WARNING: invalid path to external symbolizer!
==1==WARNING: Failed to use and restart external symbolizer!
#0 0x425434 (/workspace/test+0x425434)
#1 0x427ec4 (/workspace/test+0x427ec4)
#2 0x42679e (/workspace/test+0x42679e)
#3 0x4262fa (/workspace/test+0x4262fa)
#4 0x425ebb (/workspace/test+0x425ebb)
#5 0x42af95 (/workspace/test+0x42af95)
#6 0x4255cd (/workspace/test+0x4255cd)
#7 0x7f575501fc86 (/lib/x86_64-linux-gnu/libc.so.6+0x21c86)
#8 0x4044d9 (/workspace/test+0x4044d9)
UndefinedBehaviorSanitizer can not provide additional info.
==1==ABORTING
Approved.
python new test frameworks
Because not every character is a valid optional nose.
This comment is hidden because it contains spoiler information about the solution
using the initial value parameter for the reduce method is an elegant way of handling the empty array scenarios. Something new I've learn't today, thanks.
How does this have anything to do with math?
Like for this kind Kata!
Lite ASCII graphic kata!)
please, do not raise issues to ask for help, use questions instead
print your input. your code has false positives, for example it returns
1
for[";~P", "; D"]
. neither of these is a valid smiley according to the rule:P
is not a valid mouth, and there can be no whitespace between the eyes and the mouthLoading more items...