阳光岛主

欢迎访问我的新博客: https://blog.mimvp.com

Python 和 PHP 对腾讯云签名 hmac_sha256 算法实现

开宗明义,米扑科技在使用腾讯云的API接口签名中,按照官方示例开发PHP、Python的接口,经常会提示签名错误123456789{  "Response": {    "Error": {      "Co...

2018-05-08 22:45:18

阅读数:2064

评论数:0

link 链表反转

链表反转,示例如下:偶数个:a->b->c->d->e->fe->f->c->d->a->b奇数个:a->b->c->d->e->f->gg->e->f->c->d->a-...

2014-07-26 22:02:36

阅读数:3655

评论数:0

【leetcode】Construct Binary Tree from Inorder and Postorder Traversal

Question: Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.Anw...

2013-05-04 00:20:24

阅读数:4895

评论数:0

【leetcode】Construct Binary Tree from Preorder and Inorder Traversal

Question:  Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.Anw...

2013-05-03 23:26:32

阅读数:5415

评论数:1

【leetcode】Binary Tree Inorder Traversal

Question : Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / ...

2013-05-03 22:36:35

阅读数:3707

评论数:0

【leetcode】Flatten Binary Tree to Linked List

Question : Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 ...

2013-05-02 00:00:46

阅读数:4788

评论数:0

【leetcode】Binary Tree Level Order Traversal II

Question : Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to...

2013-05-01 23:21:41

阅读数:5117

评论数:1

【leetcode】Balanced Binary Tree

Question : Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in whi...

2013-05-01 22:54:40

阅读数:3500

评论数:0

【leetcode】Minimum Depth of Binary Tree

Question : Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to th...

2013-05-01 22:15:33

阅读数:3184

评论数:0

【leetcode】Generate Parentheses

Question :  Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a soluti...

2013-05-01 21:40:50

阅读数:4076

评论数:0

【leetcode】Longest Valid Parentheses

Question:Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For &quo...

2013-05-01 20:55:25

阅读数:3712

评论数:1

【leetcode】Valid Parentheses

Question :  Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must c...

2013-05-01 20:07:17

阅读数:4131

评论数:1

【leetcode】Binary Tree Maximum Path Sum

Question :  Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree...

2013-05-01 19:19:11

阅读数:3257

评论数:0

【leetcode】Letter Combinations of a Phone Number

Question : Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on ...

2013-05-01 18:20:16

阅读数:4328

评论数:1

【leetcode】Longest Consecutive Sequence

Question :  Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2...

2013-05-01 17:25:39

阅读数:3219

评论数:1

【leetcode】Valid Number

Question : Validate if a given string is numeric.Some examples:"0" => true" 0.1 " => true"abc" => false"1...

2013-04-21 23:50:28

阅读数:4377

评论数:1

【leetcode】Word Ladder II

Question : Given two words (start and end), and a dictionary, find all shortest transformation sequence(s) from start to end, such that:Only one lett...

2013-04-21 23:04:41

阅读数:4604

评论数:0

【leetcode】Word Ladder

Question :Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such that:Only on...

2013-04-21 21:57:11

阅读数:2776

评论数:0

【leetcode】Best Time to Buy and Sell Stock III

Question : Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You...

2013-04-21 21:18:20

阅读数:2652

评论数:0

【leetcode】Best Time to Buy and Sell Stock II

Quesion : Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You ...

2013-04-21 20:46:33

阅读数:2596

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