上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: 109.翻转字符串里的单词 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/reverse-words-in-a-string 题目描述 给定一个字符串,逐个翻转字符串中的每个单词。 示例 1: 输入: "the sky is blue 阅读全文
posted @ 2020-04-11 01:28 刘欣lx 阅读(101) 评论(0) 推荐(0)
摘要: 108.括号生成 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/generate-parentheses 题目描述 数字 n 代表生成括号的对数,请你设计一个函数,用于能够生成所有可能的并且 有效的 括号组合。 示例: 输入:n = 阅读全文
posted @ 2020-04-11 01:17 刘欣lx 阅读(116) 评论(0) 推荐(0)
摘要: 107.机器人的运动范围 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/ji-qi-ren-de-yun-dong-fan-wei-lcof 题目描述 地上有一个m行n列的方格,从坐标 [0,0] 到坐标 [m-1,n-1] 。一个机 阅读全文
posted @ 2020-04-08 23:02 刘欣lx 阅读(135) 评论(0) 推荐(0)
摘要: 106.旋转矩阵 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/rotate-matrix-lcci 题目描述 给你一幅由 N × N 矩阵表示的图像,其中每个像素的大小为 4 字节。请你设计一种算法,将图像旋转 90 度。 不占用额 阅读全文
posted @ 2020-04-07 21:38 刘欣lx 阅读(168) 评论(0) 推荐(0)
摘要: 103.编辑距离 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/edit-distance 题目描述 给你两个单词 word1 和 word2,请你计算出将 word1 转换成 word2 所使用的最少操作数 。 你可以对一个单词进行 阅读全文
posted @ 2020-04-06 16:31 刘欣lx 阅读(346) 评论(0) 推荐(0)
摘要: 102.LFU缓存 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/lfu-cache 题目描述 设计并实现最不经常使用(LFU)缓存的数据结构。它应该支持以下操作:get 和 put。 get(key) - 如果键存在于缓存中,则获取 阅读全文
posted @ 2020-04-05 16:00 刘欣lx 阅读(135) 评论(0) 推荐(0)
摘要: 101.接雨水 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/trapping-rain-water 题目描述 给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。 上面是由数组 [0,1 阅读全文
posted @ 2020-04-04 17:26 刘欣lx 阅读(89) 评论(0) 推荐(0)
摘要: 100.字符串转换整数 (atoi) 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/string-to-integer-atoi 题目描述 请你来实现一个 atoi 函数,使其能将字符串转换成整数。 首先,该函数会根据需要丢弃无用的开 阅读全文
posted @ 2020-04-03 16:32 刘欣lx 阅读(147) 评论(0) 推荐(0)
摘要: 99.生命游戏 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/game-of-life 题目描述 根据 百度百科 ,生命游戏,简称为生命,是英国数学家约翰·何顿·康威在 1970 年发明的细胞自动机。 给定一个包含 m × n 个格子 阅读全文
posted @ 2020-04-02 23:02 刘欣lx 阅读(120) 评论(0) 推荐(0)
摘要: 98.有效括号的嵌套深度 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings 题目描述 有效括号字符串 定义:对于每个左括号,都能 阅读全文
posted @ 2020-04-01 21:54 刘欣lx 阅读(211) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页