随笔分类 - leetcode<easy>
虽然已经晚了,但是,没有但是……
摘要:题目描述: //利用队列 进行广度优先搜索
阅读全文
摘要:题目描述: 递归 循环
阅读全文
摘要://递归的解法 //循环的方法 很悲哀 不太会用C++ STL模板中的stack 和pair 所以用了python
阅读全文
摘要:题目描述: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally ident
阅读全文
摘要:class Solution { public: void merge(vector& nums1, int m, vector& nums2, int n) { //从前往后插入会使迭代器失效 那就换一种思路从后往前 //归并排序李的mergesort函数 int i = m - 1; int j = n - 1; ...
阅读全文

浙公网安备 33010602011771号