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.
Not necessarily the case due to different version and packages installed between your IDE && CW language. Read this for more info && use
question
label next time.This comment is hidden because it contains spoiler information about the solution
Hi, if you have not yet got an answer to your question/ figured it out yet, I beleive you have copied the incorrect sequence. there should be a 4 where you put a 5 instead ie:
[-2, 1, -3, 4, -1, 2, 1, -5, 4]
not
[-2, 1, -3, 5, -1, 2, 1, -5, 4]
making the max sub-array [4, -1, 2, 1] which would be equal to 6.
Hope this helps
should work on the example
Log
[-2, 1, -3, 5, -1, 2, 1, -5, 4]
7 should equal 6
hello can i know why it should be 7 if [ 5, -1, 2, 1] is 7
ya my bad thanks.
This comment is hidden because it contains spoiler information about the solution
Log
[[1, 2, 3, 4, 5, 6, 7, 8, 9],
[2, 3, 4, 5, 6, 7, 8, 9, 1],
[3, 4, 5, 6, 7, 8, 9, 1, 2],
[4, 5, 6, 7, 8, 9, 1, 2, 3],
[5, 6, 7, 8, 9, 1, 2, 3, 4],
[6, 7, 8, 9, 1, 2, 3, 4, 5],
[7, 8, 9, 1, 2, 3, 4, 5, 6],
[8, 9, 1, 2, 3, 4, 5, 6, 7],
[9, 1, 2, 3, 4, 5, 6, 7, 8]]
True should equal False
can u take a look on that please because i dont know it should be fine
Looks like u alr solved it so
closing~~
ya my bad thanks.
You don't need to sort anything, that's the point. This kata isn't about longest sorted common subsequence.
Anyway, not a kata issue, so closing...
elo
if x,y is anothertest , notatest
why i get 'aenost' should equal 'nottest'
isn't wrong ?
finaltest zzzfinallyzzz
'afiln' should equal 'final'
is f - i subsequence
or a -f is more logic cuz we sorting it as subsequence of letters (a-z) or numbers(0-9) not making usfull words and final got 0 subsequence of letters
The main problem is in your if- else statement. Give a close look at the problem statement, it says that the password should be
atleast
6 characters. I hope you got your error.The main problem is in your if- else statement. Give a close look at the problem statement, it says that the password should be
atleast
6 characters. I hope you got your error.Nice kata, even though you can pass it with a brute force algorithm, it still got me curious enough to learn the effecient algorithm.
btw, this might help at some point
Loading more items...