ExtBasic 14

Learn how to do code review

Re: ExtBasic 14

Post by XORMeBaby on Sat Aug 07, 2010 10:21 pm
([msg=43401]see Re: ExtBasic 14[/msg])

Yes, Googleing "Java + [certain thing]" was all I needed.

This challenge made me want to learn Java. :)
XORMeBaby
Experienced User
Experienced User
 
Posts: 96
Joined: Thu Jul 22, 2010 11:32 pm
Blog: View Blog (0)


Re: ExtBasic 14

Post by UndeadLe on Sun Oct 31, 2010 10:40 pm
([msg=48396]see Re: ExtBasic 14[/msg])

Wow, very cool to learn about this issue. I was actually having a problem exactly like this in one of my java programs a while back, but never linked it to this.
UndeadLe
New User
New User
 
Posts: 6
Joined: Tue Dec 22, 2009 1:24 am
Blog: View Blog (0)


Re: ExtBasic 14

Post by lia_hmmy on Thu Dec 30, 2010 5:05 am
([msg=51353]see Re: ExtBasic 14[/msg])

Hi, i found the fix and test it in eclipse environment and it works perfectly fine!!
but i don t know how to submit it. Everyone posted to submit just one line but isn't actually a block that needs to be entered??
I tried submitting the entire block in online but it didn't work
Could someone tell me how to submit it? even pm if you don't want to spoiler is fine with me
Thank you!!


Edit!!!
nevermind i see know... there is another way to solve it and the ExtBasic14 wanted this one.... i passed now!!!
lia_hmmy
New User
New User
 
Posts: 3
Joined: Wed Dec 29, 2010 4:05 am
Blog: View Blog (0)


Re: ExtBasic 14

Post by sasha95 on Thu Dec 30, 2010 7:16 pm
([msg=51386]see Re: ExtBasic 14[/msg])

Jackson36 wrote:This challenge is simple once you do a little googling.

If you are having trouble read this it helped me a lot: http://java.sun.com/docs/books/tutorial/essential/concurrency/sync.html


That is EXTREMELY useful stuff. Thanks a LOT jackson, really helped me.

The rest of the links helped me too, but that one was like a trigger. Simple way to explain things. Thanks again
sasha95
New User
New User
 
Posts: 4
Joined: Tue Dec 28, 2010 11:09 pm
Blog: View Blog (0)


Re: ExtBasic 14

Post by dopamine10 on Sat Jul 23, 2011 8:47 am
([msg=60027]see Re: ExtBasic 14[/msg])

Well, I got the answer....

However, I also believe I have a secondary solution that met the conditions of the challenge just fine, except not as efficient.

After setting MAX to 10 billion for testing, the accepted solution took ~15 seconds to iterate while another one-line solution still solved the problem, however it took the same iteration ~40 seconds to complete.


Perhaps the mission should state something about efficiency? :P

Mind you, I guess all programmers strive for efficiency so....

Cool, learned something new today :)

Am I allowed to post the one-line solution I found that doesn't solve this mission (but still solves it) to drum up some conversation?
dopamine10
New User
New User
 
Posts: 12
Joined: Sun Sep 28, 2008 1:23 am
Blog: View Blog (0)


Re: ExtBasic 14

Post by Kremlin on Sun Apr 28, 2013 3:13 pm
([msg=75418]see Re: ExtBasic 14[/msg])

got this one. here's a tip, leave variable declarations alone. you can fix the code by using another kinda thread pool, but that's not what the question is looking for. there's a more elegant way to do it.
Kremlin
New User
New User
 
Posts: 2
Joined: Tue Apr 23, 2013 6:43 pm
Blog: View Blog (0)


Re: ExtBasic 14

Post by CovertMagic on Tue Apr 29, 2014 4:32 am
([msg=80473]see Re: ExtBasic 14[/msg])

Changing the number of threads from 100 to 1 isn't an acceptable solution? :D
CovertMagic
New User
New User
 
Posts: 8
Joined: Fri Feb 21, 2014 6:23 pm
Blog: View Blog (0)


Previous

Return to Extended Basics

Who is online

Users browsing this forum: No registered users and 0 guests