上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页
摘要: Problem:Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the 3... 阅读全文
posted @ 2015-08-31 12:31 airforce 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Problem:Design a data structure that supports the following two operations:void addWord(word)bool search(word)search(word) can search a literal word o... 阅读全文
posted @ 2015-08-31 10:43 airforce 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Problem:Given two words (startandend), and a dictionary, find all shortest transformation sequence(s) fromstarttoend, such that:Only one letter can be... 阅读全文
posted @ 2015-08-30 12:07 airforce 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Problem:Given two words (beginWordandendWord), and a dictionary, find the length of shortest transformation sequence frombeginWordtoendWord, such that... 阅读全文
posted @ 2015-08-30 11:03 airforce 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Problem:Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top right corner a... 阅读全文
posted @ 2015-08-29 08:48 airforce 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Problem:Implement a trie withinsert,search, andstartsWithmethods.Note:You may assume that all inputs are consist of lowercase lettersa-z.Analysis:This... 阅读全文
posted @ 2015-08-29 01:26 airforce 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Problem:Given a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of sequential... 阅读全文
posted @ 2015-08-28 23:55 airforce 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Problem:There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites, for example to take course 0 you have... 阅读全文
posted @ 2015-08-28 04:40 airforce 阅读(346) 评论(0) 推荐(0) 编辑
摘要: Problem:There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites, for example to take course 0 you have... 阅读全文
posted @ 2015-08-28 04:04 airforce 阅读(215) 评论(0) 推荐(0) 编辑
摘要: Problem:Given an array of numbersnums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two el... 阅读全文
posted @ 2015-08-27 23:47 airforce 阅读(278) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页