[gcj] Re: Commented Source Code together with Contest Analysis

2013-05-09 Thread Yves
What could be helpful is having a bselection/b of solutions in Java, C, 
C++, Python, etc... made by the Google team (since they (should) look at the 
code anyway :-).

At the bottom of the page, one [link] solution per (main) language (and people 
expecting LOLCODE should be able to find a fitting language among the ones 
proposed).

-- 
You received this message because you are subscribed to the Google Groups 
Google Code Jam group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-code/-/P7Z5jw72nvIJ.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [gcj] Re: Commented Source Code together with Contest Analysis

2013-05-09 Thread Andres Felipe Ruiz
That would be the same as seeing other participants solutions, because
I don't think the person who solves the problem for Codejam is going
to comment the code. One solution could be that in the analysis, they
reference one of the contestants who solve the problem the way it is
described in the analysis. That way, they won't have to attach any
code, and you could watch the solution encoded in some language and
kind of see the translation between the analysis and the actual
code.
In most of the contests, I've seen the submissions of the top
contestants is always very close to the analysis made. You should find
out by yourself :)

On Mon, May 6, 2013 at 2:01 PM, Leandro Coutinho
lescoutinh...@gmail.com wrote:
 Hi bigonion, thanks for sharing your thoughts, but I didn't make this
 post to discuss what approach is better. It's a very simple issue.
 They already have a solution, because they needed to prove that's
 possible to solve the problem, so they could simply attach their
 solution to the contest analysis.
 Thanks again.

 On 5/6/13, bigonion haibren...@gmail.com wrote:
 Agree with Stanislav as well.
 Although it seems counter intuitive, looking at code is NOT helpful. You
 have to understand the analysis before looking at the code, otherwise you
 waste your time. As these codes might have principles which are more
 advanced than simple conditions/loops such as dynamic programming, BFS,
 etc... you must understand the solution first, as these principles are not
 always clear from the code. Also, everyone codes them differently...
 If you learn from the code and not from the principles, you might just
 understand the solution finally, but it will not help you for future tasks.
 And if you understood the principles already, then you should be able to
 code the answer yourself (although it might take a lot of time...),
 otherwise you wouldn't compete in CodeJam.
 I believe the reason for sometimes attaching a Python code is because python
 seems like pseudo-code, which makes it easier for the learning process and
 everyone can understand it even without learning python before. It's not the
 code that matters, it's the pseudo-code and principles! Besides, they only
 do it for really short solutions in which a pseudo-code is really helpful.

 My advice: whenever a long code is attached to a solution, just SKIP it!
 That's the technique that works for me. Learning from the explanations and
 texts is more helpful for future problems.

 --
 You received this message because you are subscribed to the Google Groups
 Google Code Jam group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-code+unsubscr...@googlegroups.com.
 To post to this group, send email to google-code@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-code/-/Ilrh0wUnxpIJ.
 For more options, visit https://groups.google.com/groups/opt_out.





 --
 [quote:Larry Wall]LazinessImpatienceHubris[/quote]

 --
 You received this message because you are subscribed to the Google Groups 
 Google Code Jam group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to google-code+unsubscr...@googlegroups.com.
 To post to this group, send email to google-code@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.





-- 
asdf

-- 
You received this message because you are subscribed to the Google Groups 
Google Code Jam group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[gcj] Re: Commented Source Code together with Contest Analysis

2013-05-07 Thread Chris Knott
I have written solutions with comments for a lot of the problems here
- http://chrk.atwebpages.com/index.php?title=Main_Page

I am currently in the process of rewriting my site and moving it to
App Engine, I will post it here when it is finished.

