摘要:
假设有这么个需求,查询表中“名字第一个字是张,性别男,年龄为10岁的所有记录”。那么,查询语句是这么写的: mysq> select * from tuser where name like '张 %' and age=10 and ismale=1; 根据前面说的“最左前缀原则”,该语句在搜索索引 阅读全文
摘要:
可以分为链表是否有环来拆分问题 package dayone.tre; public class IntersectNode { public static Node getIntersectNode(Node head1, Node head2) { if (head1 == null || he 阅读全文