摘要:
Assume the following rules are for the tic-tac-toe game on an n x n board between two players: A move is guaranteed to be valid and is placed on an em 阅读全文
阅读排行榜
[LeetCode] 2334. Subarray With Elements Greater Than Varying Threshold_Hard tag: dp, stack
2023-09-29 00:18 by Johnson_强生仔仔, 34 阅读, 收藏,
摘要:
You are given an integer array nums and an integer threshold. Find any subarray of nums of length k such that every element in the subarray is greater 阅读全文
[LeetCode] 482. License Key Formatting_Easy tag: String
2021-08-04 10:29 by Johnson_强生仔仔, 33 阅读, 收藏,
摘要:
You are given a license key represented as a string s that consists of only alphanumeric characters and dashes. The string is separated into n + 1 gro 阅读全文
[LeetCode] 211. Design Add and Search Words Data Structure_Medium tag: Trie, DFS
2021-06-30 01:11 by Johnson_强生仔仔, 33 阅读, 收藏,
摘要:
Design a data structure that supports adding new words and finding if a string matches any previously added string. Implement the WordDictionary class 阅读全文
[LeetCode] 382. Linked List Random Node_Medium tag: linked list, math
2021-08-23 04:36 by Johnson_强生仔仔, 32 阅读, 收藏,
摘要:
Given a singly linked list, return a random node's value from the linked list. Each node must have the same probability of being chosen. Implement the 阅读全文
浙公网安备 33010602011771号