Solution
-
ABC266 – E,F Solutions
目录 ABC266 – E,F Solutions E – Throwing the Die Problem Statement Solution Impl…
-
[Oracle] LeetCode 696 Count Binary Substrings
Given a binary string s, return the number of non-empty substrings that have the same numb…
-
LeetCode Median of Two Sorted Arrays 排序
Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of…
-
Leetcode 面试题 16.15. 珠玑妙算
珠玑妙算游戏(the game of master mind)的玩法如下。 计算机有4个槽,每个槽放一个球,颜色可能是红色(R)、黄色(Y)、绿色(G)或蓝色(B)。例如,计算机可…
-
动态规划day05
377. 组合总和 Ⅳ class Solution { public int combinationSum4(int[] nums, int target) { int[] dp…
-
剑指 Offer 05. 替换空格
思路:遍历查找空格进行替换 Python: class Solution: def replaceSpace(self, s: str) -> str: res=[] for…