上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 44 下一页
摘要: For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decre 阅读全文
posted @ 2019-08-05 14:47 自由之翼Az 阅读(230) 评论(0) 推荐(0)
摘要: Given three integers A, B and C in [−], you are supposed to tell whether A+B>C. Input Specification: The first line of the input gives the positive nu 阅读全文
posted @ 2019-08-03 19:21 自由之翼Az 阅读(335) 评论(0) 推荐(0)
摘要: A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes 阅读全文
posted @ 2019-08-03 16:42 自由之翼Az 阅读(217) 评论(0) 推荐(0)
摘要: Given two sets of integers, the similarity of the sets is defined to be /, where N​c​​ is the number of distinct common numbers shared by the two sets 阅读全文
posted @ 2019-08-03 15:09 自由之翼Az 阅读(138) 评论(0) 推荐(0)
摘要: About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people's talent and virtue. According to his theor 阅读全文
posted @ 2019-08-03 14:45 自由之翼Az 阅读(239) 评论(0) 推荐(0)
摘要: Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minut 阅读全文
posted @ 2019-08-03 13:09 自由之翼Az 阅读(179) 评论(0) 推荐(0)
摘要: If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0 with simple c 阅读全文
posted @ 2019-08-03 11:22 自由之翼Az 阅读(112) 评论(0) 推荐(0)
摘要: Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p​1​​​k​1​​​​×p​2​​​k​2​​​​×⋯×p​m​​​ 阅读全文
posted @ 2019-08-03 10:32 自由之翼Az 阅读(174) 评论(0) 推荐(0)
摘要: If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver 阅读全文
posted @ 2019-08-03 09:04 自由之翼Az 阅读(134) 评论(0) 推荐(0)
摘要: Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basic operations include Push ( 阅读全文
posted @ 2019-08-02 23:44 自由之翼Az 阅读(312) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 44 下一页