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 error means that you attempt to read out of bounds of a vector, or a string.
It's a bug in your solution, and not a kata issue.
What does your solution return for
n=9876543210
?This comment is hidden because it contains spoiler information about the solution
Can you help me to figure out what does this error means?
UndefinedBehaviorSanitizer:DEADLYSIGNAL
==1==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000042c030 bp 0x7ffd4839c200 sp 0x7ffd4839c1c0 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 0x42c02f (/workspace/test+0x42c02f)
#1 0x42581f (/workspace/test+0x42581f)
#2 0x429268 (/workspace/test+0x429268)
#3 0x4285a2 (/workspace/test+0x4285a2)
#4 0x426dbe (/workspace/test+0x426dbe)
#5 0x42662d (/workspace/test+0x42662d)
#6 0x42631b (/workspace/test+0x42631b)
#7 0x42bcd5 (/workspace/test+0x42bcd5)
#8 0x42595d (/workspace/test+0x42595d)
#9 0x7f4c5f37cbf6 (/lib/x86_64-linux-gnu/libc.so.6+0x21bf6)
#10 0x404799 (/workspace/test+0x404799)
UndefinedBehaviorSanitizer can not provide additional info.
==1==ABORTING
I am going to close this issue as a user error. If you are really, really sure your code is correct, plese post here:
You can also come to
#help-solve
channel of Codewars Discord, someone will definitely help there.Your solution seems to return invalid, too small values:
This does not seem to be the case. After adding logs to your solution, I can see:
Your code does not produce
1234567098
.This comment is hidden because it contains spoiler information about the solution
Search table name in thos kata is a kind of fun.
I agree with your sort definintions.
Looks like no one cares about this requirement.
They will met terrible news someday - that SQL return any data in any order.