摘要:
Given a string s, return the longest palindromic substring in s. r... 阅读全文
posted @ 2020-11-22 11:40
EvanMeetTheWorld
阅读(31)
评论(0)
推荐(0)
摘要:
Given a positive integer n, find the **least number of perfect squ... 阅读全文
posted @ 2020-11-22 10:25
EvanMeetTheWorld
阅读(22)
评论(0)
推荐(0)
摘要:
两种方法: Math.round(n) == n //if true, then 是整数 否则不是 n % 1 == 0 //if ... 阅读全文
posted @ 2020-11-22 09:53
EvanMeetTheWorld
阅读(559)
评论(0)
推荐(0)
摘要:
931 还是min path sum的问题 这种问题首先想到DP. 首先看一下规则: Given a square array of... 阅读全文
posted @ 2020-11-22 09:14
EvanMeetTheWorld
阅读(29)
评论(0)
推荐(0)
摘要:
Given a triangle, find the minimum path sum from top to bottom. Ea... 阅读全文
posted @ 2020-11-22 05:06
EvanMeetTheWorld
阅读(30)
评论(0)
推荐(0)
摘要:
another classic DP problem. 2D grid, m*n, each time can only move ... 阅读全文
posted @ 2020-11-22 04:34
EvanMeetTheWorld
阅读(20)
评论(0)
推荐(0)
摘要:
Another classic DP problems. Given a non-empty string containing o... 阅读全文
posted @ 2020-11-22 04:01
EvanMeetTheWorld
阅读(30)
评论(0)
推荐(0)
摘要:
Given an integer array nums, find the sum of the elements between ... 阅读全文
posted @ 2020-11-22 03:10
EvanMeetTheWorld
阅读(24)
评论(0)
推荐(0)
摘要:
198 给定一个数组 找到子序列的和的最大值 但是必须要求这个序列所有的值不能连在一起 很简单 class Solution { ... 阅读全文
posted @ 2020-11-22 02:58
EvanMeetTheWorld
阅读(22)
评论(0)
推荐(0)
摘要:
为什么这样行 class Solution { public int rob(int[] nums) { if(... 阅读全文
posted @ 2020-11-22 02:58
EvanMeetTheWorld
阅读(19)
评论(0)
推荐(0)

浙公网安备 33010602011771号