摘要:
126. Word Ladder II A transformation sequence from word beginWord to word endWord using a dictionary wordList is a sequence of words beginWord -> s1 - 阅读全文
摘要:
使用着色法来判定一个图是否为二分图,或者是否包含奇环(包含奇环的话就不是二分图) 785. Is Graph Bipartite? There is an undirected graph with n nodes, where each node is numbered between 0 and 阅读全文
摘要:
564. Find the Closest Palindrome Given a string n representing an integer, return the closest integer (not including itself), which is a palindrome. I 阅读全文
摘要:
296. Best Meeting Point Given an m x n binary grid grid where each 1 marks the home of one friend, return the minimal total travel distance. The total 阅读全文
摘要:
1526. Minimum Number of Increments on Subarrays to Form a Target Array You are given an integer array target. You have an integer array initial of the 阅读全文
摘要:
3186. Maximum Total Damage With Spell Casting A magician has various spells. You are given an array power, where each element represents the damage of 阅读全文
摘要:
2007. Find Original Array From Doubled Array An integer array original is transformed into a doubled array changed by appending twice the value of eve 阅读全文
摘要:
378. Kth Smallest Element in a Sorted Matrix Solved Medium Topics Companies Given an n x n matrix where each of the rows and columns is sorted in asce 阅读全文
摘要:
149. Max Points on a Line Given an array of points where points[i] = [xi, yi] represents a point on the X-Y plane, return the maximum number of points 阅读全文