上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页

2018年11月26日

摘要: An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535). Given a coordinate (sr, 阅读全文
posted @ 2018-11-26 18:15 chiyeung 阅读(165) 评论(0) 推荐(0) 编辑

2018年11月25日

摘要: We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. For example, 阅读全文
posted @ 2018-11-25 16:20 chiyeung 阅读(91) 评论(0) 推荐(0) 编辑
摘要: Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: Note: There are at 阅读全文
posted @ 2018-11-25 16:13 chiyeung 阅读(158) 评论(0) 推荐(0) 编辑

2018年11月24日

摘要: Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ident 阅读全文
posted @ 2018-11-24 15:10 chiyeung 阅读(86) 评论(0) 推荐(0) 编辑
摘要: Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree. Exa 阅读全文
posted @ 2018-11-24 09:40 chiyeung 阅读(187) 评论(0) 推荐(0) 编辑

2018年11月23日

摘要: Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all 阅读全文
posted @ 2018-11-23 11:32 chiyeung 阅读(122) 评论(0) 推荐(0) 编辑
摘要: At a lemonade stand, each lemonade costs $5. Customers are standing in a queue to buy from you, and order one at a time (in the order specified by bil 阅读全文
posted @ 2018-11-23 10:45 chiyeung 阅读(138) 评论(0) 推荐(0) 编辑

2018年11月22日

摘要: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr 阅读全文
posted @ 2018-11-22 10:45 chiyeung 阅读(81) 评论(0) 推荐(0) 编辑
摘要: Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Example 2: Note:You may assume the string contains only 阅读全文
posted @ 2018-11-22 10:41 chiyeung 阅读(103) 评论(0) 推荐(0) 编辑

2018年11月21日

摘要: We want to use quad trees to store an N x N boolean grid. Each cell in the grid can only be true or false. The root node represents the whole grid. Fo 阅读全文
posted @ 2018-11-21 11:52 chiyeung 阅读(218) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页

导航