摘要:
2246. Longest Path With Different Adjacent Characters Hard You are given a tree (i.e. a connected, undirected graph that has no cycles) rooted at node 阅读全文
摘要:
864. Shortest Path to Get All Keys You are given an m x n grid grid where: '.' is an empty cell. '#' is a wall. '@' is the starting point. Lowercase l 阅读全文
摘要:
62. Unique Paths Medium 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 t 阅读全文
摘要:
1726. Tuple with Same Product Medium 47322Add to ListShare Given an array nums of distinct positive integers, return the number of tuples (a, b, c, d) 阅读全文
摘要:
2370. Longest Ideal Subsequence Medium You are given a string s consisting of lowercase letters and an integer k. We call a string t ideal if the foll 阅读全文
摘要:
516. Longest Palindromic Subsequence Medium Given a string s, find the longest palindromic subsequence's length in s. A subsequence is a sequence that 阅读全文
摘要:
907. Sum of Subarray Minimums Medium Given an array of integers arr, find the sum of min(b), where b ranges over every (contiguous) subarray of arr. S 阅读全文
摘要:
300. Longest Increasing Subsequence Medium Given an integer array nums, return the length of the longest strictly increasing subsequence. A subsequenc 阅读全文