原创 優先隊列priority_queue的使用
#include <iostream> #include <queue> #include <vector> using my_pair_t = std::pair<size_t, bool>; using my_container_t
原创 SVN報錯“Previous operation has not finished; run 'cleanup' if it was interrupted”的解決方法
百試不爽的解決方法 1. 網上可以下到sqlite-shell-win32-x86: sqlite3.exe 2.將sqlite3.exe放到svn 項目的主目錄下,和.svn目錄同級下。 3.執行 sqlite3 .svn/wc.d
原创 C#多線程實例清晰易懂
using System; using System.Threading; public class Fibonacci { private int _n; private int _fibOfN; priva
原创 LeetCode541. Reverse String II小學生都會
Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the s
原创 C#文件讀寫追加創建目錄,判斷目錄是否存在等操作
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Thr
原创 Leetcode506. Relative Ranks簡單粗暴
Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be aw