최근 포스트

  1. Detect Squares

1 분 소요

2013. Detect Squares class DetectSquares { map<int, int> mp; public: DetectSquares() { } void add(vector<int> point...

  1. Jump Game III

1 분 소요

1306. Jump Game III class Solution { public: bool canReach(vector<int>& arr, int start) { if (arr[start] == 0) { return tru...

  1. Reordered Power of 2

1 분 소요

869. Reordered Power of 2 ```cpp class Solution { class Dec { int cnt[10] {0}; int len = 0; public: Dec(int n) { ...

  1. Binary Subarrays With Sum

2 분 소요

930. Binary Subarrays With Sum class Solution { public: int numSubarraysWithSum(vector<int>& nums, int goal) { int l = 0, r = 0, len = ...