category-wise-problems

contains category wise problems(data structures, competitive) of popular platforms.

View the Project on GitHub mayankdutta/category-wise-problems

452. Minimum Number of Arrows to Burst Balloons

implementation ```cpp class Solution { public: int findMinArrowShots(vector<vector>& points) { vector<pair<int, int>> arr; for (const auto& i: points) arr.push_back({i[0], i[1]}); sort(arr.begin(), arr.end(), [](const auto& one, const auto& two) -> bool { return one.second < two.second; }); int count = 1; int curr = 0; for (int i = 1; i < arr.size(); i++) { if (arr[i].first <= arr[curr].second && arr[curr].second <= arr[i].second) { continue; } else { count ++; curr = i; } } return count; } }; ``` </details>