一篇关于房价的杂文

这个货币膨胀的时代,名义GDP飙升,银行利息跑不赢CPI,持有资金的人焦急地寻找着资金的出口,黄金、股市、期货、房地产等等。十几年来,股票市场、期货市场、黄金市场都历经过大幅波动有的甚至一度处于崩溃边缘,只有房地产信心十足始终如一。去年夏天G20前夕与朋友在西湖边的一番谈论也形成共识:投资房产的唯一不足就是流通性,收益高、风险低,远远好过其它主流投资方式。在传统理财产品之外,支付宝等各种网络金融理财产品纷纷出世以缓和资金的焦急,覆盖最后的一块空缺,同时也赚走蛋糕的余下部分。

Leer más

LeetCode 29. Divide Two Integers

题意

Divide two integers without using multiplication, division and mod operator.
If it is overflow, return MAX_INT.

Leer más

LeetCode 206. Reverse Linked List

题意

Reverse a singly linked list.

Leer más

LeetCode 100. SameTree

题意

Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
给定两棵二叉树,需要判断他们是否相等,相等的定义是结构相同且对应的值相等。

Leer más

LeetCode 17. Letter Combinations of a Phone Number

题意

Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below.

Leer más

LeetCode 16. 3Sum Closest

题意

Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly one solution.

Leer más

LeetCode 15. 3Sum

题意

Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note: The solution set must not contain duplicate triplets.

Leer más

JavaScript笔记:类型、值、变量、类型转换

JavaScript中的类型

Leer más

LeetCode 456. 132 Pattern

Description

Given a sequence of n integers a1, a2, …, an, a 132 pattern is a subsequence ai, aj, ak such that i < j < k and ai < ak < aj. Design an algorithm that takes a list of n numbers as input and checks whether there is a 132 pattern in the list.
Note: n will be less than 15,000.

Leer más

LeetCode 50. Pow(x,n)

题意

Implement pow(x, n).
实现幂乘函数Pow(x,n)。

Leer más