标签归档:leetcode

RSS feed of leetcode

[LeetCode]Number of Segments in a String

题目描述:

LeetCode 434. Number of Segments in a String

Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters.

For example,

Input: "Hello, my name is John"

Output: 5 ...

继续阅读

LeetCode Weekly Contest 10解题报告

LeetCode Weekly Contest 10是LeetCode举办的第十三场正式周赛,共4道题目,比赛时长2.5小时。

比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-10/

题解列表:

LeetCode 463. Island Perimeter

LeetCode 464. Can I Win

LeetCode 462. Minimum Moves to Equal Array Elements II

LeetCode 465. Optimal Account Balancing

[LeetCode]Minimum Moves to Equal Array Elements II

题目描述:

LeetCode 462. Minimum Moves to Equal Array Elements II

Given a non-empty integer array, find the minimum number of moves required to make all array elements equal, where a move is incrementing a selected element by 1 or decrementing ...

继续阅读