
leetcode-java
文章平均质量分 69
zsensei
这个作者很懒,什么都没留下…
展开
-
[leetcode]1. Two Sum
题目链接问题描述 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not原创 2017-07-11 11:13:04 · 736 阅读 · 0 评论 -
[leetcode]561. Array Partition I
题目链接问题描述: Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), …, (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as l原创 2017-07-05 22:51:26 · 767 阅读 · 0 评论 -
[leetcode]383. Ransom Note
题目链接题目描述 Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ransom note can be constructed from the maga原创 2017-07-12 16:43:04 · 780 阅读 · 0 评论 -
[leetcode]476. Number Complement
题目链接问题描述 Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: The given integer is guaranteed to fit w原创 2017-07-10 10:31:26 · 711 阅读 · 0 评论 -
[leetcode]521. Longest Uncommon Subsequence I
题目链接题目描述 Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is defined as the longest subsequence of one of原创 2017-07-14 21:17:27 · 857 阅读 · 0 评论 -
[Leetcode]522. Longest Uncommon Subsequence II
Longest Uncommon Subsequence II题目描述 Given a list of strings, you need to find the longest uncommon subsequence among them. The longest uncommon subsequence is defined as the longest subsequence of on原创 2017-07-17 14:11:32 · 2311 阅读 · 0 评论 -
[LeetCode]402. Remove K Digits
问题链接问题描述 Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: The length of num is less than 1原创 2017-08-09 21:43:03 · 971 阅读 · 0 评论