随笔分类 - data_structure
摘要:1、 Similarly let us assume that the Job of the Employees is divided into 4 categories only i.e Manager, Analyst, Clerk, and Salesman. Such columns are
阅读全文
摘要:CLH队列 CLH:Craig、Landin and Hagersten队列,是单向链表
阅读全文
摘要:小结: 1、 有数组d=[1,2,3,4,5,6],对d[2]到d[4]之间的所有数加上3,变为d=[1,2,6,7,8,6],那么差分数组也就从[1,1,1,1,1,1]变成了[1,1,4,1,1,-2] Leetcode刷题笔记——差分数组 - 知乎 https://zhuanlan.zhihu
阅读全文
摘要:后缀数组简介 - OI Wiki https://oi-wiki.org/string/sa/ 搜索 复制
阅读全文
摘要:ConcurrentLinkedQueue in Java with Examples - GeeksforGeeks https://www.geeksforgeeks.org/concurrentlinkedqueue-in-java-with-examples/ 搜索 复制
阅读全文
摘要:Go\src\sync\poolqueue.go // poolDequeue is a lock-free fixed-size single-producer, // multi-consumer queue. The single producer can both push and pop
阅读全文
摘要:优先队列 过期时间 小顶堆 src\container\heap\example_pq_test.go PriorityQueue // Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is
阅读全文
摘要:func solveSudoku(board [][]byte) { var line, column [9][9]bool var block [3][3][9]bool var spaces [][2]int for i, row := range board { for j, b := ran
阅读全文
摘要:深入理解完美哈希 https://mp.weixin.qq.com/s/M8Wcj8sZ7UF1CMr887Puog 搜索 复制
阅读全文
摘要:https://leetcode.cn/problems/find-the-town-judge/solution/zhao-dao-xiao-zhen-de-fa-guan-by-leetcod-0dcg/
阅读全文
摘要:53. 最大子数组和 - 力扣(LeetCode) https://leetcode.cn/problems/maximum-subarray/ https://leetcode.cn/problems/maximum-subarray/solution/zui-da-zi-xu-he-by-lee
阅读全文
摘要:https://leetcode.cn/problems/Qv1Da2/
阅读全文
摘要:https://leetcode.cn/problems/SLwz0R/
阅读全文
摘要:Lecture 10 - Heap Operations: Insert and Delete https://webdocs.cs.ualberta.ca/~holte/T26/heap-ops.html
阅读全文
摘要:A multi-producer, multi-consumer queue. queue.py
阅读全文
摘要:https://leetcode-cn.com/problems/first-unique-character-in-a-string/solution/zi-fu-chuan-zhong-de-di-yi-ge-wei-yi-zi-x9rok/ 思路与算法 我们也可以借助队列找到第一个不重复的字符
阅读全文
摘要:class Solution { public: vector<int> getLeastNumbers(vector<int>& arr, int k) { vector<int> vec(k, 0); if (k == 0) { // 排除 0 的情况 return vec; } priorit
阅读全文
摘要:https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof/ """ # Definition for a Node. class Node(object): def __init__(self
阅读全文
摘要:https://leetcode-cn.com/problems/ping-heng-er-cha-shu-lcof/ 平衡二叉树 定义 是 定义错误 /** * Definition for a binary tree node. * type TreeNode struct { * Val in
阅读全文
摘要:https://leetcode-cn.com/problems/path-sum/ 给你二叉树的根节点 root 和一个表示目标和的整数 targetSum 。判断该树中是否存在 根节点到叶子节点 的路径,这条路径上所有节点值相加等于目标和 targetSum 。如果存在,返回 true ;否则,
阅读全文