摘要: 747_Largest Number At Least Twice of Others [TOC] Description In a given integer array , there is always exactly one largest element. Find whether the 阅读全文
posted @ 2018-06-17 11:37 xugenpeng 阅读(246) 评论(0) 推荐(0)
摘要: 724_Find Pivot Index [TOC] Description Given an array of integers , write a method that returns the "pivot" index of this array. We define the pivot i 阅读全文
posted @ 2018-06-17 11:36 xugenpeng 阅读(187) 评论(0) 推荐(0)
摘要: 20_有效的括号(Valid Parentheses) [TOC] 描述 给定一个只包括 ,`')' '{' '}' '[' ']'` 的字符串,判断字符串是否有效。 有效字符串需满足: 1. 左括号必须用相同类型的右括号闭合。 2. 左括号必须以正确的顺序闭合。 注意空字符串可被认为是有效字符串。 阅读全文
posted @ 2018-06-17 11:35 xugenpeng 阅读(1052) 评论(0) 推荐(0)
摘要: 66_Plus One [TOC] Description Given a non empty array of digits representing a non negative integer, plus one to the integer. The digits are stored su 阅读全文
posted @ 2018-06-17 11:31 xugenpeng 阅读(233) 评论(0) 推荐(0)