摘要:
292. Nim Game You are playing the following Nim Game with your friend: Initially, there is a heap of stones on the table. You and your friend will alt 阅读全文
摘要:
55. Jump Game Medium You are given an integer array nums. You are initially positioned at the array's first index, and each element in the array repre 阅读全文
摘要:
203. Remove Linked List Elements Easy Given the head of a linked list and an integer val, remove all the nodes of the linked list that has Node.val == 阅读全文
摘要:
206. Reverse Linked List Easy 9329166Add to ListShare Given the head of a singly linked list, reverse the list, and return the reversed list. Example 阅读全文
摘要:
206. Reverse Linked List Easy Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input: head = [1,2,3, 阅读全文
摘要:
1254. Number of Closed Islands Medium Given a 2D grid consists of 0s (land) and 1s (water). An island is a maximal 4-directionally connected group of 阅读全文
摘要:
547. Number of Provinces Medium There are n cities. Some of them are connected, while some are not. If city a is connected directly with city b, and c 阅读全文