摘要: A Cartesian tree is a binary tree constructed from a sequence of distinct numbers. The tree is heap-ordered, and an inorder traversal returns the orig 阅读全文
posted @ 2021-02-20 21:39 coderJ_ONE 阅读(95) 评论(0) 推荐(0)
摘要: A summit (峰会) is a meeting of heads of state or government. Arranging the rest areas for the summit is not a simple job. The ideal arrangement of one 阅读全文
posted @ 2021-02-20 21:33 coderJ_ONE 阅读(57) 评论(0) 推荐(0)
摘要: Given a singly linked list L. Let us consider every K nodes as a block (if there are less than K nodes at the end of the list, the rest of the nodes a 阅读全文
posted @ 2021-02-20 21:28 coderJ_ONE 阅读(83) 评论(0) 推荐(0)
摘要: When your interviewer asks you to write "Hello World" using C, can you do as the following figure shows? Input Specification: Each input file contains 阅读全文
posted @ 2021-02-20 21:26 coderJ_ONE 阅读(89) 评论(2) 推荐(0)
摘要: "Forever number" is a positive integer A with K digits, satisfying the following constrains: the sum of all the digits of A is m; the sum of all the d 阅读全文
posted @ 2021-02-20 21:21 coderJ_ONE 阅读(155) 评论(0) 推荐(0)