최근 포스트

  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 = ...

TCP basic

6 분 소요

Common Header: CommHdr.h #ifdef _WIN32 #pragma comment(lib, "ws2_32") #define _WINSOCK_DEPRECATED_NO_WARNINGS #include <stdio.h> #include <stdlib.h&...