摘要: 题目 An integer array is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the s 阅读全文
posted @ 2022-04-02 17:26 frankming 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 题目 Given a string s, return the longest palindromic substring in s. Example 1: Input: s = "babad" Output: "bab" Explanation: "aba" is also a valid ans 阅读全文
posted @ 2022-04-02 15:14 frankming 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 题目 There is a robot on an m x n grid. The robot is initially located at the top-left corner (i.e., grid[0][0]). The robot tries to move to the bottom- 阅读全文
posted @ 2022-04-02 14:36 frankming 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an array of non-negative integers nums, you are initially positioned at the first index of the array. Each element in the array represents yo 阅读全文
posted @ 2022-04-02 14:29 frankming 阅读(25) 评论(0) 推荐(0) 编辑