上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 45 下一页
摘要: Middlebury Stereo Evaluation Camera Calibration and 3D Reconstruction OpenCV学习笔记(18)双目测距与三维重建的OpenCV实现问题集锦(三)立体匹配与视差计算 Camera calibration With OpenCV 阅读全文
posted @ 2016-08-08 09:36 Grandyang 阅读(1137) 评论(0) 推荐(0)
摘要: Validate if a given string is numeric. Have you met this question in a real interview? Yes Validate if a given string is numeric. Validate if a given 阅读全文
posted @ 2016-08-07 23:44 Grandyang 阅读(773) 评论(0) 推荐(0)
摘要: Given an integer array nums with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer ta 阅读全文
posted @ 2016-08-06 12:00 Grandyang 阅读(2651) 评论(4) 推荐(0)
摘要: Design a data structure that supports all following operations in average O(1) time. Example: 这道题让我们在常数时间范围内实现插入删除和获得随机数操作,如果这道题没有常数时间的限制,那么将会是一道非常简单的 阅读全文
posted @ 2016-08-05 12:40 Grandyang 阅读(22023) 评论(13) 推荐(3)
摘要: Design a Phone Directory which supports the following operations: Example: 又是一道设计题,让我们设计一个电话目录管理系统,可以分配电话号码,查询某一个号码是否已经被使用,释放一个号码。既然要分配号码,肯定需要一个数组 num 阅读全文
posted @ 2016-08-04 03:13 Grandyang 阅读(11391) 评论(5) 推荐(0)
摘要: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Notice Have you consider that the string 阅读全文
posted @ 2016-08-03 02:51 Grandyang 阅读(513) 评论(0) 推荐(0)
摘要: Given an n x n matrix where each of the rows and columns is sorted in ascending order, return the kth smallest element in the matrix. Note that it is 阅读全文
posted @ 2016-08-02 06:46 Grandyang 阅读(37347) 评论(18) 推荐(0)
摘要: Given an integer, convert it to a roman numeral. The number is guaranteed to be within the range from 1 to 3999. Given an integer, convert it to a rom 阅读全文
posted @ 2016-08-01 09:24 Grandyang 阅读(719) 评论(0) 推荐(0)
摘要: Given a roman numeral, convert it to an integer. The answer is guaranteed to be within the range from 1 to 3999. Have you met this question in a real 阅读全文
posted @ 2016-07-31 23:03 Grandyang 阅读(654) 评论(0) 推荐(0)
摘要: Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representati 阅读全文
posted @ 2016-07-30 23:46 Grandyang 阅读(895) 评论(0) 推荐(0)
摘要: The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11. 11 is read o 阅读全文
posted @ 2016-07-29 06:52 Grandyang 阅读(1055) 评论(0) 推荐(0)
摘要: Given an absolute path for a file (Unix-style), simplify it. Given an absolute path for a file (Unix-style), simplify it. Have you met this question i 阅读全文
posted @ 2016-07-28 23:54 Grandyang 阅读(713) 评论(0) 推荐(0)
摘要: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word 阅读全文
posted @ 2016-07-27 23:35 Grandyang 阅读(498) 评论(0) 推荐(0)
摘要: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. Given a string containing just 阅读全文
posted @ 2016-07-26 22:45 Grandyang 阅读(974) 评论(0) 推荐(0)
摘要: Given an array of distinct integers nums and a target integer target, return the number of possible combinations that add up to target. The answer is  阅读全文
posted @ 2016-07-25 23:19 Grandyang 阅读(24133) 评论(19) 推荐(2)
摘要: Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another e 阅读全文
posted @ 2016-07-24 23:59 Grandyang 阅读(1811) 评论(0) 推荐(0)
摘要: Given an array A of integer with size of n( means n books and number of pages of each book) and k people to copy the book. You must distribute the con 阅读全文
posted @ 2016-07-23 23:49 Grandyang 阅读(2006) 评论(0) 推荐(0)
摘要: A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. The 阅读全文
posted @ 2016-07-22 23:57 Grandyang 阅读(11739) 评论(7) 推荐(1)
摘要: 在Maya中,我们可以用脚本来控制物体的自转方向,速度等等,步骤如下: 选择需要操作的物体object,打开通道盒Channel Box,点击编辑Edit,打开表达式Expressions面板 选择需要转动轴rotateX, rotateY, 或者rotateZ 然后在下面输入: 上面的代码表示物体 阅读全文
posted @ 2016-07-21 02:12 Grandyang 阅读(1470) 评论(0) 推荐(0)
摘要: Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho 阅读全文
posted @ 2016-07-20 23:31 Grandyang 阅读(1128) 评论(0) 推荐(0)
摘要: Given a string containing only digits, restore it by returning all possible valid IP address combinations. Have you met this question in a real interv 阅读全文
posted @ 2016-07-19 23:48 Grandyang 阅读(944) 评论(0) 推荐(0)
摘要: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Given n pairs of parentheses, write a function 阅读全文
posted @ 2016-07-18 23:39 Grandyang 阅读(793) 评论(0) 推荐(0)
摘要: Implement pow(x, n). Notice You don't need to care about the precision of your answer, it's acceptable if the expected answer and your answer 's diffe 阅读全文
posted @ 2016-07-17 23:54 Grandyang 阅读(1352) 评论(0) 推荐(0)
摘要: We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron 阅读全文
posted @ 2016-07-16 23:48 Grandyang 阅读(22827) 评论(10) 推荐(0)
摘要: Given a boolean 2D matrix, find the number of islands. Notice 0 is represented as the sea, 1 is represented as the island. If two 1 is adjacent, we co 阅读全文
posted @ 2016-07-15 11:09 Grandyang 阅读(918) 评论(0) 推荐(0)
摘要: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. Given a 2D binary matrix filled with 阅读全文
posted @ 2016-07-14 23:41 Grandyang 阅读(947) 评论(0) 推荐(0)
摘要: We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron 阅读全文
posted @ 2016-07-13 12:40 Grandyang 阅读(12244) 评论(8) 推荐(0)
摘要: The structure of Segment Tree is a binary tree which each node has two attributes startand end denote an segment / interval. start and end are both in 阅读全文
posted @ 2016-07-12 11:50 Grandyang 阅读(1024) 评论(0) 推荐(0)
摘要: The structure of Segment Tree is a binary tree which each node has two attributes start and end denote an segment / interval. start and end are both i 阅读全文
posted @ 2016-07-11 10:00 Grandyang 阅读(1756) 评论(0) 推荐(0)
摘要: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then l 阅读全文
posted @ 2016-07-10 09:59 Grandyang 阅读(1595) 评论(0) 推荐(0)
摘要: Design a parking lot. see CC150 OO Design for details.1) n levels, each level has m rows of spots and each row has k spots.So each level has m x k spo 阅读全文
posted @ 2016-07-09 23:37 Grandyang 阅读(3904) 评论(3) 推荐(0)
摘要: You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. Define a pair (u, v) which consists of one element from t 阅读全文
posted @ 2016-07-08 13:39 Grandyang 阅读(17937) 评论(2) 推荐(0)
摘要: Your task is to calculate ab mod 1337 where a is a positive integer and b is an extremely large positive integer given in the form of an array. Exampl 阅读全文
posted @ 2016-07-07 23:51 Grandyang 阅读(12172) 评论(5) 推荐(2)
摘要: Given a linked list, swap every two adjacent nodes and return its head. Given a linked list, swap every two adjacent nodes and return its head. Exampl 阅读全文
posted @ 2016-07-06 23:12 Grandyang 阅读(638) 评论(0) 推荐(0)
摘要: Remove all elements from a linked list of integers that have value val. Remove all elements from a linked list of integers that have value val. Have y 阅读全文
posted @ 2016-07-05 22:53 Grandyang 阅读(613) 评论(0) 推荐(0)
摘要: Flatten a binary tree to a fake "linked list" in pre-order traversal. Here we use the right pointer in TreeNode as the next pointer in ListNode. Notic 阅读全文
posted @ 2016-07-04 23:44 Grandyang 阅读(1082) 评论(0) 推荐(0)
摘要: Given an integer array, sort it in ascending order. Use quick sort, merge sort, heap sort or any O(nlogn) algorithm. Given an integer array, sort it i 阅读全文
posted @ 2016-07-03 12:46 Grandyang 阅读(2364) 评论(0) 推荐(0)
摘要: Given an integer array, sort it in ascending order. Use selection sort, bubble sort, insertion sort or any O(n2) algorithm. Given an integer array, so 阅读全文
posted @ 2016-07-02 12:32 Grandyang 阅读(2268) 评论(0) 推荐(0)
摘要: Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example 1: Input: a = 1, b = 2 Output: 3 Example 2: In 阅读全文
posted @ 2016-07-01 08:43 Grandyang 阅读(23875) 评论(10) 推荐(2)
摘要: You are given two jugs with capacities jug1Capacity and jug2Capacity liters. There is an infinite amount of water supply available. Determine whether 阅读全文
posted @ 2016-06-30 08:55 Grandyang 阅读(14557) 评论(12) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 45 下一页
Fork me on GitHub