原创 正定與半正定矩陣的理解

這篇文章解釋的非常好。

原创 LeetCode不定時刷題——Climbing Stairs

Climbing Stairs You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb

原创 LeetCode不定時刷題——Convert Sorted Array to Binary Search Tree

Convert Sorted Array to Binary Search Tree Given an array where elements are sorted in ascending order, convert it

原创 LeetCode不定時刷題——Remove Duplicates from Sorted List

Remove Duplicates from Sorted List Given a sorted linked list, delete all duplicates such that each element appear

原创 LeetCode不定時刷題——Implement strStr()

Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of

原创 LeetCode不定時刷題——Same Tree

Same Tree Given two binary trees, write a function to check if they are the same or not. Two binary trees are consi

原创 LeetCode不定時刷題——Symmetric Tree

Symmetric Tree Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For e

原创 LeetCode不定時刷題——Valid Parentheses

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is val

原创 LeetCode不定時刷題——Reverse Interger

Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input:

原创 LeetCode不定時刷題——Remove Duplicates

Given a sorted array, remove the duplicates in-place such that each element appear only once and return the new len

原创 LeetCode不定時刷題——Merge two sorted linked lists and return it as a new list

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nod

原创 LeetCode不定時刷題——palindrome

Determine whether an integer is a palindrome. Do this without extra space. 判斷一個整型是否是迴文,迴文需要規避負數,以及小於10的正數,別的與之前的Rev

原创 LeetCode不定時刷題——LCP

Write a function to find the longest common prefix string amongst an array of strings. class Solution { public Stri

原创 LeetCode不定時刷題——Ugly Number

Ugly Number Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers wh

原创 javascript基礎知識記錄

JavaScript基礎知識 使用的方法爲window對象的,window對象可以省略 form對象在文檔中按數組進行存儲,取form對象時,直接使用數組取值的方式,forms[n]