LeetCode
文章平均质量分 78
sunnyyyyyyyyyyyy
这个作者很懒,什么都没留下…
展开
-
Roman to Integer 【LeetCode】
题目:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Subscribe to see which companies asked this question解析思路:原创 2017-05-16 22:48:45 · 261 阅读 · 0 评论 -
Integer to Roman【LeetCode】
题目:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Subscribe to see which companies asked this question.Show TagsShow Similar Proble原创 2017-05-17 13:07:30 · 488 阅读 · 0 评论 -
Valid Anagram【LeetCode】
题目:Given two string s and t, write a function to determine if t is an anagram of s.For example,s ="anagram", t="nagaram", return true.s="rat", t="car", return false.Note:You may assume the原创 2017-05-17 23:28:30 · 332 阅读 · 0 评论 -
Add Two Numbers【LeetCode】
题目:You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and原创 2017-05-14 16:10:47 · 455 阅读 · 0 评论 -
Two Sum【LeetCode】
题目: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 use原创 2017-05-18 10:00:28 · 301 阅读 · 0 评论 -
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 a原创 2017-05-19 11:16:49 · 448 阅读 · 0 评论 -
Perfect Number【LeetCode】
题目:We define the Perfect Number is a positive integer that is equal to the sum of all its positive divisors except itself.Now, given an integer n, write a function that returns true when it原创 2017-05-19 14:01:47 · 618 阅读 · 0 评论