- 2023-09-27哈希表力扣题总结
经验1unordered_map/map容器:两数和:https://leetcode.cn/problems/two-sum/description/?envType=study-plan-v2&envId=top-100-liked字符串异位词https://leetcode.cn/problems/group-anagrams/description/?envType=study-plan-v2&envId=top-100-liked当寻找数组中有一定关
- 2023-09-13达人探店业务之点赞、排行榜功能(Redis经典场景)
达人探店业务之点赞、排行榜功能(Redis经典场景)初始代码:@GetMapping("/likes/{id}")publicResultqueryBlogLikes(@PathVariable("id")Longid){//修改点赞数量blogService.update().setSql("liked=liked+1").eq("id",id).update();ret
- 2023-05-29cpp: State Pattern
/*****************************************************************//***\fileGold.h*\briefStatePattern状态模式C++14*2023年5月29日涂聚文GeovinDuVisualStudio2022edit.*\authorgeovindu*\dateMay2023************************
- 2023-01-18LeetCode Top 100 Liked Questions 64. Minimum Path Sum (Java版; Medium)
welcometomyblogLeetCodeTop100LikedQuestions64.MinimumPathSum(Java版;Medium)题目描述Givenamxngridfilledwithnon-negativenumbers,fi
- 2023-01-18LeetCode Top 100 Liked Questions 62. Unique Paths (Java版; Medium)
welcometomyblogLeetCodeTop100LikedQuestions62.UniquePaths(Java版;Medium)题目描述Arobotislocatedatthetop-leftcornerofamxngrid(
- 2023-01-18LeetCode Top 100 Liked Questions 10.Regular Expression Matching (Java版; Hard)
welcometomyblogLeetCodeTop100LikedQuestions10.RegularExpressionMatching(Java版;Hard)题目描述Givenaninputstring(s)andapattern(p),im
- 2022-12-02基于redis的点赞功能
初始代码@GetMapping("/likes/{id}")publicResultqueryBlogLikes(@PathVariable("id")Longid){//修改点赞数量blogService.update().setSql("liked=li