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.
CoffeeScript translation
Wouldn't it be better to add in the description that the correct answer for middlePyramid is 1074 not 1064? As many people thinks it's an issue it would laso be good to add some hints like that it is based on "Greedy algorithm" or that you should use dynamic programming technic to solve it? I understand that it is good practive to look for an answer however in order to catch a fish you need a fishing rod first.
My code works fine for small and med pyramids but for large pyramids it says execution timed out (12000 ms) I am new at coding so i understand my code is not so efficent. how can i optimize my code
This comment is hidden because it contains spoiler information about the solution
Go Translation
D translation
Node 18 should be enabled (Refer this and this for more info)
Ruby 3.0 should be enabled (Refer this & this for more detail)
No random tests in Ruby
This comment is hidden because it contains spoiler information about the solution
To prevent endless questions and issues from people who misunderstood the task, I suggest adding following example to the description, and/or a fixed test case in all languages:
This comment is hidden because it contains spoiler information about the solution
I think you should to add negative numbers to random tests
Judging from the comments (and me being stuck with my own simple solution for the global maximum), I'd suggest amending the description with a longer example, because a simple solution for the small example pyramid works, yet for a bigger one does not, leading to the (repeated) question about said maximum.
C++ translation kumited.
Loading more items...