摘要:
题目:Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 解题思路:罗马数字的构成规则是: 相同的数字连写,所表示的数等于这些数字相加得 阅读全文
posted @ 2016-04-19 18:49
CodingGirl121
阅读(107)
评论(0)
推荐(0)
摘要:
题目:Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the 阅读全文
posted @ 2016-04-19 18:05
CodingGirl121
阅读(99)
评论(0)
推荐(0)
摘要:
题目: Given two strings 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", 阅读全文
posted @ 2016-04-19 18:00
CodingGirl121
阅读(157)
评论(0)
推荐(0)
摘要:
题目:Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, 阅读全文
posted @ 2016-04-19 16:49
CodingGirl121
阅读(112)
评论(0)
推荐(0)
摘要:
题目:You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 s 阅读全文
posted @ 2016-04-19 16:35
CodingGirl121
阅读(114)
评论(0)
推荐(0)
摘要:
题目:Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example: Given num = 16, return true. Given num = 5, retur 阅读全文
posted @ 2016-04-19 15:35
CodingGirl121
阅读(166)
评论(0)
推荐(0)

浙公网安备 33010602011771号