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

class Solution { public: vector checkArithmeticSubarrays(vector& nums, vector& l, vector& r) { int len = l.size(); vectortmp; vectorres; for(int i =0; i

class Solution { public: string freqAlphabets(string s) { //1~9 //10#~26# string res=""; string tmp =""; for(int i =0; i

요구조건 정확히 안봐서 헤맴.. class Solution { public: int minOperations(vector& nums) { int res =0; int len = nums.size(); for(int i =0; i=nums[i+1]){ res += (nums[i] - nums[i+1] +1); nums[i+1] += (nums[i] - nums[i+1] +1); }a } return res; } };

난이도가 높아지니까, dp알고리즘 활용 문제가 자꾸 나온다 😕 //thanks to https://www.youtube.com/watch?v=CJ9EicV9nWc&ab_channel=CODE_CROSING class Solution { public: int subsetXORSum(vector& nums) { return helper(nums, 0,0); } int helper(vector&nums,int level, int currentXOR){ if(level == nums.size()) return currentXOR; int inc = helper(nums,level +1,currentXOR^nums[level]); int exc = helper(nums,level +1,currentXOR); re..

/** * 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: vectorinorder; void saveNode(TreeNode* root){ if(!..

class Solution { public: vector partitionLabels(string s) { vectorres; vectorlast(26,0); for(int i =0; i

class Solution { public: vector restoreMatrix(vector& rowSum, vector& colSum) { int m = rowSum.size(); int n = colSum.size(); vectorres(m,vector(n)); for(int i =0; i< m; i++){ for(int j =0; j