leetcode筆記:Best Time to Buy and Sell Stock IV
leetcode筆記:Best Time to Buy and Sell Stock IV 一. 題目描述 Say you have an array for
LeetCode 24 Swap Nodes in Pairs
LeetCode 24 Swap Nodes in Pairs 翻譯 給定一個鏈表,調換每兩個相鄰節點,並返回其頭部。 例如, 給定 1->2->
leetcode筆記:Best Time to Buy and Sell Stock II
leetcode筆記:Best Time to Buy and Sell Stock II 一. 題目描述 Say you have an array for
java 使用substring 截取特殊字符串的後一位或者數字,javasubstring
java 使用substring 截取特殊字符串的後一位或者數字,javasubstring關於截取特殊的字符串的後一位或者數字 需求:截取特殊字符為 &nbs
那個你經常用的abs函數(取絕對值)真的總是返回非負數嗎?,abs絕對值
那個你經常用的abs函數(取絕對值)真的總是返回非負數嗎?,abs絕對值 前幾天在牛客網看到一道關於abs()函數返回值的題目,見下圖,當時還沒反應過來,第一
VC++ CArchive及簡單的文件操作方法,
VC++ CArchive及簡單的文件操作方法,CArchive 方法用於存取文件 我向你推薦的是使用CArchive,它的使用方法簡單且功能十分強大。首
關於函數名稱和庫函數名稱沖突的故事,函數庫函數
關於函數名稱和庫函數名稱沖突的故事,函數庫函數嘗試一下C++模版,起了個比較大小的函數叫max 然後發現錯誤一大堆 #include<iostream&
leetcode筆記:Best Time to Buy and Sell Stock III
leetcode筆記:Best Time to Buy and Sell Stock III 一. 題目描述 Say you have an array for
LeetCode 23 Merge k Sorted Lists
LeetCode 23 Merge k Sorted Lists 翻譯 合並K個已排序的鏈表,並且將其排序並返回。 分析和描述其復雜性。 原文 Merge
LeetCode 27 Remove Element(移除元素)
LeetCode 27 Remove Element(移除元素) 翻譯 給定一個數組和一個值,刪除該值的所有實例,並返回新的長度。 元素的順序可以被改變,也
leetcode筆記:Decode Ways
leetcode筆記:Decode Ways 一. 題目描述 A message containing letters from A-Z is being en
LeetCode 26 Remove Duplicates from Sorted Array(從已排序數組中移除重復元素)
LeetCode 26 Remove Duplicates from Sorted Array(從已排序數組中移除重復元素) 翻譯 給定一個已排序的數組,刪除
[LeetCode從零單刷]Intersection of Two Linked Lists
[LeetCode從零單刷]Intersection of Two Linked Lists 題目: Write a program to fin