leetcode筆記:Binary Tree Preorder Traversal
一. 題目描述Given a binary tree, return the preorder traversal of its nodes’ va
leetcode筆記:Isomorphic Strings
一.題目描述Given two strings s and t, determine if they are isomorphic.Two strings ar
[LeetCode從零單刷]Ugly Number
題目: Write a program to check whether a given number is an ugly number.Ugly
[LeetCode從零單刷]Majority Element
題目:Given an array of size n, find the majority element. The majority eleme
Compile C++ code in Matlab with OpenCV support
Provides a function named as “mex_opencv(src)”The codefunction mex_o
leetcode筆記:Maximum Depth of Binary Tree
一. 題目描述Given a binary tree, find its maximum depth.The maximum depth is the numb
LeetCode 15 3Sum(3個數的和)
翻譯給定一個有n個整數的數組S,是否存在三個元素a,b,c使得a+b+c=0?找出該數組中所有不重復的3個數,它們的和為0。備注:這三個元素必須是從小到大進行排
leetcode筆記:Minimum Depth of Binary Tree
一. 題目描述Given a binary tree, find its minimum depth.The minimum depth is the numb
leetcode筆記:Largest Rectangle in Histogram
一.題目描述Given n non-negative integers representing the histogram’s bar heigh
LeetCode – Combination Sum
題目描述:Given a set of candidate numbers (C) and a target number (T), find all uniq