• 博客园logo
  • 会员
  • 周边
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

随笔分类 -  Leetcode专题

力扣题库部分题解和代码(已提交通过) 
字符串 & 数学 & 其它
摘要:剑指 Offer 38. 字符串的排列:https://leetcode-cn.com/problems/zi-fu-chuan-de-pai-lie-lcof/ 点击查看代码 // 思想:从剩余可选字符中填充指定位置,直到所有位置填充完成 // 注意String和char[]互转;ArrayLis 阅读全文
posted @ 2022-04-08 15:55 gjunyan 阅读(44) 评论(0) 推荐(0)
二叉树-递归思想-非递归遍历 & 栈 & 队列 & 链表
摘要:二叉树的前序遍历:https://leetcode-cn.com/problems/binary-tree-preorder-traversal/ 点击查看代码 // 二叉树的递归遍历 public class Solution { public List<Integer> preorderTrav 阅读全文
posted @ 2022-04-07 18:15 gjunyan 阅读(33) 评论(0) 推荐(0)
数组-排序-贪心-双指针 & HashSet & HashMap & 优先队列(堆)
摘要:42.接雨水:https://leetcode-cn.com/problems/trapping-rain-water/ 点击查看代码 public class Solution { public int trap(int[] height) { int size = height.length; 阅读全文
posted @ 2022-04-06 15:55 gjunyan 阅读(49) 评论(0) 推荐(0)
 

公告


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