随笔分类 -  今日leetcode

摘要:152.乘积最大数组 include using namespace std; include include class Solution { public: int maxProduct(vector& nums) { int len = nums.size(); vectorvmax; vec 阅读全文
posted @ 2020-05-18 13:34 凌丨云 阅读(69) 评论(0) 推荐(0)
摘要:45、跳跃游戏 阅读全文
posted @ 2020-05-04 22:50 凌丨云 阅读(98) 评论(0) 推荐(0)
摘要:3、寻找最长的无重复字符串max 阅读全文
posted @ 2020-05-02 21:23 凌丨云 阅读(95) 评论(0) 推荐(0)
摘要:1、202快乐数 2、1095 阅读全文
posted @ 2020-04-30 22:39 凌丨云 阅读(82) 评论(0) 推荐(0)
摘要:1、8字符串转换成数字 阅读全文
posted @ 2020-04-27 21:23 凌丨云 阅读(128) 评论(0) 推荐(0)
摘要:1、23合并K个排序链表:优先队列的方法 2、101对称二叉树————利用2叉数的广度遍历 3、102二叉树的层次遍历 4、103旋转层次遍历 5、104二叉树的最大深度 cpp //哈希表 class Solution { public: int singleNumber(vector& nums 阅读全文
posted @ 2020-04-27 14:41 凌丨云 阅读(126) 评论(0) 推荐(0)
摘要:1、46全排列——递归 2、21合并两个升序链表——递归 cpp class Solution { public: int removeDuplicates(vector& nums) { int ret = nums.size(); if (ret & nums, int val) { for ( 阅读全文
posted @ 2020-04-25 17:09 凌丨云 阅读(137) 评论(0) 推荐(0)
摘要:1、面试题50 4、7整数反转 阅读全文
posted @ 2020-04-24 21:44 凌丨云 阅读(124) 评论(0) 推荐(0)