Leetcode
文章平均质量分 74
新安浅滩
这个作者很懒,什么都没留下…
展开
-
Leetcode 212. Word Search II
212. Word Search II题目说明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 sequentially adjacent cell, where “adjacent” c原创 2017-12-01 21:51:59 · 249 阅读 · 0 评论 -
51 nod: 1459 迷宫游戏
题目InputOutputInput示例Output示例题解代码题目你来到一个迷宫前。该迷宫由若干个房间组成,每个房间都有一个得分,第一次进入这个房间,你就可以得到这个分数。还有若干双向道路连结这些房间,你沿着这些道路从一个房间走到另外一个房间需要一些时间。游戏规定了你的起点和终点房间,你首要目标是从起点尽快到达终点,在满足首要目标的前提下,使得你的得分总和尽可能大。现在问题来了,给定房原创 2017-12-03 22:51:06 · 300 阅读 · 0 评论 -
51 nod: 1298 圆与三角形
题目InputOutputInput示例Output示例题解代码题目给出圆的圆心和半径,以及三角形的三个顶点,问圆同三角形是否相交。相交输出”Yes”,否则输出”No”。(三角形的面积大于0)。 Input第1行:一个数T,表示输入的测试数量(1 <= T <= 10000),之后每4行用来描述一组测试数据。 4-1:三个数,前两个数为圆心的坐标xc, yc,第3个数为圆的半径R原创 2017-12-05 19:37:54 · 272 阅读 · 0 评论 -
Leetcode 97. Interleaving String
Interleaving String题目题目解析备忘录方法97. Interleaving String题目Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example, Given: s1 = "aabcc", s2 = "dbbca"原创 2018-01-30 19:02:25 · 212 阅读 · 0 评论 -
Leetcode 131&132. Palindrome Partitioning I & II
Palindrome Partitioning题目题目解析代码Palindrome Partitioning II题目题目解析想法一想法二想法三131. Palindrome Partitioning题目Given a string s, partition s such that every substring of the partition原创 2018-01-25 18:58:50 · 214 阅读 · 0 评论 -
Leetcode 139&140. Word Break I & II
Word Break题目题目解析代码Word Break II题目题目解析想法一想法二想法三139. Word Break题目Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be原创 2018-01-25 21:16:49 · 205 阅读 · 0 评论 -
Leetcode 78&90. Subsets I & II 【排列与组合的生成总结】
Subsets题目解法一解法二Subsets II题目题目解析解法一解法二排列生成和组合生成分析78. SubsetsGiven a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not原创 2018-01-28 14:40:27 · 218 阅读 · 0 评论 -
Leetcode 126. Word Ladder II
126. Word Ladder II题目题目解析基于广度优先的改进方法126. Word Ladder II题目Given two words (beginWord and endWord), and a dictionary’s word list, find all shortest transformation sequence(s) from begin...原创 2018-08-23 11:29:44 · 493 阅读 · 0 评论 -
Leetcode 23. Merge k Sorted Lists
Leetcode 23. Merge k Sorted Lists题目题目解析代码链表类题目总结Leetcode 23. Merge k Sorted Lists题目Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity...原创 2018-08-24 19:19:30 · 202 阅读 · 0 评论