摘要: 原题链接在这里:https://leetcode.com/problems/maximum-product-of-three-numbers/ 题目: Given an integer array, find three numbers whose product is maximum and ou 阅读全文
posted @ 2017-09-13 13:46 Dylan_Java_NYC 阅读(368) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/convert-bst-to-greater-tree/description/ 题目: Given a Binary Search Tree (BST), convert it to a Greater Tree such 阅读全文
posted @ 2017-09-13 13:21 Dylan_Java_NYC 阅读(131) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/trim-a-binary-search-tree/ 题目: Given a binary search tree and the lowest and highest boundaries as L and R, trim 阅读全文
posted @ 2017-09-13 08:19 Dylan_Java_NYC 阅读(351) 评论(0) 推荐(0)
摘要: 原题链接在这里:https://leetcode.com/problems/judge-route-circle/description/ 题目: Initially, there is a Robot at position (0, 0). Given a sequence of its move 阅读全文
posted @ 2017-09-13 02:05 Dylan_Java_NYC 阅读(355) 评论(0) 推荐(0)
摘要: Java String.split() method 有如下几种特殊情况: 1. 分隔符出现在首尾 结果是: 首部的分隔符革出一个空位,尾部分隔符没有革出空位. 这里的空位不是空格.参看3 和 4. 2. 结果: 如果中间没有革出值,那么所有值都清空. 3. 结果: 若是首尾出现空格,那么会被单独革 阅读全文
posted @ 2017-09-13 02:00 Dylan_Java_NYC 阅读(237) 评论(0) 推荐(0)