摘要: 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 node 阅读全文
posted @ 2018-01-27 16:47 A-Little-Nut 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Given two sets of integers, the similarity of the sets is defined to be Nc/Nt 100%, where Nc is the number of distinct common numbers shared by the tw 阅读全文
posted @ 2018-01-27 15:35 A-Little-Nut 阅读(177) 评论(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 @ 2018-01-27 14:55 A-Little-Nut 阅读(137) 评论(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 min 阅读全文
posted @ 2018-01-27 14:36 A-Little-Nut 阅读(140) 评论(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.123 105 with 阅读全文
posted @ 2018-01-27 11:43 A-Little-Nut 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1 p2^k2 … pm^km. Input Specifica 阅读全文
posted @ 2018-01-27 11:38 A-Little-Nut 阅读(135) 评论(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 Sic 阅读全文
posted @ 2018-01-27 09:07 A-Little-Nut 阅读(117) 评论(0) 推荐(0) 编辑