Articles in this series
Using std::vector as a std::stack · Problem statement Given two strings s and t, return true if they are equal when both are typed into empty text...
An example of Prefix Sum method · Problem Statement Given an array of integers nums and an integer k, return the total number of continuous subarrays...
An example of using std::priority_queue · Problem statement You are given an array of integers stones where stones[i] is the weight of the i-th stone. We...
Using std::vector as a stack · Problem statement You are keeping score for a baseball game with strange rules. The game consists of several rounds, where...
An example of using std::priority_queue · Problem statement Design a class to find the k-th largest element in a stream. Note that it is the k-th largest...
Another way of sorting special arrays · Problem statement Given an integer array nums, you need to find one continuous subarray that if you only sort...