[LeetCode] 274. H-Index

Medium Related Topics: Array / Sorting / Counting Sort LeetCode Source 解题想法 这题我卡在如何处理累积 index 数目,但最后才知道不用算累积 用储存容器的 index 跟 index

[LeetCode] 380. Insert Delete GetRandom O(1)

Medium Related Topics: Array / Hash Table / Math / Design / Randomized LeetCode Source 解题想法 这题又再度验证 Python 比较好解题,所以用 C++ 可以多锻鍊实做技巧 基本上这题

[LeetCode] 238. Product of Array Except Self

Medium Related Topics: Array / Prefix Sum LeetCode Source 解题想法 这题我是看别人解法 原本以为要用 bit multiplication Python class Solution: def productExceptSelf(self, nums: List[in

练习Cisco_vlan 与trunk

**vlan 改名 conf t vlan 2 name nash trunk 改dot1q int (port位) sw encapsulation dot1q sw mode trunk trunk允许的vlan sw trunk allowed vlan 110,210 设定vlan110和vlan220,可以透过主干阜1

[LeetCode] 134. Gas Station

Medium Related Topics: Array / Greedy LeetCode Source 解题想法 这题是看之前解的方法 Python class Solution: def canCompleteCircuit(self, gas: List[int], cost: List[int]) - int: index, car

[LeetCode] 135. Candy

Hard Related Topics: Array / Greedy LeetCode Source 解题想法 首先先确认 len(ratings) ,如果小于等于 1,则直接回传 len(ratings) 再来先初始化 candies = [1] * len(ratings) ,以

[LeetCode 笔记] 198. House Robber

前言 这题是一题动态规划问题,目标是撷取不连续的元素,全部相加起来选出最优解,因只用了一层迴圈,时间複杂度可估 O(n) ,这里有 JAVA 和 Python 的写

MySQL Triggers 没有触发. 怎么回事???

我是新手, 最近自学MySQL 学到Trigger的部分, 却不会触发, 实在找不到原因 希望有人可以帮忙一下: 以下是语法: 第一部分 DELIMITER $$ CREATE TRIGGER payments_after_i

Source Map 的功用

来源映射(Source Map)是一种在 Web 开发中广泛使用的工具,它们用于将转换后的程式码(例如,经过压缩、混淆或编译的 JavaScript、CSS 或其他 Web 资源)与

Source Map 的原理

来源映射的原理是建立原始程式码和转换后的程式码之间的映射关係,以便在开发和调试过程中能够追蹤到转换后的程式码到原始程式码的对应关係。这允

[LeetCode] 42. Trapping Rain Water

Hard Related Topics: Array / Two Pointers / Dynamic Programming / Stack / Monotonic Stack LeetCode Source 解题想法 这题主要解法透过判断左边和右边 height 的大小来决定 res 能够储