- Jump Game III
1306. Jump Game III class Solution { public: bool canReach(vector<int>& arr, int start) { if (arr[start] == 0) { return tru...
1306. Jump Game III class Solution { public: bool canReach(vector<int>& arr, int start) { if (arr[start] == 0) { return tru...
869. Reordered Power of 2 ```cpp class Solution { class Dec { int cnt[10] {0}; int len = 0; public: Dec(int n) { ...
930. Binary Subarrays With Sum class Solution { public: int numSubarraysWithSum(vector<int>& nums, int goal) { int l = 0, r = 0, len = ...
다음 순열 구하기 (Next permutation)
Common Header: CommHdr.h #ifdef _WIN32 #pragma comment(lib, "ws2_32") #define _WINSOCK_DEPRECATED_NO_WARNINGS #include <stdio.h> #include <stdlib.h&...