![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Leetcode
文章平均质量分 54
ccfish_lyh
这个作者很懒,什么都没留下…
展开
-
Leetcode-412
Leetcode-412 Fizz Buzz原创 2016-11-17 20:58:00 · 336 阅读 · 0 评论 -
LeetCode-136 SingleNumber
Given an array of integers, every element appears twice except for one. Find that single one.给一个数组,找到单独的那一个数异或:如果a、b两个值不相同,则异或结果为1。如果a、b两个值相同,异或结果为0。 输入 运算符 输入 结果 1 ⊕ 0 1 1 ⊕ 1 0原创 2016-11-23 10:07:59 · 330 阅读 · 0 评论 -
LeetCode175 Combine Two Tables
两表相连进行查询,使用到了左连接左连接(LeftJoin) 左连接即是将左边表中的数据全部查找出来。数据库会以左边为基础,与右边表做笛卡尔乘积,再去掉左表为空的值。说白了就是主要使用左边表的数据时就用左连接 题目Person表,PersonId为主键 列名 类型 PersonId int FirstName varchar LastName varchar Addr原创 2017-06-30 09:20:41 · 345 阅读 · 0 评论 -
LeetCode463 island perimeter
给你一个二维数组,其中1代表岛,0代表水,求岛的周长. 自己琢磨很久,发现答案中的一条计算方式十分巧妙,他通过计算岛的数量和岛的右侧和下侧相邻岛的数量来计算周长。 loop over the matrix and count the number of islands; // 循环整个矩阵得到岛的数量 if the current dot is an island, count if翻译 2017-07-03 10:18:04 · 200 阅读 · 0 评论