Stay Hungry,Stay Foolish!

04 2024 档案

摘要:D - Grid and Magnet https://atcoder.jp/contests/abc351/tasks/abc351_d 思路 定义输入矩阵元素值 s matrix each cell can have three possible values: 0 - emtpy and no 阅读全文
posted @ 2024-04-28 21:57 lightsong 阅读(40) 评论(0) 推荐(0) 编辑
摘要:C - Merge the balls https://atcoder.jp/contests/abc351/tasks/abc351_c 思路 使用stack 记录 序列路径 对栈顶两个元素 尝试做缩减处理。 Code https://atcoder.jp/contests/abc351/subm 阅读全文
posted @ 2024-04-28 21:50 lightsong 阅读(27) 评论(0) 推荐(0) 编辑
摘要:mysqlalchemy audit extension https://sqlalchemy-declarative-extensions.readthedocs.io/en/stable/audit_tables.html from sqlalchemy import Column, types 阅读全文
posted @ 2024-04-28 13:54 lightsong 阅读(11) 评论(0) 推荐(0) 编辑
摘要:what https://zhuanlan.zhihu.com/p/137896709 Tutorial https://www.runoob.com/w3cnote/mysql-stored-procedure.html DEMO[create procedure + call from pyth 阅读全文
posted @ 2024-04-28 13:41 lightsong 阅读(2) 评论(0) 推荐(0) 编辑
摘要:记录指定参数变化 https://zhuanlan.zhihu.com/p/439273702 DELIMITER // CREATE TRIGGER log_sales_updates AFTER UPDATE ON sales FOR EACH ROW Insert into audit_log 阅读全文
posted @ 2024-04-28 13:07 lightsong 阅读(8) 评论(0) 推荐(0) 编辑
摘要:mysql+phpmysqladmin https://github.com/fanqingsong/docker-mysql-phpadmin 使用phpMysqlAdmin来管理mysql 阅读全文
posted @ 2024-04-25 23:16 lightsong 阅读(19) 评论(0) 推荐(0) 编辑
摘要:Principles of Object Oriented Class Design https://staff.cs.utu.fi/~jounsmed/doos_06/material/DesignPrinciplesAndPatterns.pdf The Open Closed Principl 阅读全文
posted @ 2024-04-21 22:52 lightsong 阅读(4) 评论(0) 推荐(0) 编辑
摘要:F - Transpose https://atcoder.jp/contests/abc350/tasks/abc350_f 思路 开辟数组,记录左右括号配对的位置值, 例如: 串:a(s)l 位置: 01234 数组值为 配对数组: 03010 数组构成方法为 使用stack 记录左括号位置,遇 阅读全文
posted @ 2024-04-21 17:47 lightsong 阅读(9) 评论(0) 推荐(0) 编辑
摘要:D - New Friends https://atcoder.jp/contests/abc350/tasks/abc350_d 思路 此sns网络,可能包括若干个连同子图, 对于每个子图, 计算 连通子图中 成员数目, 和 连接数目, 计算全连接子图,需要的总的连接数目, 减去当前连接数目, 得 阅读全文
posted @ 2024-04-20 23:15 lightsong 阅读(17) 评论(0) 推荐(0) 编辑
摘要:C - Sort https://atcoder.jp/contests/abc350/tasks/abc350_c 思路 开辟一个map, 对于输入排列数组,记录每个值所在的位置 (因为后面做位置替换的时候,需要快速找到 当前位置上 值 对应位置) 遍历数组,如果当前位置i,存放的就是当前位置值i 阅读全文
posted @ 2024-04-20 23:10 lightsong 阅读(12) 评论(0) 推荐(0) 编辑
摘要:Controlling the Flow with Stage, Lock, and Milestone https://www.jenkins.io/blog/2016/10/16/stage-lock-milestone/ 此方案是按照开启并发执行, 多个building同时执行, 其中有一个b 阅读全文
posted @ 2024-04-19 13:29 lightsong 阅读(7) 评论(0) 推荐(0) 编辑
摘要:135. 分发糖果 https://leetcode.cn/problems/candy/description/?envType=study-plan-v2&envId=top-interview-150 Code class Solution { public: int candy(vector 阅读全文
posted @ 2024-04-19 09:15 lightsong 阅读(6) 评论(0) 推荐(0) 编辑
摘要:Vault high availability with Consul https://developer.hashicorp.com/vault What is Vault? Secure, store, and tightly control access to tokens, password 阅读全文
posted @ 2024-04-14 20:48 lightsong 阅读(16) 评论(0) 推荐(0) 编辑
摘要:Discover services with Consul https://www.consul.io/use-cases/discover-services Use Consul as a centralized registry that discovers, tracks, and monit 阅读全文
posted @ 2024-04-14 20:04 lightsong 阅读(4) 评论(0) 推荐(0) 编辑

千山鸟飞绝,万径人踪灭
点击右上角即可分享
微信分享提示