## 《算法竞赛入门经典》第一章

1.PI除了宏定义外，更好的办法可以通过下面获得：#include <math.h> const double pi=acos(-1.0);2.通过程序计时：#include <time.h> int main(){     ...    ...

## [LeetCode] Jump Game II

Jump Game IIGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Your go...

## [LeetCode] Wildcard Matching

Wildcard MatchingImplement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character. '*' Matches...

## [LeetCode] Regular Expression Matching

Regular Expression MatchingImplement regular expression matching with support for '.' and '*'.'.' Matches any single character. '*'&...

## [LeetCode] Search a 2D Matrix

Search a 2D MatrixWrite an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted from left to r...

## [LeetCode] Basic Calculator II

Basic Calculator IIImplement a basic calculator to evaluate a simple expression string.The expression string contains only non-negative integers, +, -, *, and / operators. The integer divisi...

## [LeetCode] Single Number II

Single Number IIGiven an array of integers, every element appears three times except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you impl...

## [LeetCode] Single Number

Single NumberGiven an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it ...