On May 6, 8:01 pm, Leandro Coutinho lescoutinh...@gmail.com wrote:
 Hi bigonion, thanks for sharing your thoughts, but I didn't make this
 post to discuss what approach is better. It's a very simple issue.
 They already have a solution, because they needed to prove that's
 possible to solve the problem, so they could simply attach their
 solution to the contest analysis.
 Thanks again.

 On 5/6/13, bigonion haibren...@gmail.com wrote:









  Agree with Stanislav as well.
  Although it seems counter intuitive, looking at code is NOT helpful. You
  have to understand the analysis before looking at the code, otherwise you
  waste your time. As these codes might have principles which are more
  advanced than simple conditions/loops such as dynamic programming, BFS,
  etc... you must understand the solution first, as these principles are not
  always clear from the code. Also, everyone codes them differently...
  If you learn from the code and not from the principles, you might just
  understand the solution finally, but it will not help you for future tasks.
  And if you understood the principles already, then you should be able to
  code the answer yourself (although it might take a lot of time...),
  otherwise you wouldn't compete in CodeJam.
  I believe the reason for sometimes attaching a Python code is because python
  seems like pseudo-code, which makes it easier for the learning process and
  everyone can understand it even without learning python before. It's not the
  code that matters, it's the pseudo-code and principles! Besides, they only
  do it for really short solutions in which a pseudo-code is really helpful.

  My advice: whenever a long code is attached to a solution, just SKIP it!
  That's the technique that works for me. Learning from the explanations and
  texts is more helpful for future problems.

  --
  You received this message because you are subscribed to the Google Groups
  Google Code Jam group.
  To unsubscribe from this group and stop receiving emails from it, send an
  email to google-code+unsubscr...@googlegroups.com.
  To post to this group, send email to google-code@googlegroups.com.
  To view this discussion on the web visit
 https://groups.google.com/d/msg/google-code/-/Ilrh0wUnxpIJ.
  For more options, visithttps://groups.google.com/groups/opt_out.

 --
 [quote:Larry Wall]LazinessImpatienceHubris[/quote]

-- 
You received this message because you are subscribed to the Google Groups 
Google Code Jam group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[gcj] Re: Commented Source Code together with Contest Analysis

2013-05-06 Thread bigonion
Agree with Stanislav as well.
Although it seems counter intuitive, looking at code is NOT helpful. You have 
to understand the analysis before looking at the code, otherwise you waste your 
time. As these codes might have principles which are more advanced than simple 
conditions/loops such as dynamic programming, BFS, etc... you must understand 
the solution first, as these principles are not always clear from the code. 
Also, everyone codes them differently...
If you learn from the code and not from the principles, you might just 
understand the solution finally, but it will not help you for future tasks. And 
if you understood the principles already, then you should be able to code the 
answer yourself (although it might take a lot of time...), otherwise you 
wouldn't compete in CodeJam.
I believe the reason for sometimes attaching a Python code is because python 
seems like pseudo-code, which makes it easier for the learning process and 
everyone can understand it even without learning python before. It's not the 
code that matters, it's the pseudo-code and principles! Besides, they only do 
it for really short solutions in which a pseudo-code is really helpful.

My advice: whenever a long code is attached to a solution, just SKIP it! That's 
the technique that works for me. Learning from the explanations and texts is 
more helpful for future problems.

-- 
You received this message because you are subscribed to the Google Groups 
Google Code Jam group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-code/-/Ilrh0wUnxpIJ.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [gcj] Re: Commented Source Code together with Contest Analysis

2013-05-06 Thread Leandro Coutinho
Hi bigonion, thanks for sharing your thoughts, but I didn't make this
post to discuss what approach is better. It's a very simple issue.
They already have a solution, because they needed to prove that's
possible to solve the problem, so they could simply attach their
solution to the contest analysis.
Thanks again.

On 5/6/13, bigonion haibren...@gmail.com wrote:
 Agree with Stanislav as well.
 Although it seems counter intuitive, looking at code is NOT helpful. You
 have to understand the analysis before looking at the code, otherwise you
 waste your time. As these codes might have principles which are more
 advanced than simple conditions/loops such as dynamic programming, BFS,
 etc... you must understand the solution first, as these principles are not
 always clear from the code. Also, everyone codes them differently...
 If you learn from the code and not from the principles, you might just
 understand the solution finally, but it will not help you for future tasks.
 And if you understood the principles already, then you should be able to
 code the answer yourself (although it might take a lot of time...),
 otherwise you wouldn't compete in CodeJam.
 I believe the reason for sometimes attaching a Python code is because python
 seems like pseudo-code, which makes it easier for the learning process and
 everyone can understand it even without learning python before. It's not the
 code that matters, it's the pseudo-code and principles! Besides, they only
 do it for really short solutions in which a pseudo-code is really helpful.

 My advice: whenever a long code is attached to a solution, just SKIP it!
 That's the technique that works for me. Learning from the explanations and
 texts is more helpful for future problems.

 --
 You received this message because you are subscribed to the Google Groups
 Google Code Jam group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-code+unsubscr...@googlegroups.com.
 To post to this group, send email to google-code@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-code/-/Ilrh0wUnxpIJ.
 For more options, visit https://groups.google.com/groups/opt_out.





