上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 44 下一页
摘要: Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s and t. t is po 阅读全文
posted @ 2016-09-05 13:57 Grandyang 阅读(13592) 评论(3) 推荐(0) 编辑
摘要: Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Return 0 if the array contains less than 2 el 阅读全文
posted @ 2016-09-03 23:58 Grandyang 阅读(1136) 评论(0) 推荐(0) 编辑
摘要: 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 @ 2016-09-02 12:58 Grandyang 阅读(1488) 评论(0) 推荐(0) 编辑
摘要: Find the kth smallest number in at row and column sorted matrix. Have you met this question in a real interview? Yes Find the kth smallest number in a 阅读全文
posted @ 2016-09-01 12:24 Grandyang 阅读(1059) 评论(0) 推荐(0) 编辑
摘要: Given N axis-aligned rectangles where N > 0, determine if they all together form an exact cover of a rectangular region. Each rectangle is represented 阅读全文
posted @ 2016-08-31 13:51 Grandyang 阅读(10169) 评论(8) 推荐(2) 编辑
摘要: LaTex中使用itemize的时候,默认的每一项左边都有一小段距离,并不是紧贴着边缘的,那么如果我们想去掉这段距离,我们可以使用下面的命令: 阅读全文
posted @ 2016-08-31 02:04 Grandyang 阅读(2486) 评论(0) 推荐(0) 编辑
摘要: LaTex中字体大小有很多中等级,分别由下列命令控制: 阅读全文
posted @ 2016-08-31 00:48 Grandyang 阅读(15178) 评论(0) 推荐(0) 编辑
摘要: Given an integer array, find a continuous subarray where the sum of numbers is the biggest. Your code should return the index of the first number and 阅读全文
posted @ 2016-08-30 23:52 Grandyang 阅读(1497) 评论(0) 推荐(0) 编辑
摘要: 主界面 【Q】选择循环改变方式 【W】移动 【E】旋转 【R】缩放循环改变方式 【7】物体面数 【8】Environment 【9】Advanced lighting 【0】Render to Textures 【1】【2】【3】【4】【5】分别对应5个次物体级别,例如Edit Mesh中的点、线、 阅读全文
posted @ 2016-08-29 14:17 Grandyang 阅读(1681) 评论(0) 推荐(0) 编辑
摘要: Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at 阅读全文
posted @ 2016-08-28 23:57 Grandyang 阅读(10490) 评论(0) 推荐(0) 编辑
摘要: Given an integer matrix, find a submatrix where the sum of numbers is zero. Your code should return the coordinate of the left-up and right-down numbe 阅读全文
posted @ 2016-08-27 23:58 Grandyang 阅读(2167) 评论(0) 推荐(0) 编辑
摘要: Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return 阅读全文
posted @ 2016-08-26 14:07 Grandyang 阅读(959) 评论(0) 推荐(0) 编辑
摘要: Suppose we abstract our file system by a string in the following manner: The string "dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext" represents: The director 阅读全文
posted @ 2016-08-25 13:55 Grandyang 阅读(14677) 评论(5) 推荐(1) 编辑
摘要: OpenCV更新到3.0版本后,Stereo模块变化的挺多的,首先去掉了StereoBMState和StereoSGBMState这两个专门控制BM和SGBM算法参数的类,而且StereoBM不能直接声明实例,需要放到智能指针里cv::Ptr<cv::StereoBM>声明才行,而且不能直接通过访问 阅读全文
posted @ 2016-08-25 05:43 Grandyang 阅读(15096) 评论(0) 推荐(0) 编辑
摘要: 在Qt中,我们设置好按钮的相应事件,连好信号槽,声明什么的也没什问题,但为什么点击按钮就是没有反应,检查了半天终于发现原来是子面板上也有一个相同名称的按钮,一般来说两个面板不为父子关系的时候,分别在不同面板上的控件是可以重名的,但是为了保险起见,最好所有控件都不要重名,毕竟起个不同的名字又不是啥难事 阅读全文
posted @ 2016-08-25 02:01 Grandyang 阅读(5087) 评论(0) 推荐(0) 编辑
摘要: Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume the 阅读全文
posted @ 2016-08-24 11:13 Grandyang 阅读(12845) 评论(5) 推荐(0) 编辑
摘要: Given an integer n, return 1 - n in lexicographical order. For example, given 13, return: [1,10,11,12,13,2,3,4,5,6,7,8,9]. Please optimize your algori 阅读全文
posted @ 2016-08-23 10:30 Grandyang 阅读(13573) 评论(2) 推荐(0) 编辑
摘要: QTabWidget是Qt中的标签类,由于可切换到标签存在,大大的提高了软件可容纳的控件的数量,通过增加标签,我们几乎有用之不尽的空间,那么我们来看看这个类的一些基本用法: 声明控件: 切换标签的响应函数: 别忘了在头文件中加入私有槽的声明: 在代码中切换显示标签,0为第一个标签,1为第二个: 阅读全文
posted @ 2016-08-23 05:26 Grandyang 阅读(15864) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is a 阅读全文
posted @ 2016-08-22 06:43 Grandyang 阅读(747) 评论(0) 推荐(0) 编辑
摘要: Given two binary strings, return their sum (also a binary string). Have you met this question in a real interview? Yes Given two binary strings, retur 阅读全文
posted @ 2016-08-20 14:55 Grandyang 阅读(996) 评论(0) 推荐(1) 编辑
摘要: The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total num 阅读全文
posted @ 2016-08-19 15:08 Grandyang 阅读(720) 评论(0) 推荐(0) 编辑
摘要: 我们在使用Maya建模完成后可能会进行发布,为了自己或他人的方便使用,我们需要对建立好的模型进行些处理: 1. 删除历史记录:选择模型,Edit -> Delete by Type -> History 2. 数值归零: 选择模型,Modify -> Freeze Transformations 3 阅读全文
posted @ 2016-08-19 05:42 Grandyang 阅读(1289) 评论(0) 推荐(0) 编辑
摘要: Qt中的QTabWiget 类提供了一个标签控件,但是这个控件默认是有边框的,如果我们不想要边框,也可以去掉这个边框,我们可以在cpp文件中添加一行代码: 也可以在Qt Designer中在控件属性中找到styleSheet项,在打开的面板中之间加入下面一行代码: 如果想改变控件的背景颜色,可以参见 阅读全文
posted @ 2016-08-19 04:12 Grandyang 阅读(4064) 评论(0) 推荐(0) 编辑
摘要: Shuffle a set of numbers without duplicates. Example: 这道题让我们给数组洗牌,也就是随机打乱顺序,那么由于之前那道题Linked List Random Node我们接触到了水塘抽样Reservoir Sampling的思想,这道题实际上这道题也 阅读全文
posted @ 2016-08-18 11:42 Grandyang 阅读(19904) 评论(17) 推荐(0) 编辑
摘要: There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following re 阅读全文
posted @ 2016-08-17 10:57 Grandyang 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: After OpenCV 3.0, CvMat cannot be directly converted to cv::Mat, we need to use function cvarrToMat() to do it. Please see the code below: 阅读全文
posted @ 2016-08-17 06:29 Grandyang 阅读(1082) 评论(0) 推荐(0) 编辑
摘要: Reverse digits of an integer. Returns 0 when the reversed integer overflows (signed 32-bit integer). Reverse digits of an integer. Returns 0 when the 阅读全文
posted @ 2016-08-16 23:28 Grandyang 阅读(3320) 评论(0) 推荐(0) 编辑
摘要: Given a nested list of integers represented as a string, implement a parser to deserialize it. Each element is either an integer, or a list -- whose e 阅读全文
posted @ 2016-08-14 23:49 Grandyang 阅读(11005) 评论(4) 推荐(2) 编辑
摘要: http://www.missyuan.com/thread-446934-1-1.html Photoshop绘制逼真头发发丝效果http://www.missyuan.com/thread-446912-1-1.html Photoshop合成在空中漂移的陆地http://www.missyua 阅读全文
posted @ 2016-08-13 00:52 Grandyang 阅读(3277) 评论(0) 推荐(0) 编辑
摘要: Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the rans 阅读全文
posted @ 2016-08-12 11:35 Grandyang 阅读(6296) 评论(0) 推荐(0) 编辑
摘要: IOS学习资料 - 逆天整理 - 精华无密版【最新】【精华】 无限互联3G学院 iOS开发视频教程UI 极客学院IOS iPhone 6的自适应布局 阅读全文
posted @ 2016-08-12 05:57 Grandyang 阅读(335) 评论(0) 推荐(0) 编辑
摘要: Given a singly linked list, return a random node's value from the linked list. Each node must have the same probability of being chosen. Implement the 阅读全文
posted @ 2016-08-11 10:17 Grandyang 阅读(15511) 评论(7) 推荐(1) 编辑
摘要: Design a data structure that supports all following operations in average O(1) time. Note: Duplicate elements are allowed. insert(val): Inserts an ite 阅读全文
posted @ 2016-08-10 11:43 Grandyang 阅读(10135) 评论(8) 推荐(1) 编辑
摘要: Download OpenCV 3.1 Download OpenCV Extra Modules Download VS2010 Download CMake 3.2.0 Download Cuda 7.5 Download GPU Computing SDK 4.0 Download Intel 阅读全文
posted @ 2016-08-09 12:19 Grandyang 阅读(1427) 评论(0) 推荐(0) 编辑
摘要: 今天装latex的distribution MikTex时,360各种报病毒,一气之下怒删360,删完又觉得空荡荡的,于是找了一些可以替代360功能的免费软件,参见下面这个帖子我的“360安全卫士”各功能外国免费替代软件小列表。 阅读全文
posted @ 2016-08-09 05:14 Grandyang 阅读(5453) 评论(0) 推荐(0) 编辑
摘要: Divide two integers without using multiplication, division and mod operator. If it is overflow, return 2147483647 Divide two integers without using mu 阅读全文
posted @ 2016-08-08 23:52 Grandyang 阅读(1419) 评论(0) 推荐(0) 编辑
摘要: Middlebury Stereo Evaluation Camera Calibration and 3D Reconstruction OpenCV学习笔记(18)双目测距与三维重建的OpenCV实现问题集锦(三)立体匹配与视差计算 Camera calibration With OpenCV 阅读全文
posted @ 2016-08-08 09:36 Grandyang 阅读(1125) 评论(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 阅读(760) 评论(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 阅读(2638) 评论(4) 推荐(0) 编辑
摘要: Design a data structure that supports all following operations in average O(1) time. Example: 这道题让我们在常数时间范围内实现插入删除和获得随机数操作,如果这道题没有常数时间的限制,那么将会是一道非常简单的 阅读全文
posted @ 2016-08-05 12:40 Grandyang 阅读(21706) 评论(13) 推荐(3) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 44 下一页
Fork me on GitHub