Advanced Programming Workshop Day2
Advanced Programming Workshop Day2
Let’s Begin!
TOPICS TO BE COVERED
Day 2:
1⃣ Call by Value
2⃣ Pass by Reference
An unordered_set in C++
is an associative container
that stores unique elements
in an unordered manner. It
does not allow duplicate
values and provides fast
average-time complexity for
insertions, deletions, and
lookups using a hash table.
In-built STL Algorithms
1. sort(): Sorts elements in a range.
2. reverse(): Reverses the order of elements.
3. find(): Finds the first occurrence of an element.
4. binary_search(): Checks if an element exists in a sorted range.
5. lower_bound(): Returns the first position where a value can be inserted
without disrupting the order.
6. upper_bound(): Returns the first position where a value is strictly greater
than the given value.
7. max(), min(): Returns the larger or smaller of two values.
8. accumulate(): Computes the sum of elements.
9. count(): Counts occurrences of a value.
Ques : Balanced Parenthesis Problem?