Vertical Order Traversal of a Binary Tree (M) 题目 Given a binary tree, return the vertical order traversal of its nodes values. For each node at positi ...
分类:
其他好文 时间:
2020-08-08 17:30:42
阅读次数:
51
SQL是大数据从业者的必备技能,大部分的大数据技术框架也都提供了SQL的解决方案。可以说SQL是一种经久不衰、历久弥新的编程语言。尤其是在数仓领域,使用SQL更是家常便饭。本文会分享四个在面试和工作中常用的几个使用技巧,具体包括:日期与期间的使用临时表与CommonTableExpression(WITH)Aggregation与CASEWHEN的结合使用WindowFunction的其他用途数仓
分类:
数据库 时间:
2020-08-08 00:41:54
阅读次数:
95
Border 和 周期 周期的定义: $0<p<|s|, s[i] = s[i+p], \forall i \in{1,2,...,∣s∣? p}$周期不能为0,也不能等于串长. Border: $0<r<|s|, pre(s,r) = suf(s,r)\(, 则pre(s,r)为s的一个borde ...
分类:
其他好文 时间:
2020-08-07 00:31:37
阅读次数:
96
Problem Description Little Rabbit is interested in radix. In a positional numeral system, the radix is the number of unique digits, including the digi ...
分类:
其他好文 时间:
2020-08-06 20:41:05
阅读次数:
67
As the steps are a little bit tricky, I use the working UI component SMCOV and SMCCMBO to illustrate. After Advanced button is clicked: Step1: The nav ...
分类:
其他好文 时间:
2020-08-06 13:07:54
阅读次数:
73
一、基础 1.为某张表添加一列 alter table table_name add column_name column_type; 2.查看表的结构 desc table_name; 3.修改表中的列的类型、长度 alter table table_name modify column_name ...
分类:
其他好文 时间:
2020-08-05 19:44:23
阅读次数:
82
数据结构--数组存储二叉树(Java) 博客说明 文章所涉及的资料来自互联网整理和个人总结,意在于个人学习和经验汇总,如有什么地方侵权,请联系本人删除,谢谢! 顺序存储二叉树的特点 顺序二叉树通常只考虑完全二叉树 第n个元素的左子节点为 2 * n + 1 第n个元素的右子节点为 2 * n + 2 ...
分类:
编程语言 时间:
2020-08-05 13:11:12
阅读次数:
68
游标定义 sql语言按照标准处理对象是集合,但有时候也需要针对单行的处理,所以就有了游标,类似C语言的指针一样。 使用方法 创建游标 declare cursor_name --游标名称,唯一标识 [insensitive] [scroll] cursor for select_statement ...
分类:
数据库 时间:
2020-08-05 00:09:52
阅读次数:
127
原来写的mapper方法: List<InterCityTeam> queryTeamsByParam(@Param("cityId") Integer cityId, @Param("supplierId") Integer supplierId, @Param("teamId")Integer ...
分类:
其他好文 时间:
2020-08-04 14:12:41
阅读次数:
60