2021年8月22日
摘要: 【题目】 找到第一个没有重复出现的字母 Given a string s, find the first non-repeating character in it and return its index. If it does not exist, return -1. Example 1: I 阅读全文
posted @ 2021-08-22 22:44 alau 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 待整理,N数之和,数组中选数列/数字达到特定值,硬币特定值 硬币;https://www.bilibili.com/video/BV1cT4y1w7Ct 阅读全文
posted @ 2021-08-22 15:10 alau 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 【题目1】 此系列有三题,都是强盗偷家不能偷相邻邻居,否则会被发现。问最多能偷多少钱 You are a professional robber planning to rob houses along a street. Each house has a certain amount of mon 阅读全文
posted @ 2021-08-22 13:10 alau 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 【题目】 爬楼梯变式,可以上1/2台阶,每个台阶有cost,求爬上去的最小耗费 You are given an integer array cost where cost[i] is the cost of ith step on a staircase. Once you pay the cos 阅读全文
posted @ 2021-08-22 11:30 alau 阅读(51) 评论(0) 推荐(0) 编辑