• Fiery@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    16
    ·
    edit-2
    2 days ago

    I did it the other way around in uni, we got a task with no mention of it requiring recursion (even though I suppose it was somewhat well suited to it). I solved it with a double for loop and the teacher refused to accept my submission.

    This was a coding class on Unix thinclients, I’ll let you guess how long ago.

    Answer

    3 years

    edit: thx sleeplessone@lemmy.ml for making the spoiler work :)

    • Sleepless One@lemmy.ml
      link
      fedilink
      English
      arrow-up
      17
      arrow-down
      1
      ·
      2 days ago

      The spoiler syntax is a bit different.

      :::spoiler <label>
      <body>
      :::
      

      For example:

      Answer

      3 years