일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- 선형대수
- EOI
- MATLAB
- 개발자
- 매트랩
- 위니펙
- C++
- Deep learning
- 머신러닝
- machine learning
- cpp
- 주정부이민
- 방송통신대학교
- 캐나다 영주권
- 온라인석사
- 조지아텍
- 기본
- leetcode
- 딥러닝
- 방통대
- mpnp
- zeros
- Plotting
- LV1
- omscs
- 컴퓨터과학과
- 코딩테스트
- 프로그래머스
- LAA
- 알고리즘
- Today
- Total
목록개발 로그 (114)
Byte by Byte

class BrowserHistory { public: vectorv; int cur =0; BrowserHistory(string homepage) { v.push_back(homepage); } void visit(string url) { while(cur v.size()-1) cur = v.size()-1; else cur = cur+step..

첫 greedy 문제 class Solution { public: void flipRow(vector& grid,int m){ for(int j =0; j

/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right) {} * }; */ class Solution { public: TreeNode* removeLeafNodes(TreeNode* root, int targ..

/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right) {} * }; */ class Solution { public: TreeNode* insertIntoBST(TreeNode* root, int val) {..

재밌는 문제. class Solution { public: int countVowelStrings(int n) { int a=1,b=1,c=1,d=1,e=1; for(int i =2; i

class Solution { public: vector getMaximumXor(vector& nums, int maximumBit) { vectorres; int len = nums.size(); int x = pow(2,maximumBit)-1; int tmp=0; for(int i =0; i< len; i++){ tmp = tmp^nums[i]; res.push_back(tmp ^ x); } reverse(res.begin(),res.end()); return res; } };

class Solution { public: int sumOfUnique(vector& nums) { sets; int res=0; int tmp = nums[0]; int cnt=0; sort(nums.begin(),nums.end()); for(int i = 0; i1) s.emplace(nums[i]); } for(int i = 0; i< nums.size(); i++){ res+= nums[i]; for(auto it : s){ if(nums[i]==it){ res-= nums[i]; break; } } } return res; ..