码迷,mamicode.com
首页 >  
搜索关键字:leetcoed    ( 8个结果
leetcoed之数据库
一、组合两个表 jion: 内连接:inner join 适用于A表的附加属性与B表的全部相同 外连接:left join 适用于左A表的全部属性加上右B表中与查询条件符合的属性,即左表为主表。同理,right join右表为主表。 select FirstName,LastName,City,St ...
分类:数据库   时间:2019-09-22 15:21:01    阅读次数:123
LeetCode—Reverse Bits ,1 Bit和数字的二进制情况相关
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
LeetCode—Intersection of Two Linked Lists 找两个链表的相交位置,让长的链表先走一段
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
LeetCode—Minimum Path Sum 二维数组最小路径,动态规划
感觉这是一系列的动态规划的算法,正好也将动态规划的算法进行一个总结: 算法一: 带权重的最小路径的问题 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
LeetCode—Binary Tree Zigzag Level Order Traversal 二叉树的Z扫描
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
LeetCode—Merge Sorted Array两个有序数组排序
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
LeetCode—**Combination Sum 利用DFS算法
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
LeetCode-Atoi
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
8条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!