Oct 6, 2014 16:45
see you!
Oct 6, 2014 16:45
yes sure :)
Oct 6, 2014 16:41
yes yes i get it
Oct 6, 2014 16:36
thanks again! well done
Oct 6, 2014 16:36
ah ok cool!
Oct 6, 2014 16:34
where can i recommend u or something on SO?
Oct 6, 2014 16:34
thank you very much :)
Oct 6, 2014 16:34
i see how it works
Oct 6, 2014 16:34
ok it's great
Oct 6, 2014 16:31
ok gonna see :)
Oct 6, 2014 16:30
ah yes i use that method too :)
Oct 6, 2014 16:26
Oh nice! what language did you use?
Oct 6, 2014 16:08
Haha right
Oct 6, 2014 16:03
oh i see.. well i'll hope you'll get something soon!
Oct 6, 2014 16:00
because i already spent a couple hours... without success haha
Oct 6, 2014 15:59
ok you think you're close to reaching it?
Oct 6, 2014 15:59
Oct 6, 2014 15:58
you want my email to send the code?
Oct 6, 2014 15:57
Yes ok perfect
 

Java

Dedicated to the discussion of the Java programming language a...
Oct 6, 2014 15:57
yes
Oct 6, 2014 15:55
when do you think you will be finished?
Oct 6, 2014 15:55
@mlwn is there any way to send private message on stack?
Oct 6, 2014 15:43
@mlwn so any ideas?
Oct 6, 2014 15:28
@mlwn ok ok, just in case : because otherwise the path wouldn't be smaller than 5
Oct 6, 2014 15:24
@mlwn Well, what I would like is when I run the code, it would display : "Minimal path is: 7 + 6 + 3 + -11 = 5" - currently, my code displays "Minimal path is: 5"
Oct 6, 2014 15:21
@mlwn just printing the elements as a sum so with the example i sent it would be : 7 + 6 + 3 + -11 = 5
Oct 6, 2014 15:19
@mlwn makes sense now?
Oct 6, 2014 15:16
@mlwn yes, view it like that for understanding
Oct 6, 2014 15:15
yes it's a symmetrical triangle, sorry for not being clear
Oct 6, 2014 15:14
because you can only go to the 2 nodes underneath the node, in this case you have 12 and 14 which are available for this 3
Oct 6, 2014 15:12
@mlwn Yes my code gives 36 and it's right, because from the second 3, you can't go to 2 as u only have the choice between 12 and 14. See what I mean?
Oct 6, 2014 15:10
@mlwn just the minimal path value? or the nodes it goes through too?
Oct 6, 2014 15:09
@mlwn yes it's intended
Oct 6, 2014 15:03
Oct 6, 2014 15:03
@mlwn yes 1 sec
Oct 6, 2014 14:58
@mlwn okay thank you! :)
Oct 6, 2014 14:57
@mlwn so as i said, i can display the minimal path value giving as input a text-format triangle - now i want to display the actual path nodes
Oct 6, 2014 14:56
@mlwn yes sure :) one sec
Oct 6, 2014 14:55
@mlwn it's a command-line program, so in a console
Oct 6, 2014 14:53
hello @Unihedron
Oct 6, 2014 14:53
@mlwn haha yes sorry.. well basically, i calculate the minimum path from top to bottom in a triangle (i get the value) but now would like to display the actual path (which nodes it goes through) but i'm having trouble with that
Oct 6, 2014 14:51
anyone can help with minimum triangle paths?
Oct 6, 2014 14:50
hi everyone!
 

 Android Era with Kotlin and Java

Important: Read dos and don'ts here: androidera.github.io . Ma...
Oct 6, 2014 14:49
anyone can help with minimum triangle paths?
Oct 6, 2014 14:47
hi everyone
Oct 6, 2014 11:59
@berserk yes it is after the while loop that counts the lines.. so is it because i've reached the end of the file, so when i do readLine again, it's obviously null? then how would i go back to the beginning of the file
Oct 6, 2014 11:53
@berserk the file definitely has content since the while loop counts the correct number of lines in the file
Oct 6, 2014 11:50
@berserk checked that, the file has content..
Oct 6, 2014 11:46
@berserk hi sorry pastebin.com/nJmC8iP7, the null variable is "line" - error is coming from Scanner scanner = new Scanner(line);