
leetcode
43118
JonyChan技术学习过程中的总结
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
leetcode刷题笔记-MySQL
Eg175 组合两个表 知识点: select … from table a (…) join table b on … = … 1)INNER JOIN (内连接,或JOIN): 只连接匹配的行 select * from table A inner join table B on A.key = B.key //内连接 2)LEFT JOIN (左连接):包含左边表的全部行(不管右边的表中是否存在与它们匹配的行),以及右边表中全部匹配的行 3)RIGHT JOIN (右连接):包含右边表的全原创 2020-07-03 22:37:16 · 199 阅读 · 0 评论 -
leetcode刷题笔记[Easy26-43题]
Eg136 只出现一次的数字 (新鲜) // 用异或操作解决问题,很新鲜 class Solution { public int singleNumber(int[] nums) { int result = 0; for (int i = 0; i < nums.length; i++) result ^= nums[i]; return result; } } ...原创 2020-07-03 12:50:43 · 463 阅读 · 0 评论 -
leetcode刷题笔记[Easy1-25题]
Eg1. class Solution { public int[] twoSum(int[] nums, int target) { int ans; for(int i = 0; i < nums.length; i ++){ ans = target - nums[i]; for(int j = i + 1; j < nums.length; j++){ if(nums[j] == ans) return new int[] {i,j}; } } return null; // 即使在内.原创 2020-06-25 22:08:15 · 1089 阅读 · 0 评论