摘要: 题目描述 Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. Note: The algorithm should run in linear time and in O(1 阅读全文
posted @ 2019-06-26 16:08 你好哇傻小妞 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given a sorted integer array without duplicates, return the summary of its ranges. 题目大意 给定一个有序数组,要求将数组中的数字按照连续数字进行分类表示,即前后连续的数字例如0,1,2,3表示为0->3 。 阅读全文
posted @ 2019-06-26 14:57 你好哇傻小妞 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / operat 阅读全文
posted @ 2019-06-26 11:13 你好哇傻小妞 阅读(131) 评论(0) 推荐(0) 编辑