xinyu04

导航

2022年7月18日 #

[Google] LeetCode 818 Race Car 贪心+思维

摘要: Your car starts at position $0$ and speed $+1$ on an infinite number line. Your car can go into negative positions. Your car drives automatically acco 阅读全文

posted @ 2022-07-18 21:47 Blackzxy 阅读(32) 评论(0) 推荐(0) 编辑

[Google] LeetCode 1293 Shortest Path in a Grid with Obstacles Elimination 思维+BFS+贪心

摘要: You are given an m x n integer matrix grid where each cell is either $0$ (empty) or $1$ (obstacle). You can move up, down, left, or right from and to 阅读全文

posted @ 2022-07-18 03:36 Blackzxy 阅读(15) 评论(0) 推荐(0) 编辑