leetcode new problems

This commit is contained in:
2026-02-11 14:48:41 +05:30
parent 192ce44a81
commit 0f52d46c67
29 changed files with 658 additions and 5 deletions
+19
View File
@@ -0,0 +1,19 @@
Should be a hard problem.
Core Idea : Fix one number, reduce the problem size, repeat until only two numbers are left, then solve that directly
v.end() :
A member function
Exists only if v is a container class
end(v) :
A free function (std::end) which internally calls v.end(), safer, modern and generic
Main difference:
```
int arr[] = {1,2,3};
auto a = end(arr); // works
auto b = arr.end(); // ERROR
```