Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
網頁
(移至...)
首頁
密碼學
程式設計Programming
APP
計算機概論
▼
2025年1月11日 星期六
Python C++速解Leetcode迴文1400 Construct K Palindrome Strings
›
Python C++速解Leetcode迴文1400 Construct K Palindrome Strings 關鍵:偶數長度的回文字串中所有字母都出現偶數,奇數長度的回文字串中除了一個例外其他所有字母都出現偶數。 ---------- The key observatio...
2025年1月3日 星期五
C++ python 用Prefix Sum速解Leetcode 2270 Number of Ways to Split Array
›
Prefix sum這個概念,只要數學會用Sigma的,問題都不大,基本上就是partial sum。程式要寫的好,老實講該有數學概念真不能少,演算法的東西畢竟是真刀真槍的。 C++ python 用Prefix Sum速解Leetcode 2270 Number of Way...
2024年12月27日 星期五
C++Python Greedy DP速解Leetcode 1014 Best Sightseeing Pair
›
C++Python Greedy DP速解Leetcode 1014 Best Sightseeing Pair 算是貪婪演算還是動態規劃,其實都算 解法類似Kadane演算法。 ----------- Leetcode 1014. Best Sightseeing Pai...
python Keras使用仿AlexNet針對oxflower達到100趴的辨識率實測
›
2024年12月23日 星期一
C++BFS走訪 level排序與DFS cycle長度計數解Leetcode 2471 Minimum Number of Operatio...
›
C++BFS走訪 level排序與DFS cycle長度計數解Leetcode 2471 Minimum Number of Operations to Sort a Binary Tree by Level 解圖論問題Leetcode 2471. Minimum Numb...
2024年12月19日 星期四
2024 Keras跑仿AlexNet辨識oxflower17處理在Colab上的諸多坑
›
2024 teachable machine訓練好的Keras模型在Colab上執行辨識
›
2024年12月5日 星期四
2024pandas與黃金、外匯匯率之二pyplot, seaborn繪圖, numpy回歸分析
›
Python C C++ 2 pointer速解Leetcode 2337 Move Pieces to Obtain a String
›
Python C C++ 2 pointer速解Leetcode 2337 Move Pieces to Obtain a String 多日Leetcode的問題都可用2-pointer法來解,今日2337. Move Pieces to Obtain a String也不例...
2024年11月18日 星期一
Python C++ sliding window速解Leetcode 1652 defuse the bomb
›
Leetcode的1652. Defuse the Bomb是絕佳的練習題,特別是針對Python的使用者,雖說是sliding window 是簡單的那種,還可練習loop, slicing, minus index etc . https://leetcode.com/pro...
‹
›
首頁
查看網路版