上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 143 下一页
摘要: # array_diff顺序问题 ### `array_diff($A, $B)` 和 `array_diff($B, $A)` 的结果一样吗 ? `array_diff($A, $B)` 和 `array_diff($B, $A)` 的结果是不同的,因为它们的参数顺序不同,这会影响到差集的计算。差 阅读全文
posted @ 2023-09-19 18:27 刘俊涛的博客 阅读(21) 评论(0) 推荐(0)
摘要: ### 排名 ![image-20230915101511549](https://img2023.cnblogs.com/blog/540671/202309/540671-20230915103621203-1185888455.png) ### 工作 ![image-2023091510152 阅读全文
posted @ 2023-09-15 10:36 刘俊涛的博客 阅读(13) 评论(0) 推荐(0)
摘要: Algorithm 每周至少做一个 Leetcode 的算法题。 roman-to-integer class Solution { public int romanToInt(String s) { s = s.replace("IV","a"); s = s.replace("IX","b"); 阅读全文
posted @ 2023-09-13 15:10 刘俊涛的博客 阅读(14) 评论(0) 推荐(0)
摘要: # 语义化版本 2.0.0 ## 摘要 版本格式:主版本号.次版本号.修订号,版本号递增规则如下: 1. 主版本号:当你做了不兼容的 API 修改, 2. 次版本号:当你做了向下兼容的功能性新增, 3. 修订号:当你做了向下兼容的问题修正。 先行版本号及版本编译信息可以加到“主版本号.次版本号.修订 阅读全文
posted @ 2023-09-13 13:51 刘俊涛的博客 阅读(106) 评论(0) 推荐(0)
摘要: **Practical AI for Teachers and Students** [Practical AI for Teachers and Students](https://www.youtube.com/playlist?list=PLwRdpYzPkkn302_rL5RrXvQE8j0 阅读全文
posted @ 2023-09-05 21:12 刘俊涛的博客 阅读(31) 评论(0) 推荐(0)
摘要: ## Algorithm > 每周至少做一个 Leetcode 的算法题。 ### integer-to-roman ```php class Solution { public String intToRoman(int num) { int[] values = {1000,900,500,40 阅读全文
posted @ 2023-09-03 23:15 刘俊涛的博客 阅读(11) 评论(0) 推荐(0)
摘要: # PHP 中 array_walk 与array_map的区别 `array_map` 函数来对数组中的每个元素应用回调函数。该函数与 `array_walk` 类似**,但是它返回一个新的数组,而不是直接修改原始数组。** 在 PHP 中,可以使用 `array_walk` 函数来遍历数组并执行 阅读全文
posted @ 2023-09-03 19:06 刘俊涛的博客 阅读(80) 评论(0) 推荐(0)
摘要: ## PHP extract() Function ## 定义和用法 extract() 函数从数组中将变量导入到当前的符号表。 该函数使用数组键名作为变量名,使用数组键值作为变量值。针对数组中的每个元素,将在当前符号表中创建对应的一个变量。 第二个参数 *type* 用于指定当某个变量已经存在,而 阅读全文
posted @ 2023-09-03 19:06 刘俊涛的博客 阅读(23) 评论(0) 推荐(0)
摘要: # getYear() 与getFullYear() `getYear()` 方法返回指定的本地日期的年份。 因为 getYear() 不返回千禧年("year 2000 problem"), 所以这个方法不再被使用,现在替换为`getFullYear` 。 > **已弃用:** 不再推荐使用该特性 阅读全文
posted @ 2023-09-03 19:04 刘俊涛的博客 阅读(60) 评论(0) 推荐(0)
摘要: ## Algorithm > 每周至少做一个 Leetcode 的算法题。 ### assign-cookies ```go func findContentChildren(g []int, s []int) (ans int) { // 排序 sort.Ints(g) sort.Ints(s) 阅读全文
posted @ 2023-08-27 23:23 刘俊涛的博客 阅读(15) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 143 下一页