This shows you the differences between two versions of the page.
pa:laboratoare:laborator-01 [2021/04/19 16:53] darius.neatu [Laborator 01: Divide et Impera] |
pa:laboratoare:laborator-01 [2022/03/21 23:11] (current) radu.nichita [Exerciții] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Laborator 01: Divide et Impera ====== | ====== Laborator 01: Divide et Impera ====== | ||
- | Responsabili: | ||
- | * [[neatudarius@gmail.com|Darius-Florentin Neațu (2017-2021)]] | ||
- | * [[radunichita99@gmail.com | Radu Nichita (2021)]] | ||
- | * [[cristianolaru99@gmail.com | Cristian Olaru (2021)]] | ||
- | * [[mirunaelena.banu@gmail.com | Miruna-Elena Banu (2021)]] | ||
- | * [[maraioana9967@gmail.com | Mara-Ioana Nicolae (2021)]] | ||
- | * [[stefanpopa2209@gmail.com | Ștefan Popa (2018-2020)]] | ||
- | Autori: | + | |
- | * [[visanr95@gmail.com|Radu Vișan (2018)]] | + | |
- | * [[cristb@gmail.com|Cristian Banu (2018)]] | + | |
- | | + | |
===== Obiective laborator ===== | ===== Obiective laborator ===== | ||
Line 380: | Line 370: | ||
} | } | ||
} | } | ||
- | return (res != -1 && v[pos] == x) ? res : -1; | + | return (res != -1 && v[res] == x) ? res : -1; |
} | } | ||
Line 394: | Line 384: | ||
} | } | ||
} | } | ||
- | return (res != -1 && v[pos] == x) ? res : -1; | + | return (res != -1 && v[res] == x) ? res : -1; |
} | } | ||
Line 485: | Line 475: | ||
} | } | ||
} | } | ||
- | return (res != -1 && v[pos] == x) ? res : -1; | + | return (res != -1 && v[res] == x) ? res : -1; |
} | } | ||
Line 499: | Line 489: | ||
} | } | ||
} | } | ||
- | return (res != -1 && v[pos] == x) ? res : -1; | + | return (res != -1 && v[res] == x) ? res : -1; |
} | } | ||
Line 583: | Line 573: | ||
<note> | <note> | ||
- | Aceasta problema nu are schelet. | + | Aceasta problema nu are schelet, dar poate fi testată pe infoarena, la problema [[https://www.infoarena.ro/problema/inv | Inv]]. |
</note> | </note> | ||