實戰c++中的智能指針unique_ptr系列-- 使用std::unique_ptr代替new operator(錯誤:‘unique_ptr’ is not a member of ‘std’)
實戰c++中的智能指針unique_ptr系列-- 使用std::unique_ptr代替new operator(錯誤:‘unique_ptr’ is not
實戰c++中的vector系列--再談vector的insert()方法(都是make_move_iterator惹的禍)
實戰c++中的vector系列--再談vector的insert()方法(都是make_move_iterator惹的禍) 之前說過了關於vector的inse
LeetCode 104 Maximum Depth of Binary Tree(二叉樹的最大深度)
LeetCode 104 Maximum Depth of Binary Tree(二叉樹的最大深度) 翻譯 給定一個二叉樹,找出它的最大深度。 最大深度是
LeetCode Swap Nodes in Pairs
LeetCode Swap Nodes in Pairs LeetCode解題之Swap Nodes in Pairs 原題 將鏈表中相鄰的兩個節點交換位置,
HDU 1394 Minimum Inversion Number(樹狀數組||線段樹)
HDU 1394 Minimum Inversion Number(樹狀數組||線段樹) 題目鏈接:點擊打開鏈接 對於求逆序數的問題, 通常用線段樹或者樹狀數組
LeetCode Merge k Sorted Lists
LeetCode Merge k Sorted Lists LeetCode解題之Merge k Sorted Lists 原題 將k個有序的鏈表拼接成一個有
LeetCode 258 Add Digits(數字相加,數字根)
LeetCode 258 Add Digits(數字相加,數字根) 翻譯 給定一個非負整型數字,重復相加其所有的數字直到最後的結果只有一位數。 例如: 給
實戰c++中的vector系列--對vector(自定義類)使用std::find 和 std::find_if 算法
實戰c++中的vector系列--對vector(自定義類)使用std::find 和 std::find_if 算法 之前博客講了一些關於std::find和
LeetCode 292 Nim Game(Nim游戲)
LeetCode 292 Nim Game(Nim游戲) 翻譯 你正在和你的朋友們玩下面這個Nim游戲:桌子上有一堆石頭,每次你從中去掉1-3個。誰消除掉最後一
實戰c++中的vector系列--使用sort算法對vector(unique_ptr(string))進行排序(sort函數出錯“應輸入 2 個參數,卻提供了 3 個)
實戰c++中的vector系列--使用sort算法對vector(unique_ptr(string))進行排序(sort函數出錯“應輸入 2 個參數,卻提供了
poj3468 A Simple Problem with Integers(線段樹)
poj3468 A Simple Problem with Integers(線段樹) A Simple Problem with Integers Ti
leetcode筆記:First Missing Positive
leetcode筆記:First Missing Positive 一. 題目描述 Given an unsorted integer array, find
ZigZag排列問題與經典筆試面試題目解析
ZigZag排列問題與經典筆試面試題目解析 一、圖像壓縮編碼中的Z字排序JPEG(Joint Photographic ExpertsGroup)是一種常見的圖
Dubbo無法訪問遠程Zookeeper已注冊服務的問題
Dubbo無法訪問遠程Zookeeper已注冊服務的問題 背景 使用Dubbo的時候發現當Zookeeper、Dubbo-admin、生產者和消費者都在 內網中
extern "C" 用法解析,extern用法解析
extern "C" 用法解析,extern用法解析extern c用法解析 作者 作者Jason Ding ,鏈接http:
strcmp函數的使用,strcmp函數使用
strcmp函數的使用,strcmp函數使用 strcmp是比較兩個字符串的大小,兩個字符串相同時返回0,第一個字符串大於第二個字符串時返回一個正值,否則返回