![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
文章平均质量分 92
虚心学习进步
主学C++、linux、网络编程
展开
-
leetcode刷题记录
一. 字符串和哈希函数章节1.https://leetcode-cn.com/problems/group-anagrams-lcci/submissions/变位词组思路://eatteaate用sort排序后都是ate,用ate作key,其他[eatteaate]做value。//[eatteaate]用一个vector装看下auto的用法,map怎么添加值class Solution {public: vector<vector<strin...原创 2021-04-24 22:53:58 · 487 阅读 · 0 评论 -
leetcode刷题记录---求二叉树的最小高度
题目描述Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.翻译:给定一棵二叉树,求出它的最小深度。最小深度是从根节点到最近...原创 2018-09-28 13:27:08 · 2409 阅读 · 0 评论