11 2017 档案

摘要:Implement a MyCalendar class to store your events. A new event can be added if adding the event will not cause a double booking. Your class will have 阅读全文
posted @ 2017-11-29 14:14 Grandyang 阅读(7367) 评论(0) 推荐(1) 编辑
摘要:A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because 128 % 1 == 0, 128 阅读全文
posted @ 2017-11-27 23:55 Grandyang 阅读(4435) 评论(0) 推荐(0) 编辑
摘要:Design a search autocomplete system for a search engine. Users may input a sentence (at least one word and end with a special character '#'). For each 阅读全文
posted @ 2017-11-25 23:56 Grandyang 阅读(12338) 评论(4) 推荐(0) 编辑
摘要:Given a (singly) linked list with head node root, write a function to split the linked list into k consecutive linked list "parts". The length of each 阅读全文
posted @ 2017-11-22 12:04 Grandyang 阅读(5038) 评论(1) 推荐(1) 编辑
摘要:下面是iOS开发用第三方库可能出现的错误,及其解决方法: 1. 'NSInvalidArgumentException', reason: '-[UITableView mas_makeConstraints:]: unrecognized selector sent to instance 0x7 阅读全文
posted @ 2017-11-21 13:08 Grandyang 阅读(5275) 评论(0) 推荐(0) 编辑
摘要:Given an array of integers nums, write a method that returns the "pivot" index of this array. We define the pivot index as the index where the sum of 阅读全文
posted @ 2017-11-20 12:08 Grandyang 阅读(5520) 评论(1) 推荐(0) 编辑
摘要:This question is about implementing a basic elimination algorithm for Candy Crush. Given a 2D integer array board representing the grid of candy, diff 阅读全文
posted @ 2017-11-18 23:40 Grandyang 阅读(11990) 评论(0) 推荐(1) 编辑
摘要:Given a C++ program, remove comments from it. The program source is an array where source[i] is the i-th line of the source code. This represents the 阅读全文
posted @ 2017-11-15 23:58 Grandyang 阅读(6007) 评论(0) 推荐(0) 编辑
摘要:Given a list accounts, each element accounts[i] is a list of strings, where the first element accounts[i][0] is a name, and the rest of the elements a 阅读全文
posted @ 2017-11-13 23:52 Grandyang 阅读(14622) 评论(2) 推荐(0) 编辑
摘要:Design a max stack that supports push, pop, top, peekMax and popMax. push(x) -- Push element x onto stack. pop() -- Remove the element on top of the s 阅读全文
posted @ 2017-11-12 22:56 Grandyang 阅读(16035) 评论(0) 推荐(0) 编辑
摘要:Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other wo 阅读全文
posted @ 2017-11-10 23:52 Grandyang 阅读(7141) 评论(0) 推荐(0) 编辑
摘要:Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays. Example 1: Input: A: [1,2,3,2,1] B: [3,2,1,4,7 阅读全文
posted @ 2017-11-07 22:37 Grandyang 阅读(10272) 评论(16) 推荐(0) 编辑
摘要:We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11). N 阅读全文
posted @ 2017-11-05 23:57 Grandyang 阅读(5635) 评论(0) 推荐(0) 编辑
摘要:在使用Visual Studio进行项目开发的时候,有时候会遇到下面这个错误: Unhandled exception at 0x00905a4d in xxx.exe: 0xC0000005: Access violation 产生这个错误的原因可能是在Visual Studio中链接了后缀为"* 阅读全文
posted @ 2017-11-04 00:54 Grandyang 阅读(1471) 评论(0) 推荐(0) 编辑
摘要:Your are given an array of integers prices, for which the i-th element is the price of a given stock on day i; and a non-negative integer fee represen 阅读全文
posted @ 2017-11-03 10:29 Grandyang 阅读(9641) 评论(0) 推荐(1) 编辑
摘要:在用VS开发项目的时候,我们可以将不同的模块拆分开来,分别建立单独的Project来开发调试,整个放到一个Solution中就行了。这样做的好处是结构清晰,每个功能模块可以单独调试,而不用编译整个Solution,尤其当项目很大的时候,能节省很多编译时间。而且各个项目之间相互独立,对于每个模块,我们 阅读全文
posted @ 2017-11-01 11:32 Grandyang 阅读(857) 评论(0) 推荐(0) 编辑

Fork me on GitHub