一、组合两个表 jion: 内连接:inner join 适用于A表的附加属性与B表的全部相同 外连接:left join 适用于左A表的全部属性加上右B表中与查询条件符合的属性,即左表为主表。同理,right join右表为主表。 select FirstName,LastName,City,St ...
分类:
数据库 时间:
2019-09-22 15:21:01
阅读次数:
123
https://leetcode.com/problems/reverse-bits/
Reverse bits of a given 32 bits unsigned integer.
For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), ret...
分类:
其他好文 时间:
2015-04-13 00:26:40
阅读次数:
143
Write a program to find the node at which the intersection of two singly linked lists begins.
For example, the following two linked lists:
A: a1 → a2
↘
...
分类:
其他好文 时间:
2015-04-11 19:33:14
阅读次数:
170
感觉这是一系列的动态规划的算法,正好也将动态规划的算法进行一个总结:
算法一:
带权重的最小路径的问题
Given a m x n grid
filled with non-negative numbers, find a path from top left to bottom right which minimizes the
sum of all numbers along i...
分类:
编程语言 时间:
2015-04-08 18:03:40
阅读次数:
167
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given binary ...
分类:
其他好文 时间:
2015-04-08 15:07:05
阅读次数:
161
Given two sorted integer arrays A and B, merge B into A as one sorted array.
Note:
You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from ...
分类:
编程语言 时间:
2015-04-08 15:04:58
阅读次数:
152
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where
the candidate numbers sums to T.
The same repeated number may be chosen from C unlimited numb...
分类:
编程语言 时间:
2015-03-21 17:10:57
阅读次数:
193
Implement atoi to convert a string to an integer.
具体的网上已经有很多解法
这里主要就是注意一些地方(最重要的就是返回值一开始最好赋值成为long long 因为有可能会越界)
然后就是一些特殊情况的分析了
class Solution {
public:
int atoi(string str) {
i...
分类:
其他好文 时间:
2015-03-21 12:40:46
阅读次数:
153