文章浏览阅读4.1k次,点赞5次,收藏5次。原题目链接:14. 最长公共前缀题目描述:编写一个函数来查找字符串数组中的最长公共前缀。如果不存在公共前缀,返回空字符串""。示例 1:输入:strs = ["flower","flow&q......
admin 2023-11-21
文章浏览阅读203次。题目Dota2 的世界里有两个阵营:Radiant(天辉)和 Dire(夜魇)Dota2 参议院由来自两派的参议员组成。现在参议院希望对一个 Dota2 游戏里的改变作出决定。他们以一个基于轮为过程的投票进行。在每一轮中,每一位......
admin 2024-01-23
文章浏览阅读401次。1.题目写一段 SQL ,报告每个用户的旅行距离.返回的结果表单,以travelled_distance降序排列,如果有两个或者更多的用户旅行了相同的距离,那么再以name升序排列.查询结果格式,如下例所示:Elvis 和 Lee 旅行了 450 英......
admin 2024-01-22
文章浏览阅读454次。文章目录1. 题目2. 解题2.1 超时解2.2 正解1. 题目我们有一个非负整数数组 A。对于每个(连续的)子数组 B = [A[i], A[i+1], ..., A[j]] ( i <= j),我们对 B 中的每个元素进行按位或操作,获得结果 A[i] | A[i+1] | ... ......
admin 2023-11-11
二十六画生的博客擅长Java SSM,笔试面经 LeetCode 剑指Offer 后端/大数据,Hive Spark Hadoop MapReduce,等方面的知识,二十六画生的博客关注hive,storm,spark,hadoop,etl领域....
admin 2023-10-11
文章浏览阅读510次。人生苦短,我用Python21.合并两个有序链表题目描述:将两个有序链表合并为一个新的有序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。示例:输入:1->2->4, 1->3->4输出:1->1->......
admin 2023-11-13
文章浏览阅读513次。人生苦短,我用Python21.合并两个有序链表题目描述:将两个有序链表合并为一个新的有序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。示例:输入:1->2->4, 1->3->4输出:1->1->......
admin 2023-11-21
文章浏览阅读976次。算法和数据结构不想花大量时间刷题?这篇文章应该能帮到你!★写在前面:经验不足的选手建议不要一上来就拿leetcode来刷题,不是说leetcode不好,是真的不适合你们啊!Leetcode题库虽说很强,但是数量太过......
admin 2024-01-22
文章浏览阅读538次。LeetCode 0707. 设计链表:C++小详解,万字小长文:分别借助和不借助STL解决设计链表的实现_c++不用stl链表的模板题...
admin 2024-01-24
文章浏览阅读164次。给你一个下标从 0 开始的整数矩阵 grid ,矩阵大小为 ,由从 0 到 的不同整数组成。你可以在此矩阵中,从一个单元格移动到 下一行 的任何其他单元格。如果你位于单元格 ,且满足 x < m - 1 ,你可以移......
admin 2023-11-11
文章浏览阅读1.7k次。问题描述IDEA移除Module后(未删除源文件),怎么重新导入项目中。被移除的module没有对应的`蓝色方块解决方案:ps:导入成功后,记得重新导入maven依赖的包,否则代码会爆红_如何将idea中移除的packge重新启......
admin 2023-11-11
文章浏览阅读278次。题目描述这道题,相对来说比较复杂,总共需要用到3张表,以及多次子查询。下面是3张表的信息。Person表±---------------±--------+| Column Name | Type |±---------------±--------+| id | int || nam......
admin 2024-01-24
文章浏览阅读392次。Java基础 :判断String是否相等以及延伸Java的JVM内存模型JVM垃圾回收算法对象创建过程 ?类加载器有哪些 ?类加载过程 ?TCP,UDP 协议的区别为什么说TCP是基于流的,流如何解释 ?流量控制和拥塞控制的区别 ......
admin 2023-11-11
文章浏览阅读363次。LeetCode 0328. 奇偶链表给定单链表的头节点 head ,将所有索引为奇数的节点和索引为偶数的节点分别组合在一起,然后返回重新排序的列表。_给定单链表的头节点 head ,将所有索引为奇数的节点和索引为偶数的......
admin 2024-01-24
文章浏览阅读311次。Leetcode 851. Loud and Rich 以及一些面试的想法Leetcode 851. Loud and Rich 这道题本身没有什么很特殊的地方,但是它引发了我对面试写算法题的一些想法和思考。题意:给你一个拓扑序列richer,给你一个安静值quiet。......
admin 2024-01-23
文章浏览阅读822次。产品销售分析一1.题目写一条SQL查询语句获取产品表 Product中所有的产品名称product name以及 该产品在 Sales表中相对应的 上市年份 year和 价格 price。示例:2.思路和答案SELECT Product.product_name, Sales.year, Sales.price FR......
admin 2024-01-22
文章浏览阅读122次。2020-3-24Every boring hour in life is unique. 在生命中,再无聊的时光也是限量版。题目:给定一个链表,删除链表的倒数第 n 个节点,并且返回链表的头结点。示例:给定一个链表: 1->2->3->4->5, 和 n = 2.当删......
admin 2023-11-21
友情链接申请要求: 不违法不降权 权重相当 请联系QQ:737597453