原创 LeetCode1253. Reconstruct a 2-Row Binary Matrix(重構2行二進制矩陣)

1253. Reconstruct a 2-Row Binary Matrix Given the following details of a matrix with n columns and 2 rows : The ma

原创 LeetCode1234. 替換子串得到平衡字符串

1234. Replace the Substring for Balanced String You are given a string containing only 4 kinds of characters 'Q', '

原创 LeetCode1239. 串聯字符串的最大長度

1239. Maximum Length of a Concatenated String with Unique Characters Given an array of strings arr. String s is a c

原创 LeetCode795. 區間子數組個數

Github 795. Number of Subarrays with Bounded Maximum [Medium] We are given an array A of positive integers, and two

原创 tensorflow object detection api定義新的Feature Extractor

環境:tensorflow 1.12, win10. 目的:resnet 50網絡結構在某些情況下過深,增加tensorflow object detection api特徵提取器resnet 18。 安裝obeject dete

原创 LeetCode1262. 可被三整除的最大和

1262. Greatest Sum Divisible by Three Given an array nums of integers, we need to find the maximum possible sum of

原创 LeetCode1219. 黃金礦工

1219. Path with Maximum Gold In a gold mine grid of size m * n, each cell in this mine has an integer representing

原创 LeetCode1353. 最多可以參加的會議數目

1353. Maximum Number of Events That Can Be Attended [Medium] Given an array of events where events[i] = [startDayi,

原创 mathtype分隔符顯示與隱藏

顯示mathtype分隔符 在mathtype進行公式自動編號時,通過添加章節分隔符進行編號的章節化(類似第三章的公式對應編號3-1,3-2)。 mathtype的分隔符默認是隱藏的,選擇【MathType】-【瀏覽】-【章/節】

原创 LeetCode910. 最小差值 II

910. Smallest Range II [Medium] Given an array A of integers, for each integer A[i] we need to choose either x = -K

原创 捕獲C++命令行的輸出

How to execute a command and get return code stdout and stderr of command in C++ 目的:調用外部exe時,捕獲其返回值及屏幕輸出。 環境:Window

原创 LeetCode934. 最短的橋

934. Shortest Bridge [Medium] In a given 2D binary array A, there are two islands. (An island is a 4-directionally

原创 LeetCode1047. 刪除字符串中的所有相鄰重複項

1047. Remove All Adjacent Duplicates In String [Easy] Given a string S of lowercase letters, a duplicate removal co

原创 LeetCode918. 環形子數組的最大和

工程代碼下載 Github 918. Maximum Sum Circular Subarray [Medium] Given a circular array C of integers represented by A, fi

原创 LeetCode767. 重構字符串

767. Reorganize String [Medium] Given a string S, check if the letters can be rearranged so that two characters tha