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.
kata hint / knowledge sharing != kata suggestion.
If we define a 'Eureka number' as a number that is the sum of its digits rasied to the power of the number that they occur in the number.
They give the example 89 you can see that it is a since 8^1 + 9^2 = 8 + 81 = 89
Another example is 135 --> 1^1 + 3^2 + 5^3 = 1 + 9 + 125 = 135
Your job is to find all 'Eureka' numbers within a given range. Hope this helps
[JAVA] There should be a need of the user to check words that are different cases (case sensitivity). This is done for pyton but not for Java. thanks
You should divide your string into 5 partitions but they do not have to be equal in length (especially the case for the last partition). Given the string: "ABCDEFGHI" (of length 9) your partitions would be: ["AB","CD","EF","GH","I"] Hope this helps
Read QuantumRobotix's post below instead of opening another issue about the same. Try what I suggested there.
I'm also having an error "IndentationError: unindent does not match any outer indentation level". Works fine on vscode.
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
I really enjoyed this kata and solved in both java and python. I was looking forward to reading the article but was having trouble finding it. Could the link to "Dmitry's article" please be added to the problem statement (Kata description) since I had trouble finding it. I was able to find it thanks to user: gayanw who posted the link as: http://blog.ostermiller.org/find-loop-singly-linked-list
Thanks!
That's one of the reasons I prefer JS / Python: less worrying about types :D Anyway, always keep an eye on sample tests cases if they're given.
No, you're right. I should have looked at the example cases more closely. I solved it in python where you don't need to worry about types as much but couldn't figure out the c++ and java solutions since you need to specify the types (and I wrongfully assumed all would be strings)
Thanks
But there's an example in description with integers. Also, there's a sample test with integers and characters. Is that not enough?
This comment is hidden because it contains spoiler information about the solution