原创 c++ 數據結構——樹

1.樹概念: 暫略。 2.樹的相關題目: 2.1 leetcode 104 —— Maximum Depth of Binary Tree /** * Definition for a binary tree node. * str

原创 VS下使用QT踩過的一些坑

環境:QT5.13.0+VS2017(一定要15.9,詳情見坑1) 坑1:在vs2017擴展與更新裝好了QT以後QT VS tools有問題 描述詳見:https://ask.csdn.net/questions/749987 原因:我之

原创 leetcode 39題 組合總數(c++)

題目描述: 給定一個無重複元素的數組 candidates 和一個目標數 target ,找出 candidates 中所有可以使數字和爲 target 的組合。 candidates 中的數字可以無限制重複被選取。 說明: 所有數字(包

原创 leetcode 78題 子集(c++ 三種解法)

題目描述: 給定一組不含重複元素的整數數組 nums,返回該數組所有可能的子集(冪集)。 說明:解集不能包含重複的子集。 示例: 輸入: nums = [1,2,3] 輸出: [ [3],   [1],   [2],   [1,2,

原创 latex入門文檔大全

安裝編輯器及使用:https://liam.page/2014/09/08/latex-introduction/ latex寫僞代碼的模板:https://blog.csdn.net/u010682375/article/details

原创 spring之@Value詳解

@Value注入 不通過配置文件的注入屬性的情況 通過@Value將外部的值動態注入到Bean中,使用的情況有: 注入普通字符串 注入操作系統屬性 注入表達式結果 注入其他Bean屬性:注入beanInject對象的屬性another 注

原创 java 版本區別,java SE是什麼,下載JDK時各個名稱的含義

原文鏈接:https://blog.csdn.net/yinghuo110/article/details/80658308 https://blog.csdn.net/yinghuo110/a

原创 Manacher算法總結

原文鏈接:https://blog.csdn.net/dyx404514/article/details/42061017 Manacher算法 算法總結第三彈 manacher算法,前面講了

原创 C++類中的常量

原文鏈接:https://www.cnblogs.com/this-543273659/archive/2011/08/02/2125020.html#commentform 由於#define

原创 卡特蘭數

1.概念及應用: http://lanqi.org/skills/10939/ https://www.cnblogs.com/-Wallace-/p/10308683.html https://www.cnblogs.com/slp06

原创 排列組合詳解

https://blog.csdn.net/zeo_m/article/details/80505404 https://blog.csdn.net/ccDLlyy/article/details/54808756 https://zhu

原创 字符串匹配的三種算法

1.一道字符串匹配題: 實現 strStr() 函數。 給定一個 haystack 字符串和一個 needle 字符串,在 haystack 字符串中找出 needle 字符串出現的第一個位置 (從0開始)。如果不存在,則返回  -1。

原创 c++ 數據結構——哈希表

1.哈希表的用法: https://blog.csdn.net/sevenjoin/article/details/81943864 2.相關題目: 2.1 leetcode 1 —— Two Sum class Solution {

原创 STL系列之六 set與hash_set

原文鏈接:https://blog.csdn.net/MoreWindows/article/details/7029587 https://blog.csdn.net/MoreWindows/

原创 網易有道C++開發內推編程題答案

1.最大公約數: 最大公約數的解法:https://www.cnblogs.com/fogwind/p/6092845.html #include <iostream> using std::cout; using std::cin;