• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
lychnis
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 8 9 下一页

2019年10月27日

49. Group Anagrams
摘要: Given an array of strings, group anagrams together. Example: Note: All inputs will be in lowercase. The order of your output does not matter. 基本的遍历练手题 阅读全文
posted @ 2019-10-27 21:38 lychnis 阅读(93) 评论(0) 推荐(0)
 
48. Rotate Image
摘要: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in-place, which 阅读全文
posted @ 2019-10-27 21:25 lychnis 阅读(104) 评论(0) 推荐(0)
 
 

2019年10月26日

64. Minimum Path Sum
摘要: Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. 阅读全文
posted @ 2019-10-26 14:34 lychnis 阅读(109) 评论(0) 推荐(0)
 
63. Unique Paths II
摘要: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p 阅读全文
posted @ 2019-10-26 14:07 lychnis 阅读(93) 评论(0) 推荐(0)
 
62. Unique Paths
摘要: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p 阅读全文
posted @ 2019-10-26 13:23 lychnis 阅读(92) 评论(0) 推荐(0)
 
 

2019年10月25日

53. Maximum Subarray
摘要: Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Inpu 阅读全文
posted @ 2019-10-25 14:50 lychnis 阅读(79) 评论(0) 推荐(0)
 
14. Longest Common Prefix
摘要: Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl 阅读全文
posted @ 2019-10-25 14:20 lychnis 阅读(93) 评论(0) 推荐(0)
 
96. Unique Binary Search Trees
摘要: Given n, how many structurally unique BST's (binary search trees) that store values 1 ... n? Example: Input: 3 Output: 5 Explanation: Given n = 3, the 阅读全文
posted @ 2019-10-25 13:52 lychnis 阅读(252) 评论(0) 推荐(0)
 
 

2019年10月23日

91. Decode Ways
摘要: A message containing letters from A-Z is being encoded to numbers using the following mapping: Given a non-empty string containing only digits, determ 阅读全文
posted @ 2019-10-23 21:52 lychnis 阅读(109) 评论(0) 推荐(0)
 
70. Climbing Stairs
摘要: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl 阅读全文
posted @ 2019-10-23 11:09 lychnis 阅读(103) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 7 8 9 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3