1 / 7

Vasele din sertar

Vasele din sertar. Enunt. Jožin , dupa ce s-a trezit , a mers in bucatarie sa manance . A deschis sertarul si a vrut sa ia bolul verde , care se afla in mijlocul unui “ turn”de boluri . Ce trebuie sa faca Jožin pentru a lua bolul verde ?. Raspuns.

elita
Download Presentation

Vasele din sertar

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Vasele din sertar

  2. Enunt • Jožin, dupace s-a trezit, a mers in bucatariesamanance. A deschissertarulsi a vrutsaiabolulverde, care se afla in mijloculunui “turn”deboluri. • CetrebuiesafacaJožinpentru a luabolulverde?

  3. Raspuns El trebuiesaiafiecarebol de deasupraboluluiverde; algoritm identic cu cel al stivei, care functioneazapeprincipiulLiFo( Last in , First out).

  4. Simulare Voila! Jožin a luatbolulverde. Bolulverde

  5. AcumJožindorestesapunabolurileramaseinapoi.

  6. Intretimp, bolulverde nu leviteaza, ci se aflapemasa. Bolulverde

  7. Astfel se poateobservaprincipiulpe care se bazeazastiva in activitilebanalesinormale de zi cu zi, din viataunuiom, la fel de normal casiJožin.

More Related