2021年11月28日
摘要: 问题 求最长回文子串,即左右对称 Given a string s, return the longest palindromic substring in s. Example 1: Input: s = "babad" Output: "bab" Note: "aba" is also a va 阅读全文
posted @ 2021-11-28 06:27 alau 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 题目 下雨天的蓄水量计算 Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after ra 阅读全文
posted @ 2021-11-28 04:54 alau 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 题目 机器人从(0,0)出发,初始化向北 三种指令 G当前方向+1步,L左转90度,R右转90度 问指令结束后是否成圆圈(只有可能回原点时才成圈) 返回true/false On an infinite plane, a robot initially stands at (0, 0) and fa 阅读全文
posted @ 2021-11-28 00:36 alau 阅读(209) 评论(0) 推荐(0) 编辑