随笔 - 455  文章 - 9  评论 - 17  阅读 - 18万
上一页 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 阅读(153) 评论(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 阅读(152) 评论(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 阅读(114) 评论(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 阅读(200) 评论(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 阅读(238) 评论(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 阅读(375) 评论(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 阅读(883) 评论(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 阅读(133) 评论(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 阅读(142) 评论(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 阅读(308) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 46 下一页
< 2024年12月 >
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31 1 2 3 4
5 6 7 8 9 10 11

点击右上角即可分享
微信分享提示