上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 76 下一页
摘要: 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-01 13:49 bernieloveslife 阅读(135) 评论(0) 推荐(0)
摘要: Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: The root is the maximum number in the array. Th 阅读全文
posted @ 2018-11-01 13:49 bernieloveslife 阅读(74) 评论(0) 推荐(0)
摘要: Given a string S of '(' and ')' parentheses, we add the minimum number of parentheses ( '(' or ')', and in any positions ) so that the resulting paren 阅读全文
posted @ 2018-11-01 13:49 bernieloveslife 阅读(120) 评论(0) 推荐(0)
摘要: There is a box protected by a password. The password is n digits, where each letter can be one of the first k digits 0, 1, ..., k 1. You can keep inpu 阅读全文
posted @ 2018-10-31 11:46 bernieloveslife 阅读(202) 评论(0) 推荐(0)
摘要: Given an n ary tree, return the preorder traversal of its nodes' values. For example, given a 3 ary tree: Return its preorder traversal as: [1,3,5,6,2 阅读全文
posted @ 2018-10-31 11:46 bernieloveslife 阅读(68) 评论(0) 推荐(0)
摘要: Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: The given inte 阅读全文
posted @ 2018-10-31 11:46 bernieloveslife 阅读(101) 评论(0) 推荐(0)
摘要: You have a list of words and a pattern, and you want to know which words in words matches the pattern. A word matches the pattern if there exists a pe 阅读全文
posted @ 2018-10-31 11:46 bernieloveslife 阅读(87) 评论(0) 推荐(0)
摘要: Given an array A of non negative integers, half of the integers in A are odd, and half of the integers are even. Sort the array so that whenever A[i] 阅读全文
posted @ 2018-10-31 11:46 bernieloveslife 阅读(158) 评论(0) 推荐(0)
摘要: You are given a map in form of a two dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/ve 阅读全文
posted @ 2018-10-30 12:09 bernieloveslife 阅读(94) 评论(0) 推荐(0)
摘要: Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the image below. Examp 阅读全文
posted @ 2018-10-30 12:09 bernieloveslife 阅读(100) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 76 下一页