会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tech Blog Pro
大数据/机器学习/数据挖掘/web开发 计算机世界里的一名小学生
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
33
下一页
2019年4月5日
Leetcode 389. Find the Difference
摘要: 多了一个字母,就两个字符串一减就得到多的那个. 但是字符串不能直接相减,所以就转成数字再减,最后再转回来.
阅读全文
posted @ 2019-04-05 19:11 周洋
阅读(113)
评论(0)
推荐(0)
2019年4月4日
Leetcode 182. Duplicate Emails
摘要: # Write your MySQL query statement below select Email from Person group by Email having count(Email)>1;
阅读全文
posted @ 2019-04-04 22:45 周洋
阅读(143)
评论(0)
推荐(0)
Leetcode 175. Combine Two Tables
摘要: 以左表为主合并两个表,使用left join... on ...语句. 题目: Table: Person Table: Address Write a SQL query for a report that provides the following information for each p
阅读全文
posted @ 2019-04-04 22:17 周洋
阅读(111)
评论(0)
推荐(0)
SQL中合并两个表的JOIN语句
摘要: SQL里有四种JOIN语句用于根据某条件合并两个表: (INNER) JOIN: 交集 LEFT (OUTER) JOIN: 左表数据全包括,右表对应的如果没有就是NULL RIGHT (OUTER) JOIN: 右表数据全包括,左表对应的如果没有就是NULL FULL (OUTER) JOIN:
阅读全文
posted @ 2019-04-04 22:11 周洋
阅读(5034)
评论(0)
推荐(0)
Leetcode 620. Not Boring Movies
摘要: 考察SQL query的写法. 格式如下: SELECT... FROM.. WHERE... ORDER BY ...; 注意where中判断两个数相等,写一个等号而不是两个.
阅读全文
posted @ 2019-04-04 21:35 周洋
阅读(186)
评论(0)
推荐(0)
Leetcode 627. Swap Salary
摘要: SQL中更新: UPDATE... SET... 交换两个数用异或.
阅读全文
posted @ 2019-04-04 21:21 周洋
阅读(105)
评论(0)
推荐(0)
Leetcode 595. Big Countries
摘要: 考察的是SQL中查询语句的写法. 一般格式: SELECT ... FROM ... WHERE... 两种写法: 1.用OR 2.用UNION
阅读全文
posted @ 2019-04-04 06:50 周洋
阅读(137)
评论(0)
推荐(0)
Leetcode 804. Unique Morse Code Words
摘要: class Solution: def uniqueMorseRepresentations(self, words): lib = [".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-..", "--", "-.&q
阅读全文
posted @ 2019-04-04 06:36 周洋
阅读(106)
评论(0)
推荐(0)
Leetcode 701. Insert into a Binary Search Tree
摘要: import functools @functools.lru_cache() class Solution(object): def insertIntoBST(self, root, val): """ :type root: TreeNode :type val: int :rtype: TreeNode ...
阅读全文
posted @ 2019-04-04 06:18 周洋
阅读(191)
评论(0)
推荐(0)
Leetcode 807. Max Increase to Keep City Skyline
摘要: class Solution(object): def maxIncreaseKeepingSkyline(self, grid): """ :type grid: List[List[int]] :rtype: int """ import numpy as np grid=np.array...
阅读全文
posted @ 2019-04-04 05:20 周洋
阅读(138)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
33
下一页
公告