initial commit

This commit is contained in:
wt committed 2026-04-08 15:12:07 +07:00
commit 942e4e2dc1
30 files changed
+297

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#include "twopointers.hpp"
#include <cassert>
#include <iostream>
int main() {
std::vector<int> nums = {3,2,2,3};
int val = 3;
int k = removeElement(nums, val);
for (int i = 0; i < k; i++) {
std::cout << "num: " << nums[i] << std::endl;
}
std::cout << "k: " << k << std::endl;
return 0;
}