摘要:
Valid Anagram 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 阅读全文
posted @ 2016-05-10 19:11
Juntaran
阅读(191)
评论(0)
推荐(0)
摘要:
Power of Two Given an integer, write a function to determine if it is a power of two. 阅读全文
posted @ 2016-05-10 19:10
Juntaran
阅读(135)
评论(0)
推荐(0)
摘要:
Excel Sheet Column Number Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding colu 阅读全文
posted @ 2016-05-10 19:09
Juntaran
阅读(164)
评论(0)
推荐(0)
摘要:
Contains Duplicate Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at lea 阅读全文
posted @ 2016-05-10 19:09
Juntaran
阅读(157)
评论(0)
推荐(0)
摘要:
Majority Element Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You ma 阅读全文
posted @ 2016-05-10 19:08
Juntaran
阅读(193)
评论(0)
推荐(0)