冰淇淋12322
冰淇淋12322
全部文章
分类
归档
标签
去牛客网
登录
/
注册
冰淇淋12322的博客
全部文章
(共17篇)
题解 | 旺仔哥哥转圈圈
class Solution: def stopAtWho(self , a: List[int], m: int) -> int: # write code here k = 0 for i in range(m): ...
2026-02-04
0
6
题解 | 旺仔哥哥挤地铁
class Solution: def countLongestSubwayTime(self , t: List[int], s: List[int], x: int, y: int) -> int: # write code here # 计算x站到...
2026-02-04
0
8
题解 | 向量点乘
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # 计算两个三维向量的点乘结果 # @param vector1 int整型一维数组 第一个向量 # @param vector2 int整型一维数组 第二个向量 # @return int整型 # class S...
2026-02-04
0
7
题解 | 饿了么需要分析不同配送员在不同天气条件下的配送效率和用户投诉情况
# 1、筛选合格的配送员 with t1 as ( select dr.staff_id ,sum(is_complaint)/count(distinct record_id) as c_rate from delivery_records dr left ...
2026-02-04
0
7
题解 | 统计骑手信息
# 一个注意点,计算avg的时候,else null 而不是else 0,因为0会使得分母变大。 with t1 as ( select o.zone_id ,z.zone_name ,count(case when date_format(order_time, '%Y-%...
2026-02-04
0
8
题解 | 下单复盘
select c.customer_id ,c.customer_name ,ifnull(count(distinct o.order_id), 0) as feb_2024_order_count ,round(ifnull(sum(qty*price), 0),...
2026-02-04
0
8
题解 | 统计每个班级的关键指标
with t1 as ( select class_id, count(student_id) as learners_enrolled from course_enroll_ ...
2026-02-03
0
7
题解 | 计算商城中2021年每月的GMV
select date_format(event_time, '%Y-%m') as month, sum(total_amount) as GMV from tb_order_overall where status in (1,0) and year(event_time) = 2021 gro...
2026-02-02
0
9
题解 | 游戏平台新玩家消费与进阶行为分析
select t.player_id, p.username, p.level as current_level, case when p.level >=30 then '高阶玩家' else '新秀玩家' end as player_category, round(sum(cost), 2...
2026-02-02
0
10
题解 | SaaS平台企业客户新功能采纳度分析
# 1、筛选特定团队,并计算使用功能次数 with t1 as ( select fu.team_id, t.team_name, sum( case ...
2026-02-02
0
10
首页
上一页
1
2
下一页
末页