LeetCode 11 盛最多水的容器 2022年8月26日 feelshu Leave a comment 算法 题目: 给定一个长度为 n 的整数数组 height 。有 n 条垂线,第 i 条线的两个端点是 (i, 0) […] Continue reading
LeetCode 10 正则表达式匹配 2022年8月26日2022年8月26日 feelshu Leave a comment 算法 题目: 给你一个字符串 s 和一个字符规律 p,请你来实现一个支持 ‘.’ 和  […] Continue reading
LeetCode 9 回文数 2022年8月26日2022年8月26日 feelshu Leave a comment 算法 题目: 给你一个整数 x ,如果 x 是一个回文整数,返回 true ;否则,返回 false 。 回文数是指 […] Continue reading
LeetCode 8 字符串转换整数 (atoi) 2022年8月26日 feelshu Leave a comment 算法 题目: 请你来实现一个 myAtoi(string s) 函数,使其能将字符串转换成一个 32 位有符号整数( […] Continue reading
LeetCode 7 整数反转 2022年8月26日 feelshu Leave a comment 算法 题目: 给你一个 32 位的有符号整数 x ,返回将 x 中的数字部分反转后的结果。 如果反转后整数超过 32 […] Continue reading
LeetCode 6 Z字形变换 2022年8月26日 feelshu Leave a comment 算法 题目: 将一个给定字符串 s 根据给定的行数 numRows ,以从上往下、从左到右进行 Z 字形排列。 比如 […] Continue reading
LeetCode 5 最长回文子串 2022年8月26日2022年8月26日 feelshu Leave a comment 算法 题目: 给你一个字符串 s,找到 s 中最长的回文子串。 解题: 遍历找出左右对称的字符串 代码: 官方解答: […] Continue reading
LeetCode 4 寻找两个正序数组的中位数 2022年8月26日2022年8月26日 feelshu Leave a comment 算法 题目: 给定两个大小分别为 m 和 n 的正序(从小到大)数组 nums1 和 nums2。请你找出并返回这两 […] Continue reading
LeetCode 3 无重复字符的最长子串 2022年8月26日 feelshu Leave a comment 算法 题目: 给定一个字符串 s ,请你找出其中不含有重复字符的 最长子串 的长度。 解题: 循环查找不重复的字符串 […] Continue reading
LeetCode 2 两数相加 2022年8月26日2022年8月26日 feelshu Leave a comment 算法 题目: 给你两个 非空 的链表,表示两个非负的整数。它们每位数字都是按照 逆序 的方式存储的,并且每个节点只能 […] Continue reading