上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 187 下一页
摘要: https://leetcode-cn.com/problems/shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-lcof/ 阅读全文
posted @ 2022-05-01 22:43 papering 阅读(44) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/bu-yong-jia-jian-cheng-chu-zuo-jia-fa-lcof/ 阅读全文
posted @ 2022-05-01 22:17 papering 阅读(39) 评论(0) 推荐(0)
摘要: 二进制中1的个数 阅读全文
posted @ 2022-05-01 00:12 papering 阅读(35) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-hou-xu-bian-li-xu-lie-lcof/ 阅读全文
posted @ 2022-04-29 23:53 papering 阅读(30) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/shu-zhi-de-zheng-shu-ci-fang-lcof/ func myPow(x float64, n int) float64 { var R func(x float64, m int) float64 R = fu 阅读全文
posted @ 2022-04-29 23:50 papering 阅读(30) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/zhong-jian-er-cha-shu-lcof/ 剑指 Offer 07. 重建二叉树 输入某二叉树的前序遍历和中序遍历的结果,请构建该二叉树并返回其根节点。 假设输入的前序遍历和中序遍历的结果中都不含重复的数字。 示例 1: 阅读全文
posted @ 2022-04-29 23:23 papering 阅读(41) 评论(0) 推荐(0)
摘要: func intersect(nums1 []int, nums2 []int) []int { sort.Ints(nums1) sort.Ints(nums2) length1, length2 := len(nums1), len(nums2) index1, index2 := 0, 0 i 阅读全文
posted @ 2022-04-28 20:33 papering 阅读(37) 评论(0) 推荐(0)
摘要: 短视频内容理解与生成技术在美团的创新实践 - 美团技术团队 https://tech.meituan.com/2022/04/14/the-innovation-practice-of-short-video-understanding-and-generation-in-meituan.html 阅读全文
posted @ 2022-04-28 13:25 papering 阅读(67) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/bu-ke-pai-zhong-de-shun-zi-lcof/ 阅读全文
posted @ 2022-04-27 23:35 papering 阅读(24) 评论(0) 推荐(0)
摘要: class Solution { public: vector<int> getLeastNumbers(vector<int>& arr, int k) { vector<int> vec(k, 0); if (k == 0) { // 排除 0 的情况 return vec; } priorit 阅读全文
posted @ 2022-04-27 23:14 papering 阅读(54) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/er-cha-shu-de-zui-jin-gong-gong-zu-xian-lcof/ func lowestCommonAncestor(root, p, q *TreeNode) *TreeNode { if root == 阅读全文
posted @ 2022-04-27 22:50 papering 阅读(28) 评论(0) 推荐(0)
摘要: 小结: 1、结构体、指针是否相等 https://go.dev/ref/spec#Comparison_operators Comparison operators Comparison operators compare two operands and yield an untyped bool 阅读全文
posted @ 2022-04-27 20:45 papering 阅读(72) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2022-04-27 20:18 papering 阅读(39) 评论(0) 推荐(0)
摘要: 万字长文掌握软件领域驱动设计 DDD - 知乎 https://zhuanlan.zhihu.com/p/489070825 开放主机服务定义公开服务的协议(亦称为“服务契约”),包括通信方式、传递消息的格式(协议),让限界上下文可以被当做一组服务访问。开放主机服务也可以视为一种承诺,保证开放的服务 阅读全文
posted @ 2022-04-27 17:48 papering 阅读(163) 评论(0) 推荐(0)
摘要: golang本地缓存(bigcache/freecache/fastcache等)选型对比及原理总结 - 知乎 https://zhuanlan.zhihu.com/p/487455942 golang本地缓存(bigcache/freecache/fastcache等)选型对比及原理总结 ​ 目录 阅读全文
posted @ 2022-04-27 17:42 papering 阅读(4427) 评论(0) 推荐(0)
摘要: 小结: 1、 1.上述本地缓存组件中,实现零 GC 的方案主要就两种:a.无 GC:分配堆外内存(Mmap)b.避免 GC:map 非指针优化(map[uint64]uint32)或者采用 slice 实现一套无指针的 mapc.避免 GC:数据存入[]byte slice(可考虑底层采用环形队列封 阅读全文
posted @ 2022-04-27 17:41 papering 阅读(613) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/maximum-subarray/ 53. Maximum Subarray Given an integer array nums, find the contiguous subarray (containing at least 阅读全文
posted @ 2022-04-27 00:15 papering 阅读(35) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/ping-heng-er-cha-shu-lcof/ 平衡二叉树 定义 是 定义错误 /** * Definition for a binary tree node. * type TreeNode struct { * Val in 阅读全文
posted @ 2022-04-26 23:12 papering 阅读(46) 评论(0) 推荐(0)
摘要: 大流量活动下钱包提现方案的设计与实现 https://mp.weixin.qq.com/s/wCbdElWL-1uEyMqXAKKZ_w 大流量活动下钱包提现方案的设计与实现 原创 张一鸣 字节跳动技术团队 2022-04-25 12:12 字节跳动技术团队 字节跳动的技术实践分享 162篇原创内容 阅读全文
posted @ 2022-04-26 17:31 papering 阅读(321) 评论(0) 推荐(0)
摘要: 深入理解 Promise 之手把手教你写一版 https://mp.weixin.qq.com/s/_gDIO6YCswAS2dICllMG0A 深入理解 Promise 之手把手教你写一版 原创 ekko 腾讯IMWeb前端团队 2022-04-25 19:00 收录于合集#我也想做前端25个 什 阅读全文
posted @ 2022-04-26 17:30 papering 阅读(97) 评论(0) 推荐(0)
摘要: 初探B端页面体验管理 https://mp.weixin.qq.com/s/VuAbeuW0wpqafZO7zF-f4Q 初探B端页面体验管理 唐朋博 京东设计中心JDC 2022-04-25 16:30 体验量化是最近几年行业内比较关注的领域,作为B端设计师如何对页面体验和性能有更好的感知后参与评 阅读全文
posted @ 2022-04-26 17:28 papering 阅读(215) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/er-cha-shu-zhong-he-wei-mou-yi-zhi-de-lu-jing-lcof/ /** * Definition for a binary tree node. * type TreeNode struct { 阅读全文
posted @ 2022-04-25 19:57 papering 阅读(41) 评论(0) 推荐(0)
摘要: 实践: 1、 不需要目的地开通端口 SNMP Trap 设备以UDP协议、162端口给Trap接收端发送Trap,接收端不需要开启UDP、162服务。 TCP:打电话 对方必须接通才能通话 UDP:发短信 可以在对方不知道的情况下发短信 阅读全文
posted @ 2022-04-24 11:33 papering 阅读(112) 评论(0) 推荐(0)
摘要: a 阅读全文
posted @ 2022-04-24 02:31 papering 阅读(20) 评论(0) 推荐(0)
摘要: 动态规划 游标 55. 跳跃游戏 - 力扣(LeetCode) https://leetcode.cn/problems/jump-game/ import "log" func max(a, b int) int { if a > b { return a } return b } // [1] 阅读全文
posted @ 2022-04-24 01:31 papering 阅读(42) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/path-sum/ 给你二叉树的根节点 root 和一个表示目标和的整数 targetSum 。判断该树中是否存在 根节点到叶子节点 的路径,这条路径上所有节点值相加等于目标和 targetSum 。如果存在,返回 true ;否则, 阅读全文
posted @ 2022-04-23 23:22 papering 阅读(54) 评论(0) 推荐(0)
摘要: 对称二叉树 https://leetcode-cn.com/problems/symmetric-tree/ 阅读全文
posted @ 2022-04-22 22:49 papering 阅读(36) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/ju-zhen-zhong-de-lu-jing-lcof/ func exist(board [][]byte, word string) bool { n := len(word) r := len(board) c := len 阅读全文
posted @ 2022-04-22 22:48 papering 阅读(54) 评论(0) 推荐(0)
摘要: 二叉树最大深度 https://leetcode-cn.com/problems/maximum-depth-of-binary-tree/ /** * Definition for a binary tree node. * type TreeNode struct { * Val int * L 阅读全文
posted @ 2022-04-22 20:14 papering 阅读(38) 评论(0) 推荐(0)
摘要: import ( "strconv" "strings" ) func restoreIpAddresses(s string) []string { ans, n := []string{}, len(s) current, currentCharLen := []string{}, 0 ok : 阅读全文
posted @ 2022-04-21 20:24 papering 阅读(49) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/reverse-words-in-a-string/ https://leetcode-cn.com/submissions/detail/303540410/ 阅读全文
posted @ 2022-04-21 20:10 papering 阅读(38) 评论(0) 推荐(0)
摘要: a 搜索 复制 阅读全文
posted @ 2022-04-21 16:31 papering 阅读(27) 评论(0) 推荐(0)
摘要: a 阅读全文
posted @ 2022-04-21 00:33 papering 阅读(25) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/liang-ge-lian-biao-de-di-yi-ge-gong-gong-jie-dian-lcof/ 剑指 Offer 52. 两个链表的第一个公共节点 输入两个链表,找出它们的第一个公共节点。 如下面的两个链表: 在节点 阅读全文
posted @ 2022-04-20 21:40 papering 阅读(51) 评论(0) 推荐(0)
摘要: 通过JS获取你当前的网络状况?建议大家学一学~ https://mp.weixin.qq.com/s/Me66Z07vo9N9k5CC2BdBEg 阅读全文
posted @ 2022-04-20 16:27 papering 阅读(83) 评论(0) 推荐(0)
摘要: /** * Definition for singly-linked list. * type ListNode struct { * Val int * Next *ListNode * } */ func deleteDuplicates(head *ListNode) *ListNode { 阅读全文
posted @ 2022-04-19 22:43 papering 阅读(42) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/reverse-linked-list/ 反转链表 迭代 递归 https://leetcode-cn.com/problems/invert-binary-tree/ /** * Definition for a binary tr 阅读全文
posted @ 2022-04-19 21:40 papering 阅读(38) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof/ 剑指 Offer 22. 链表中倒数第k个节点 输入一个链表,输出该链表中倒数第k个节点。为了符合大多数人的习惯,本题从1开始计数,即链表的尾 阅读全文
posted @ 2022-04-19 21:26 papering 阅读(45) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/remove-linked-list-elements/ 203. 移除链表元素 给你一个链表的头节点 head 和一个整数 val ,请你删除链表中所有满足 Node.val == val 的节点,并返回 新的头节点 。 示例 1: 阅读全文
posted @ 2022-04-19 21:00 papering 阅读(79) 评论(0) 推荐(0)
摘要: 源码 json.Unmarshal json.Marshal 阅读全文
posted @ 2022-04-19 16:49 papering 阅读(58) 评论(0) 推荐(0)
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 187 下一页