/* 自定義代碼塊樣式 */

herrDeng網內搜尋

自訂搜尋

Ads

顯示具有 opencv 標籤的文章。 顯示所有文章
顯示具有 opencv 標籤的文章。 顯示所有文章

2024年10月4日 星期五

貪婪計數Python C++解Leetcode 2491 Divide Players Into Teams of Equal Skill


貪婪計數Python C++解Leetcode 2491  Divide Players Into Teams of Equal Skill
貪婪演算+counting sort加上2-pointer這樣就完成打敗100趴的快速C++解答[Python code請進]
-----

2024年8月9日 星期五

Python C++解魔方陣Leetcode 840 Magic Squares In Grid



Python C++解魔方陣Leetcode 840  Magic Squares In Grid.
影片一開始就是展示如何解一個3x3的魔方陣,5總是在中心
In the beginning of film is to show how to solve a 3x3 magic square, 5 is always in the center.

2023年7月5日 星期三

backtracking solves 8 queens by C++八后問題展示回遡解答


backtracking solves 8 queen by C++. Visualize the solving process by own C++/openCV program. Base on my C++ code solving Leetcode 51. N-Queens. There are exact 92 solutions for 8 queens. Some of them will be shown.

2023年6月30日 星期五

BFS Minheap waterway solves #Leetcode 1970 Last Day Where You Can Still ...


BFS最小堆水路解Leetcode 1970 "最後一天你仍然可以穿越"的隨機測試案例。 使用C++/OpenCV將解方視覺化。核心想法是找到從第1欄到第col欄的連通水路。水路要用8個方向才可切斷陸路。
Related Posts Plugin for WordPress, Blogger...

熱門文章