摘要:
题目描述 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 阅读全文
摘要:
题目描述 Given a sorted integer array without duplicates, return the summary of its ranges. 题目大意 给定一个有序数组,要求将数组中的数字按照连续数字进行分类表示,即前后连续的数字例如0,1,2,3表示为0->3 。 阅读全文
摘要:
题目描述 Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / operat 阅读全文