![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Leetcode
彭笳鑫
Apache Committer,对数据库和网络有一定的了解,喜欢参加一些比赛
2022 云原生编程挑战赛 2 和 ECS CloudBuild 开发者大赛赛道 3 【季军】
PingCap 性能挑战赛 【亚军】
蚂蚁绿色计算第一赛道 【第二名】
其他若干比赛 Top5,Top10 等
展开
-
【LeetCode】链表数据整理
两数相加func sum(l1, l2 *ListNode) *ListNode { if li == nil && l2 == nil { return nil } dummy := new(ListNode) curr, value := dummy, 0 for l1 != nil || l2!= nil || value > 0 { curr.Next = new(ListNode)原创 2020-08-04 01:12:03 · 72 阅读 · 0 评论 -
【LeetCode】数组解法整理收集
二分查找func findMagicIndex(nums []int) int { lu := len(nums) if lu == 0 { return -1 } l, r := 0, lu - 1 return f(nums, l, r)}func f(nums[]int, l, r int) int { if l > r { return - 1 } mid := l + (r - l)/2原创 2020-08-02 23:11:08 · 97 阅读 · 0 评论 -
【LeetCode】二叉树解法收集整理
用于复习整理编辑:2020年08月02日在树结构里面判断是否有子节点type ListNode struct { Next *ListNode Val int}type TreeNode struct { Left *TreeNode Right *TreeNode Val int}func isSubPath(head *ListNode, root *TreeNode) bool { if head == nil { .原创 2020-08-02 23:08:39 · 79 阅读 · 0 评论 -
[Leetcode] Valid Phone Numbers的笔记
Valid Phone Numbers题目如下,大体就是给的电话号码的格式只符合(xxx) xxx-xxxx or xxx-xxx-xxxx. (x为数字)原创 2015-10-16 11:18:52 · 1125 阅读 · 0 评论 -
[Leetcode] Tenth Line的笔记
发现leetcode上面有shell脚本的sql的题目,那么就做完他们来巩固一下学过的知识。题目如下原创 2015-10-16 09:53:29 · 320 阅读 · 0 评论 -
[Leetcode] [Database] Employees Earning More Than Their Managers解题笔记
题目如下 The Employee table holds all employees including their managers. Every employee has an Id, and there is also a column for the manager Id. Id Name Salary ManagerId 1 Joe 70000原创 2015-10-19 13:24:08 · 386 阅读 · 0 评论 -
[Leetcode] [Database] Customers Who Never Order解题
题目如下 Suppose that a website contains two tables, the Customers table and the Orders table. Write a SQL query to find all customers who never order anything. Table: Customers. Id Name原创 2015-10-19 13:56:36 · 385 阅读 · 0 评论 -
[Leetcode] [Database] Second Highest Salary解题
题目如下 Write a SQL query to get the second highest salary from the Employee table. Id Salary 1 100 2 200 3 300 For example, given the above Employee table, the second highest s原创 2015-10-19 14:13:00 · 335 阅读 · 0 评论 -
[Leetcode] [Database] Consecutive Numbers
题目如下: Write a SQL query to find all numbers that appear at least three times consecutively. Id Num 1 1 2 1 3 1 4 2 5 1 6 2 7 2 For example, given the above Lo原创 2015-10-19 13:44:47 · 338 阅读 · 0 评论 -
[Leetcode] [Database] Trips and Users解题思路
用户旅行的题目如下 The Trips table holds all taxi trips. Each trip has a unique Id, while Client_Id and Driver_Id are both foreign keys to the Users_Id at the Users table. Status is an ENUM type of (‘complete原创 2015-10-19 13:13:39 · 1522 阅读 · 0 评论 -
[Leetcode] [Database] Duplicate Emails解题思路
重复邮件 Write a SQL query to find all duplicate emails in a table named Person. Id Email 1 a@b.com 2 c@d.com 3 a@b.com For example, your query should return the following for th原创 2015-10-19 13:37:47 · 365 阅读 · 0 评论 -
[Leetcode] Word Frequency的笔记
单词出现的频率题目如下原创 2015-10-16 13:27:46 · 486 阅读 · 0 评论