Editing 4261 - Altern Div Imp

Revision as of 18:07, 5 February 2024 by Cristina94 (talk | contribs) (Pagină nouă: ==Cerința== Folosind metoda Divide et Impera, scrieți funcția recursivă cu antetul <syntaxhighlight lang="python" line> int AlternDivImp(int a[], int st, int dr) </syntaxhighlight> care primind ca parametri un vector a de numere naturale și două numere întregi st și dr, returnează 1 dacă în secvența a[st], a[st+1], ..., a[dr] numerele impare alternează cu cele pare, sau returnează 0 dacă există cel puțin două numere alăturate de aceeași paritate. ==Rest...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Warning: You are editing an out-of-date revision of this page. If you publish it, any changes made since this revision will be lost.
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
Please note that all contributions to Bitnami MediaWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Bitnami MediaWiki:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)