码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
LeetCode 176 Second Highest Salary mysql,select 嵌套 难度:1
https://leetcode.com/problems/second-highest-salary/Write a SQL query to get the second highest salary from theEmployeetable.+----+--------+| Id | Sal...
分类:数据库   时间:2015-08-26 08:16:04    阅读次数:326
LeetCode: Add Digits
题目链接:https://leetcode.com/problems/add-digits/ 题目: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the pro...
分类:其他好文   时间:2015-08-25 23:53:39    阅读次数:174
LeetCode: MissingNumber
题目链接:https://leetcode.com/problems/missing-number/ 题目: Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. For example, Give...
分类:其他好文   时间:2015-08-25 21:51:39    阅读次数:126
LeetCode: SingleNumIII
题目链接:https://leetcode.com/problems/single-number-iii/ 题目: Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the...
分类:编程语言   时间:2015-08-25 21:34:38    阅读次数:145
HDU 1046.Gridland【非搜索,找规律】【8月25】
Gridland Problem Description For years, computer scientists have been trying to find efficient solutions to different computing problems. For some of them efficient algorithms are already avai...
分类:其他好文   时间:2015-08-25 19:44:20    阅读次数:194
Leetcode 1 two sum 难度:0
https://leetcode.com/problems/two-sum/class Solution {public: vector twoSum(vector& nums, int target) { vector index(2,0); vector n2;...
分类:其他好文   时间:2015-08-25 19:16:49    阅读次数:91
Leetcode 155 Min Stack 小顶堆+栈,优先队列实现 难度:0
https://leetcode.com/problems/min-stack/#include #include #include #include using namespace std;class MinStack {public: vector vec; priority_que...
分类:其他好文   时间:2015-08-25 19:07:45    阅读次数:231
Leetcode 171 Excel Sheet Column Number 难度:0
https://leetcode.com/problems/excel-sheet-column-number/class Solution {public: int titleToNumber(string s) { int ans = 0; for(int i ...
分类:其他好文   时间:2015-08-25 18:46:41    阅读次数:142
Leetcode 58 Length of Last Word 难度:0
https://leetcode.com/problems/length-of-last-word/int lengthOfLastWord(char* s) { int ans = 0; int fans = 0; for(int i = 0;s[i];i++){ ...
分类:其他好文   时间:2015-08-25 18:27:45    阅读次数:77
解决难题:一些宝贵的经验教训 (Problems and Solutions – Scott Berkun)
发明万有引力的牛顿大家都知道,你知道他花了最多时间在研究什么?万有引力?微积分?光学? 其实牛顿晚年精力都放在研究点金术上,当时他做了无数的实验,希望能从中获得突破,最后却是徒劳。现在我们了解了物理与化学的原理,知道这种研究一定是没结果的。所以,要解决问题必须对问题有充分的了解——这是否是个可以解决的问题,否则只会花费无谓的精力。 爱因斯坦说,如果他有20天去解决一个问题,那么他会用19天去把...
分类:其他好文   时间:2015-08-25 16:46:51    阅读次数:142
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!