摘要: This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Inp 阅读全文
posted @ 2018-08-27 22:06 赖兴宇 阅读(232) 评论(0) 推荐(0) 编辑
摘要: Excel can sort records according to any column. Now you are supposed to imitate this function. Input Specification: Each input file contains one test 阅读全文
posted @ 2018-08-27 22:01 赖兴宇 阅读(124) 评论(0) 推荐(0) 编辑
摘要: The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants. A binary search tree (BST) i 阅读全文
posted @ 2018-08-27 09:52 赖兴宇 阅读(138) 评论(0) 推荐(0) 编辑
摘要: There is a kind of balanced binary search tree named red-black tree in the data structure. It has the following 5 properties: (1) Every node is either 阅读全文
posted @ 2018-08-27 00:24 赖兴宇 阅读(349) 评论(0) 推荐(0) 编辑