DDK1127

@DDK

Joined on Aug 2, 2023

  • 2551. Put Marbles in Bags =>Difficulty: Hard, Rating: 2042 Solution 創一個n-1的Table,用以記錄說要分割的位置在哪,並且會多出多少的Marbles保存下來後,先用Sort將其排序後,再由最末端往前,最前端往後互相扣除,及為所求。 其中因為Head, Tail均包含在min, max中,所以可以不用特別再去算。 class Solution { public: long long putMarbles(vector<int>& weights, int k) { vector<long long> res; int n = weights.size();
     Like  Bookmark
  • Department of Computer Science & Information Engineering PPT Grad_ProbAsk cp-algorithms 題目+部份解答+補充資源 (從網路上蒐集的) by 巴哈 考研筆記、考古 99-108 各校資工所考古 資工所參考解答 - 電資人 台大部分考古詳解 97-104 交大部分考古詳解 97-105
     Like  Bookmark
  • 1.1 Asymptotic notation Polynomial bounded $$ f(n)= O({n^k}) $$ $$f(n)為polynomial bounded<=>\lg f(n)=O(\lg n) $$ Harmonic number $$ H(n)=1+\frac{1}{2}+\frac{1}{3}+...+\frac{1}{n}=\theta(\lg n) $$ Proof: 利用畫圖f(x)=1/x,積分
     Like  Bookmark
  • The first week Why is IOS "smoother" than Android devices int early 2010s? ios介面上觸控的優先權佇列會非常高,所以處理上會做觸控螢幕的事項,所以相對安卓來說會滑順很多。 What does "No response" in Operating Systems mean? 無回應,應該是使用者執行該程式時,程式沒有辦法跟使用者做互動,可能是程式執行有誤或是設計的bug之類的影響。 When my computer is slow, which component should upgrade first? 可以打開工作管理員來查看,如果cpu或是記憶體等等overload,則可以看是需要升級cpu還是RAM...disk drives 之類
     Like 1 Bookmark
  • 組員參考影片:sqlmap(Youtube)Beginner's Guide to sqlmap - Full Course 自己找的: 網路課程(WEB)CYBR:Beginner’s Guide to sqlmap 為啥SQL Injection prevalent(盛行)? Datebse is heart of web application![image](https://hackmd.io/_uploads/Bk880EYIa.png =50%x) Filled with valuable data Organization make defending against these type of attacks a top priority According to "Web Attack and Gaming Abuse"(2019)<font color=#FF0000>SQLi最高</font>(其次LFI-->XSS-->PHPi-->RIFI-->Other)image-->造成學習的人數於2021有了顯著的提升
     Like  Bookmark