日常: 算法、数据结构、分布式系统、日常思考感悟等

[LeetCode] Ones And Zeroes

You are given an array of binary strings strs and two integers m and n. Return the size of the largest subset of strs such that there are at most m 0’s and n 1’s in the subset.......

[LeetCode] Best Time To Buy And Sell Stock With Fee

You are given an array prices where prices[i] is the price of a given stock on the ith day, and an integer fee representing a transaction fee.......

[LeetCode] Palindrome Linked List

Given the head of a singly linked list, return true if it is a palindrome.......

[LeetCode] Russian Doll Envelopes

You are given a 2D array of integers envelopes where envelopes[i] = [wi, hi] represents the width and the height of an envelope.......

[LeetCode] Flip Binary Tree To Match Preorder Traversal

You are given the root of a binary tree with n nodes, where each node is uniquely assigned a value from 1 to n. You are also given a sequence of n values voyage, which is the desired pre-order traversal of the binary tree.......

[LeetCode] Reconstruct Original Digits from English

Given a non-empty string containing an out-of-order English representation of digits 0-9, output the digits in ascending order.......