上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 37 下一页
摘要: Given a set of n nuts of different sizes and n bolts of different sizes. There is a one-one mapping between nuts and bolts. Comparison of a nut to ano 阅读全文
posted @ 2017-09-25 14:01 Review->Improve 阅读(500) 评论(0) 推荐(0) 编辑
摘要: The code base version is an integer start from 1 to n. One day, someone committed a bad version in the code case, so it caused this version and the fo 阅读全文
posted @ 2017-09-15 06:29 Review->Improve 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Calculate the (a^n) % b where a, b and n are all 32bit integers. Calculate the (a^n) % b where a, b and n are all 32bit integers. Calculate the (a^n) 阅读全文
posted @ 2017-09-15 05:58 Review->Improve 阅读(219) 评论(0) 推荐(0) 编辑
摘要: The diameter of a tree (sometimes called the width) is the number of nodes on the longest path between two leaves in the tree. The diagram below shows 阅读全文
posted @ 2017-09-15 03:58 Review->Improve 阅读(231) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree with each node having one extra field of nextRight. nextRight points to the next right node of the same level. Initially all nodes 阅读全文
posted @ 2017-09-13 14:01 Review->Improve 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Given a Binary Tree, find if there exist edge whose removal creates two trees of equal size. Examples: To find whether such an edge exists, we need to 阅读全文
posted @ 2017-09-13 06:53 Review->Improve 阅读(383) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array of n integers, find the starting and ending position of a given target value. If the target is not found in the array, return [-1 阅读全文
posted @ 2017-09-08 12:20 Review->Improve 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Given a binary search tree (See Definition) and a node in it, find the in-order successor of that node in the BST. If the given node has no in-order s 阅读全文
posted @ 2017-09-08 12:15 Review->Improve 阅读(330) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, flip it up 阅读全文
posted @ 2017-09-07 11:01 Review->Improve 阅读(283) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, collect a tree's nodes as if you were doing this: Collect and remove all leaves, repeat until the tree is empty. Have you met thi 阅读全文
posted @ 2017-09-07 06:12 Review->Improve 阅读(255) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 37 下一页