上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 46 下一页
  2017年8月8日
摘要: Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is used. Note: Example 1: Example 2: 阅读全文
posted @ 2017-08-08 15:26 Beserious 阅读(150) 评论(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", t = 阅读全文
posted @ 2017-08-08 11:51 Beserious 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: "Gold Medal", "Sil 阅读全文
posted @ 2017-08-08 10:32 Beserious 阅读(110) 评论(0) 推荐(0) 编辑
  2017年8月7日
摘要: Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure your 阅读全文
posted @ 2017-08-07 19:31 Beserious 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: Construct the maximum tree by the given array a 阅读全文
posted @ 2017-08-07 10:33 Beserious 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target. E 阅读全文
posted @ 2017-08-07 10:30 Beserious 阅读(372) 评论(0) 推荐(0) 编辑
  2017年8月6日
摘要: Given an array A (index starts at 1) consisting of N integers: A1, A2, ..., AN and an integer B. The integer B denotes that from any place (suppose th 阅读全文
posted @ 2017-08-06 22:14 Beserious 阅读(879) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 阅读全文
posted @ 2017-08-06 21:02 Beserious 阅读(130) 评论(0) 推荐(0) 编辑
  2017年8月5日
摘要: Given an integer, write a function to determine if it is a power of two. 阅读全文
posted @ 2017-08-05 22:33 Beserious 阅读(141) 评论(0) 推荐(0) 编辑
摘要: B. Flag of Berland time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output The flag of Berland is 阅读全文
posted @ 2017-08-05 16:49 Beserious 阅读(305) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 46 下一页