上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 33 下一页
摘要: 109. 有序链表转换二叉搜索树 Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 给定一个单链表,其中的元素按升序排序,将其转换 阅读全文
posted @ 2019-03-20 15:47 twoheads 阅读(185) 评论(0) 推荐(0) 编辑
摘要: balanced-binary-tree (1过) Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a bin 阅读全文
posted @ 2019-03-20 10:58 twoheads 阅读(114) 评论(0) 推荐(0) 编辑
摘要: path-sum (1过) Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals th 阅读全文
posted @ 2019-03-19 17:41 twoheads 阅读(118) 评论(0) 推荐(0) 编辑
摘要: best-time-to-buy-and-sell-stock-i Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted t 阅读全文
posted @ 2019-03-19 11:01 twoheads 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 原题地址https://leetcode.com/problems/single-number-ii/ 题目描述Given an array of integers, every element appears three times except for one. Find that single 阅读全文
posted @ 2019-03-18 17:52 twoheads 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 原题地址https://leetcode.com/problems/single-number/ 题目描述Given an array of integers, every element appears twice except for one. Find that single one. 给出一 阅读全文
posted @ 2019-03-18 15:44 twoheads 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 已查询Test的建表语句为例: 阅读全文
posted @ 2019-03-12 15:41 twoheads 阅读(22010) 评论(0) 推荐(2) 编辑
摘要: 1.JS方法 2.<a>标签 https://blog.csdn.net/esunshine1985/article/details/52596912 阅读全文
posted @ 2019-03-11 17:03 twoheads 阅读(8245) 评论(0) 推荐(0) 编辑
摘要: 项目遇到该问题 先上结论:不要直接用double变量作为构造BigDecimal的参数。 线上有这么一段Java代码逻辑: 1,接口传来一个JSON串,里面有个数字:57.3。 2,解析JSON并把这个数字保存在一个float变量。 3,把这个float变量赋值给一个 BigDecimal对象,用的 阅读全文
posted @ 2019-03-05 15:59 twoheads 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 如果jquery中,想要获取ajax的return返回值,必须注意两方面,ajax的同步异步问题,在ajax方法里面还是外面进行return返回值。 下面列举了三种写法,如果想成功获取到返回值,参考第三种写法:(即,前面两种是反面教材) 注:参考博客:https://www.cnblogs.com/ 阅读全文
posted @ 2019-03-01 16:19 twoheads 阅读(12623) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 33 下一页