Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Just take care not to be tempted to come up with something _you_ like/admire, but that could just pass by the intended audience... Beauty is in the mind of the viewers - so take your time to try to guess what sort of problems would impress your audience.

It very much depends on the general skills they already have, and even if they are more or less at the same level, there are so many different possible approaches. Programming problems that are like little jewels for people with a strong taste for mathematics might be entirely 'oh noooo, not again!' problems for others.

You'll see if you took the 'right' approach very soon - in the eyes of your audience.

One particular problem I remember made me love programming was the one known (if I'm right) as "Joseph's problem".

Given n entities (childs sitting in a circle, Martin, Peter, John, ...) which is the order they step out of the circle if you count them and every 'm-th' has to step out ?

It seemed so obviously simple - and still, it didn't and didn't work out correctly!! Just to be again as simple as thought in the beginning once you had the right idea about how to tackle it. Wow! :)

As a side question: do you use Perl to start teach your audience programming in general or do you start teach them Perl and they know some programming ?

Thanks.

In reply to Re: Simple but thought-provoking programming tasks [OT] by Krambambuli
in thread Simple but thought-provoking programming tasks [OT] by Cody Pendant

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-19 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found