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 comment is hidden because it contains spoiler information about the solution
at first I added test from description:
@Test
public void testFirst() {
int[][] firstPyramid = new int[][]{
{3},
{7,4},
{2,4,6},
{8,5,9,3}
};
assertEquals(23, LongestSlideDown.longestSlideDown(firstPyramid));
}
this is very helpful thank you
For learning purpose will be good to add constructors to commented class TreeNode like this:
public static class TreeNode {
public int value;
public TreeNode left;
public TreeNode right;
}
fixed, thanx
Sorry, may be typo in description - not "euclidiean", but "euclidean". With all my respect.
"Efficiency is not a key point of this part of the series" - but I have time out - 16s and so many random tests(
I am not complain!)
Strange, 6 points for so easy task, as I see
This comment is hidden because it contains spoiler information about the solution
for Java, I change parameter in function from int to long. There is a test where num = -2147483648
Nice Kata. I solved this kata only when read about
"Little-endian" and "Big-endian".
Yes, this is the point! Thats why in IT companies Business analysts are working hard.
this also get pass.
Approved
This comment is hidden because it contains spoiler information about the solution
Loading more items...