https://leetcode.com/problems/majority-element/?envType=study-plan-v2&envId=top-interview-150
class Solution {
public:
int majorityElement(vector<int>& nums) {
int cnt = 0;
int
https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/?envType=study-plan-v2&envId=top-interview-150
class Solution {
public:
int removeDuplicates(vector<int>& nums) {
int idx = 0;
for
https://leetcode.com/problems/remove-duplicates-from-sorted-array/description/?envType=study-plan-v2&envId=top-interview-150
class Solution {
public:
int removeDuplicates(vector<int>& nums) {
int idx = 1;
https://leetcode.com/problems/remove-element/description/?envType=study-plan-v2&envId=top-interview-150
class Solution {
public:
int removeElement(vector<int>& nums, int val) {
int
https://leetcode.com/problems/merge-sorted-array/?envType=study-plan-v2&envId=top-interview-150
class Solution {
public:
void merge(vector<int>& nums1, int m, vector<