IncredibleThings

导航

2021年4月11日 #

LeetCode - Minimum Sideway Jumps

摘要: There is a 3 lane road of length n that consists of n + 1 points labeled from 0 to n. A frog starts at point 0 in the second lane and wants to jump to 阅读全文

posted @ 2021-04-11 13:49 IncredibleThings 阅读(108) 评论(0) 推荐(0) 编辑

2021年4月7日 #

LeetCode - Word Search II

摘要: Given an m x n board of characters and a list of strings words, return all words on the board. Each word must be constructed from letters of sequentia 阅读全文

posted @ 2021-04-07 02:14 IncredibleThings 阅读(44) 评论(0) 推荐(0) 编辑

2021年3月7日 #

LeetCode - Short Encoding of Words

摘要: A valid encoding of an array of words is any reference string s and array of indices indices such that: words.length == indices.length The reference s 阅读全文

posted @ 2021-03-07 15:49 IncredibleThings 阅读(36) 评论(0) 推荐(0) 编辑

2021年3月5日 #

LeetCode - Intersection of Two Linked Lists

摘要: Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: begin to in 阅读全文

posted @ 2021-03-05 15:40 IncredibleThings 阅读(28) 评论(0) 推荐(0) 编辑

2021年3月4日 #

LeetCode - Network Delay Time

摘要: You are given a network of n nodes, labeled from 1 to n. You are also given times, a list of travel times as directed edges times[i] = (ui, vi, wi), w 阅读全文

posted @ 2021-03-04 14:11 IncredibleThings 阅读(84) 评论(0) 推荐(0) 编辑

2021年3月1日 #

LeetCode - Course Schedule IV

摘要: There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have direct prerequisites, for example, to take course 0 you 阅读全文

posted @ 2021-03-01 14:24 IncredibleThings 阅读(46) 评论(0) 推荐(0) 编辑

LeetCode - Course Schedule II

摘要: There are a total of n courses you have to take labelled from 0 to n - 1. Some courses may have prerequisites, for example, if prerequisites[i] = [ai, 阅读全文

posted @ 2021-03-01 13:36 IncredibleThings 阅读(86) 评论(0) 推荐(0) 编辑

2021年2月28日 #

LeetCode-Closest Dessert Cost

摘要: You would like to make dessert and are preparing to buy the ingredients. You have n ice cream base flavors and m types of toppings to choose from. You 阅读全文

posted @ 2021-02-28 12:51 IncredibleThings 阅读(66) 评论(0) 推荐(0) 编辑

2021年2月27日 #

LeetCode - Count Negative Numbers in a Sorted Matrix

摘要: Given a m x n matrix grid which is sorted in non-increasing order both row-wise and column-wise, return the number of negative numbers in grid. Exampl 阅读全文

posted @ 2021-02-27 16:47 IncredibleThings 阅读(70) 评论(0) 推荐(0) 编辑

2021年2月26日 #

LeetCode - Course Schedule

摘要: There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i 阅读全文

posted @ 2021-02-26 14:55 IncredibleThings 阅读(89) 评论(0) 推荐(0) 编辑