분류 전체보기 (158) 썸네일형 리스트형 c++ leetcode top-k frequent elements O(nlogn) solution code >> 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 using namespace std; typedef struct _Point { int first_int; int second_int; } Point; bool integerComp(const Point& p1, const Point& p2) { return p1.second_int > p2.second_int; } class Solution { public: vector topKFrequent(vector& nums, int k) { unordered_map hash.. c++ leetcode top k frequent words (sort and custom comparison) solution code >> 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 using namespace std; typedef struct _Point { int second_int; string first_string; } Point; bool comp(const Point& p1, const Point& p2) { if (p1.second_int > p2.second_int) { return true; } else if (p1.second_int == p2.second_int) { return p.. c++ leetcode 290 word pattern with double hashmap(100% faster) solution code >> 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 32 33 34 35 36 class Solution { public: bool wordPattern(string pattern, string s) { int pSize = (int)pattern.size(); int sSize = (int)s.size(); istringstream ss(s); vector saveVector; string stringBuffer; unordered_map hashmap; unordered_map twohashmap; while (getline(ss, stringBuffer, ' ')) { saveVector.. c++ leetcode 739 daily temperature code code >> 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 using namespace std; class Solution { public: vector dailyTemperatures(vector& temperatures) { stack numSave; int n = temperatures.size(); vector indexes(n, 0); numSave.push({ temperatures[n - 1], n-1 }); for (int i = n - 2; i>=0; i--) { if (temperatures[i] temper.. c++ leet code 227, Basic CalculatorII code code >> 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 using namespace std; class Solution { public: int calculate(string s) { stack num_stack; int answer = 0; int len = (int)s.size(); int currentNumber = 0; char operation = '+'; for (int i = 0; i c++ leetcode 394 decode_string 풀이 코드 >> 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 using namespace std; class Solution { public: string decodeString(string s) { stack decodeStack; string tmp_num = ""; string tmp_alpha = ""; string tmp_str = ""; string ans; int tmp_int = 0; int sSize = (int)s.size(); int tmp_number = 0; for (int i = 0; i finetuning시 big transfer and efficientnet v2 보호되어 있는 글입니다. 캐글 전략 madgrad + cosine warmup 구림 0.75 lovasz + 0.25 bce 512*512, efficientnet v2-M(논문 보고 최적의 setting 필요) Hflip + RandomReSizedCrop + adjust saturation (training + inference) blurout 지우고 cutout -> 엄청난 boost (370->375) efvn 384 384 good yolo flip 넣으면 cv 급상승 FLIP th1 0.4, th2 0.4, 0.5 5072 5499 5339 5075 5165 vs 0.5 0.5 4941 5324 5148 4966 4949 이전 1 2 3 4 5 6 7 ··· 20 다음