题目: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. F…
分类:LeetCode
[array] leetCode-11. Container With Most Water-Medium
leetCode-11. Container With Most Water-Medium descrition Given n non-negative integers a1, a2, …, an, wh…
[LintCode][System Design] Rate Limiter
Problem Implement a rate limiter, provide one method: is_ratelimited(timestamp, event, rate, increment). times…
剑指offer(五)用两个栈模拟队列
写在前面: 为了增长一下自己的数据结构能力,也为了面试准备,准备将剑指Offer做一下,并与各位分享,希望各位可以对代码以及思路提提建议,欢迎志同道合者,谢谢。 题目: 用两个栈来实现一个队列,完成队列的Push和Pop…
Leetcode 139. Word Break
Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can …
Day6. Add Digits(258)
最难忘记的一道, 问题描述 Given a non-negative integer num, repeatedly add all its digits until the result has only one di…
Day19. Complex Number Multiplication(537)
问题描述 Given two strings representing two complex numbers. You need to return a string representing their multip…
[LeetCode] Bulls and Cows 公母牛游戏
You are playing the following Bulls and Cows game with your friend: You write a 4-digit secre…
[LeetCode] Find Right Interval 找右区间
Given a set of intervals, for each of the interval i, check if there exists an interval j whose start p…
[LeetCode] Split Concatenated Strings 分割串联字符串
Given a list of strings, you could concatenate these strings together into a loop, where for each strin…
[LeetCode] Min Cost Climbing Stairs 爬楼梯的最小损失
On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). O…
2. 两数相加(AddTwoNumbers)
上一篇:1.TwoSum(两数之和) 题目(Medium) You are given two non-empty linked lists representing two non-negative integers.…