上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 50 下一页
摘要: 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 @ 2020-02-06 16:07 SteveYu 阅读(212) 评论(0) 推荐(0) 编辑
摘要: The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. 阅读全文
posted @ 2020-02-06 14:48 SteveYu 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Given any permutation of the numbers {0, 1, 2,..., N−1}, it is easy to sort them in increasing order. But what if Swap(0, *) is the ONLY operation tha 阅读全文
posted @ 2020-02-06 14:15 SteveYu 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which cou 阅读全文
posted @ 2020-02-06 13:26 SteveYu 阅读(155) 评论(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 @ 2020-02-05 17:39 SteveYu 阅读(197) 评论(0) 推荐(0) 编辑
摘要: For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient. Input Sp 阅读全文
posted @ 2020-02-05 16:54 SteveYu 阅读(169) 评论(0) 推荐(0) 编辑
摘要: To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same s 阅读全文
posted @ 2020-02-05 14:36 SteveYu 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1.网络模型 a.编程模型 TCP UDP TCP 可靠连接、使命必达、速度慢 UDP 不可靠、速度快 1.常见的IO模型 blocking IO == Old IO(BIO) 案例:如果不开线程,那么就会阻塞。 Non Blocking IO(NIO) Java的API还不如C 调用Linux底层 阅读全文
posted @ 2020-02-04 23:51 SteveYu 阅读(351) 评论(0) 推荐(0) 编辑
摘要: A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re 阅读全文
posted @ 2020-02-04 16:12 SteveYu 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 删除本地tag git tag -d v20190514 删除远程tag git push origin :refs/tags/v1.0 阅读全文
posted @ 2020-02-04 05:23 SteveYu 阅读(317) 评论(0) 推荐(1) 编辑
摘要: Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional 阅读全文
posted @ 2020-02-02 14:11 SteveYu 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 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 @ 2020-02-02 13:11 SteveYu 阅读(162) 评论(0) 推荐(0) 编辑
摘要: A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find t 阅读全文
posted @ 2020-02-01 19:32 SteveYu 阅读(139) 评论(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 @ 2020-02-01 17:57 SteveYu 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Two integers are called "friend numbers" if they share the same sum of their digits, and the sum is their "friend ID". For example, 123 and 51 are fri 阅读全文
posted @ 2020-02-01 16:50 SteveYu 阅读(123) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 50 下一页