摘要:
use std::collections::LinkedList; /** 529. Minesweeper https://leetcode.com/problems/minesweeper/ Let's play the minesweeper game (Wikipedia, online g 阅读全文
摘要:
/** 475. Heaters https://leetcode.com/problems/heaters/ Winter is coming! During the contest, your first job is to design a standard heater with a fix 阅读全文
摘要:
/** 973. K Closest Points to Origin https://leetcode.com/problems/k-closest-points-to-origin/ Given an array of points where points[i] = [xi, yi] repr 阅读全文
摘要:
/** 474. Ones and Zeroes https://leetcode.com/problems/ones-and-zeroes/ You are given an array of binary strings strs and two integers m and n. Return 阅读全文
摘要:
/** 474. Ones and Zeroes https://leetcode.com/problems/ones-and-zeroes/ You are given an array of binary strings strs and two integers m and n. Return 阅读全文
摘要:
/** 1446. Consecutive Characters https://leetcode.com/problems/consecutive-characters/ The power of the string is the maximum length of a non-empty su 阅读全文
摘要:
/** 355. Design Twitter https://leetcode.com/problems/design-twitter/ Design a simplified version of Twitter where users can post tweets, follow/unfol 阅读全文
摘要:
/** 1290. Convert Binary Number in a Linked List to Integer https://leetcode.com/problems/convert-binary-number-in-a-linked-list-to-integer/ Given hea 阅读全文
摘要:
/** 520. Detect Capital https://leetcode.com/problems/detect-capital/ We define the usage of capitals in a word to be right when one of the following 阅读全文
摘要:
use std::cmp::min; /** 821. Shortest Distance to a Character https://leetcode.com/problems/shortest-distance-to-a-character/ Given a string s and a ch 阅读全文