iT邦幫忙

c++相關文章
共有 490 則文章
8月 LeetCode Daily 見聞錄 系列 第 10

技術 [8/10] 959. Regions Cut By Slashes

MediumRelated Topics: Array / Hash Table / DFS / BFS / Union Find MatrixLeetCod...

技術 [8/9] 840. Magic Squares In Grid

MediumRelated Topics: Array / Hash Table / Math / MatrixLeetCode Source 解題想法 整...

技術 [8/8] 885. Spiral Matrix III

MediumRelated Topics: Array / Matrix / SimulationLeetCode Source 解題想法 首先設定每次尋訪...

技術 [8/7] 273. Integer to English Words

HardRelated Topics: Hash Table / String / Greedy / Sorting / CountingLeetCode S...

技術 [8/6] 3016. Minimum Number of Pushes to Type Word II

MediumRelated Topics: Hash Table / String / Greedy / Sorting / CountingLeetCode...

技術 [8/5] 2053. Kth Distinct String in an Array

EasyRelated Topics: Array / Hash Table / String / CountingLeetCode Source 解題想法...

技術 [8/4] 1508. Range Sum of Sorted Subarray Sums

MediumRelated Topics: Array / Two Pointers / Binary Search / SortingLeetCode So...

技術 [8/3] 1460. Make Two Arrays Equal by Reversing Subarrays

EasyRelated Topics: Array / Hash Table / SortingLeetCode Source 解題想法 基本上就是判斷說兩...

技術 [8/2] 2134. Minimum Swaps to Group All 1's Together II

MediumRelated Topics: Array / Sliding WindowLeetCode Source 解題想法 我們首先遍歷數組來計算1的...

技術 [8/1] 2678. Number of Senior Citizens

EasyRelated Topics: Array / StringLeetCode Source 解題想法 在 details 的陣列中,總長 15,計算...

技術 C++程式整合AutoCAD查詢dwg圖檔被開啟及鎖住狀態

本程式WhoLockDwg.exe整合在AutoCAD可查詢dwg圖檔被開啟及鎖住狀態。 程式約2007年以C++在BCB6完成,整合在AutoCAD工具列,可...

技術 C++ lambda test code

#include <algorithm> #include <iostream> #include <functional&gt...

技術 (C++)如何將指定時間日期轉換成UNIX時間&如何將UNIX時間轉換成日期

雖然稱不上多難,但是找可用的方法東拼西湊還是要花點時間,紀錄一下幫看到這篇的人省點時間需求:C++語言標準ISO C++20只使用STL庫,不需額外Librar...

技術 [LeetCode] 13. Roman to Integer

MediumRelated Topics: Hash Table / Math / StringLeetCode Source 解題想法 LeetCode...

技術 Leetcode 中文。你可能只花一分鐘寫完程式碼,但是比較困難在於閱讀英文題目。

歐氏定理: 「英文文法跟中文是相反的。」Return true if s is an acronym of words, and false otherwise...

技術 [LeetCode] 42. Trapping Rain Water

HardRelated Topics: Array / Two Pointers / Dynamic Programming / Stack / Monoto...

技術 [LeetCode] 135. Candy

HardRelated Topics: Array / GreedyLeetCode Source 解題想法 首先先確認 len(ratings),如果小於...

技術 [LeetCode] 134. Gas Station

MediumRelated Topics: Array / GreedyLeetCode Source 解題想法 這題是看之前解的方法 Python cl...

技術 [LeetCode] 238. Product of Array Except Self

MediumRelated Topics: Array / Prefix SumLeetCode Source 解題想法 這題我是看別人解法 原本以為要用...

技術 [LeetCode] 380. Insert Delete GetRandom O(1)

MediumRelated Topics: Array / Hash Table / Math / Design / RandomizedLeetCode S...

技術 [LeetCode] 274. H-Index

MediumRelated Topics: Array / Sorting / Counting SortLeetCode Source 解題想法 這題我卡...

技術 [LeetCode] 45. Jump Game II

MediumRelated Topics: Array / Dynamic Programming / GreedyLeetCode Source 解題想法...

技術 [LeetCode] 55. Jump Game

MediumRelated Topics: Array / Dynamic Programming / GreedyLeetCode Source 解題想法...

技術 [LeetCode] 122. Best Time to Buy and Sell Stock II

MediumRelated Topics: Array / Dynamic Programming / GreedyLeetCode Source 解題想法...

技術 [LeetCode] 121. Best Time to Buy and Sell Stock

EasyRelated Topics: Array / Dynamic ProgrammingLeetCode Source 解題想法 當下想到最直覺的解法...

技術 [LeetCode] 189. Rotate Array

MediumRelated Topics: Array / Math / Two PointersLeetCode Source 解題想法 這裡初始化 l...

技術 [LeetCode] 169. Majority Element

EasyRelated Topics: Array / Hash Table / Divide and Conquer / Sorting / Countin...

技術 [LeetCode] 80. Remove Duplicates from Sorted Array II

MediumRelated Topics: Array / Two PointersLeetCode Source 解題想法 這題跟昨天類似,但可重複的數字...

技術 [LeetCode] 26. Remove Duplicates from Sorted Array

EasyRelated Topics: Array / Two PointersLeetCode Source 解題想法 這題有 Hint 我有看一下 XD...

技術 [LeetCode] 27. Remove Element

EasyRelated Topics: Array / Two PointersLeetCode Source 解題想法 題目除了要回傳最後 nums 的長...