This shows you the differences between two versions of the page.
pa:laboratoare:laborator-01 [2021/03/09 09:41] radu.nichita [Extra] |
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)]] | + | |
- | * [[neatudarius@gmail.com|Darius-Florentin Neațu (2018)]] | + | |
- | | + | |
===== Obiective laborator ===== | ===== Obiective laborator ===== | ||
Line 381: | Line 370: | ||
} | } | ||
} | } | ||
- | return res; | + | return (res != -1 && v[res] == x) ? res : -1; |
} | } | ||
Line 395: | Line 384: | ||
} | } | ||
} | } | ||
- | return res; | + | return (res != -1 && v[res] == x) ? res : -1; |
} | } | ||
Line 486: | Line 475: | ||
} | } | ||
} | } | ||
- | return res; | + | return (res != -1 && v[res] == x) ? res : -1; |
} | } | ||
Line 500: | Line 489: | ||
} | } | ||
} | } | ||
- | return res; | + | return (res != -1 && v[res] == x) ? res : -1; |
} | } | ||
Line 584: | 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> | ||
Line 625: | Line 614: | ||
<spoiler Hanoi> | <spoiler Hanoi> | ||
Puteți rezolva această problemă pe [[https://www.infoarena.ro/problema/hanoi| infoarena]]. | Puteți rezolva această problemă pe [[https://www.infoarena.ro/problema/hanoi| infoarena]]. | ||
- | </spoiler> | ||
- | |||
- | |||
- | |||
- | <spoiler SSM> | ||
- | Puteți rezolva aceasta problema de [[https://ocw.cs.pub.ro/courses/pa/laboratoare/laborator-03#ssm | ||
- | | aici]]. | ||
- | |||
- | <note> | ||
- | Pentru problema SSM vom studia o soluție potrivita in lab03. Puteți să încercați să o rezolvați cu Divide et Impera pentru a exersa cele învățate astăzi. | ||
- | </note> | ||
</spoiler> | </spoiler> | ||
Line 647: | Line 625: | ||
</spoiler> | </spoiler> | ||
- | <spoiler Merge k sorted Lists> | + | <spoiler Merge k Sorted Lists> |
Puteți rezolva această problemă pe [[https://leetcode.com/problems/merge-k-sorted-lists/ | leetcode]] | Puteți rezolva această problemă pe [[https://leetcode.com/problems/merge-k-sorted-lists/ | leetcode]] | ||
</spoiler> | </spoiler> |