일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- 주정부이민
- 컴퓨터과학과
- cpp
- 딥러닝
- MATLAB
- Plotting
- 프로그래머스
- 캐나다 영주권
- 개발자
- 방송통신대학교
- 코딩테스트
- zeros
- machine learning
- C++
- 조지아텍
- LV1
- 온라인석사
- mpnp
- 마니토바
- 머신러닝
- leetcode
- 방통대
- 선형대수
- 알고리즘
- Deep learning
- 매트랩
- omscs
- EOI
- LAA
- 기본
- Today
- Total
목록전체 글 (137)
Krononberg

첫 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; ..

class Solution { public: int repeatedNTimes(vector& nums) { int n = nums.size()/2; sort(nums.begin(),nums.end()); int tmp = nums[0]; int cnt = 0; for(int i=0; i

/* // Definition for a Node. class Node { public: int val; vector children; Node() {} Node(int _val) { val = _val; } Node(int _val, vector _children) { val = _val; children = _children; } }; */ class Solution { public: vectorv; void pre(Node* root){ if(!root)return; v.emplace_back(root->val); for(int i=0; ichildren.size();i++){ pre(root->children[i]); } } vector preorder(Node* root) { pre(root);..