-- 
[quote:Larry Wall]LazinessImpatienceHubris[/quote]

-- 
You received this message because you are subscribed to the Google Groups 
Google Code Jam group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[gcj] Re: Commented Source Code together with Contest Analysis

2013-05-05 Thread Stanislav Zholnin
a) That would entail question - In which language?
If you say C++ I will ask - why not Python. If you say All major 
languages. Somebody would ask for LOLCODE.

So on one hand it is a question of resources - just like you said it is not as 
simple as just copying some solution from contestant. If you limit number of 
language this will introduce bias - some would see it as approved and not 
approved languages for Codejam.

b) Generally if you are unable to workout solution from analysis provided it 
means that you are trying to bite too much in one time. This means that (sadly) 
you are not yet skilled enough. This doesn't mean that you should feel 
discouraged. No, just find some easier examples in the same field and start 
working from simple things to more difficult ones. Or ask for help in forums.

Organizers of Codejam have to strike balance between how much time they spend 
providing analysis and their limited resources. I don't think they should give 
more detailed solutions - you can't attach all Knuth's volumes to every 
solution.

-- 
You received this message because you are subscribed to the Google Groups 
Google Code Jam group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-code/-/rqiuNQeSe-IJ.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [gcj] Re: Commented Source Code together with Contest Analysis

2013-05-05 Thread Leandro Coutinho
Good points Stanislav! But there's one point here. They already provide
solution sometimes in Python! So they could keep posting solutions in this
language or C++ or Java, cause it's what the majority of people here uses,
and because one that programs in one of these languages is able to
undestand a solution in another. The comments are what is important. I
personally would choose a solution explained for a newbie to understand,
than that bunch of text from Contest Analyse without a solution.
Thank you.
Em 05/05/2013 23:50, Stanislav Zholnin stanislav.zhol...@gmail.com
escreveu:

-- 
You received this message because you are subscribed to the Google Groups 
Google Code Jam group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [gcj] Re: Commented Source Code together with Contest Analysis

2013-05-05 Thread Jugesh Sundram
I agree with Stanislav. I believe the Code Jam organizers would like the
participants to develop a level of thinking such that giving a brief
outline would be sufficient to understand the solution.

If you observed, the contest analysis gives us an insight into the essence
of a problem. Assuming you genuinely spent enough time trying to crack the
solution to a problem, it
so happens that you would missing an important detail of the problem. The
contest analysis aims at giving you the key idea which will often lead you
to the Aha! moment.

That is probably how you improve.


On 5 May 2013 22:49, Stanislav Zholnin stanislav.zhol...@gmail.com wrote:

 a) That would entail question - In which language?
 If you say C++ I will ask - why not Python. If you say All major
 languages. Somebody would ask for LOLCODE.

 So on one hand it is a question of resources - just like you said it is
 not as simple as just copying some solution from contestant. If you limit
 number of language this will introduce bias - some would see it as
 approved and not approved languages for Codejam.

 b) Generally if you are unable to workout solution from analysis provided
 it means that you are trying to bite too much in one time. This means that
 (sadly) you are not yet skilled enough. This doesn't mean that you should
 feel discouraged. No, just find some easier examples in the same field and
 start working from simple things to more difficult ones. Or ask for help in
 forums.

 Organizers of Codejam have to strike balance between how much time they
 spend providing analysis and their limited resources. I don't think they
 should give more detailed solutions - you can't attach all Knuth's volumes
 to every solution.

 --
 You received this message because you are subscribed to the Google Groups
 Google Code Jam group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-code+unsubscr...@googlegroups.com.
 To post to this group, send email to google-code@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-code/-/rqiuNQeSe-IJ.
 For more options, visit https://groups.google.com/groups/opt_out.





-- 
Jugesh Sundram
(jugeshsund...@gmail.com)

-- 
You received this message because you are subscribed to the Google Groups 
Google Code Jam group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.