上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 44 下一页
摘要: This time, you are supposed to help us collect the data for family-owned property. Given each person's family members, and the estate(房产)info under hi 阅读全文
posted @ 2019-09-03 23:04 自由之翼Az 阅读(256) 评论(0) 推荐(0) 编辑
摘要: Given a set of N (>) positive integers, you are supposed to partition them into two disjoint sets A​1​​ and A​2​​ of n​1​​and n​2​​ numbers, respectiv 阅读全文
posted @ 2019-09-03 20:53 自由之翼Az 阅读(183) 评论(0) 推荐(0) 编辑
摘要: On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear rep 阅读全文
posted @ 2019-09-03 20:14 自由之翼Az 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Input our current position and a destination, an online map can recommend several paths. Now your job is to recommend two paths to your user: one is t 阅读全文
posted @ 2019-09-03 09:59 自由之翼Az 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 【题目】二叉树可以用常规的三种遍历结果来描述其结构,但是不够直观,尤其是二叉树中有重复值的时候,仅通过三种遍历的结果来构造二叉树的真实结构更是难上加难,有时则根本不可能。给定一棵二叉树的头节点head,已知二叉树节点值的类型为32位整型,请实现一个打印二叉树的函数,可以直观地展示树的形状,也便于画出 阅读全文
posted @ 2019-09-02 23:19 自由之翼Az 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Given a tree, you are supposed to tell if it is a complete binary tree. Input Specification: Each input file contains one test case. For each case, th 阅读全文
posted @ 2019-09-02 21:29 自由之翼Az 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Formation is very important when taking a group photo. Given the rules of forming K rows with Npeople as the following: The number of people in each r 阅读全文
posted @ 2019-09-02 20:55 自由之翼Az 阅读(206) 评论(0) 推荐(0) 编辑
摘要: The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input n 阅读全文
posted @ 2019-09-02 20:17 自由之翼Az 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 对二叉树的节点来说,有本身的值域,有指向左孩子和右孩子的两个指针;对双向链表的节点来说,有本身的值域,有指向上一个节点和下一个节点的指针。在结构上,两种结构有相似性,现在有一棵搜索二叉树,请将其转换为一个有序的双向链表。 阅读全文
posted @ 2019-09-01 22:53 自由之翼Az 阅读(164) 评论(0) 推荐(0) 编辑
摘要: When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. A socia 阅读全文
posted @ 2019-09-01 14:48 自由之翼Az 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 44 下一页