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
题目链接: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
题目链接: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
题目链接: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
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
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
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
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
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
发明万有引力的牛顿大家都知道,你知道他花了最多时间在研究什么?万有引力?微积分?光学?
其实牛顿晚年精力都放在研究点金术上,当时他做了无数的实验,希望能从中获得突破,最后却是徒劳。现在我们了解了物理与化学的原理,知道这种研究一定是没结果的。所以,要解决问题必须对问题有充分的了解——这是否是个可以解决的问题,否则只会花费无谓的精力。
爱因斯坦说,如果他有20天去解决一个问题,那么他会用19天去把...
分类:
其他好文 时间:
2015-08-25 16:46:51
阅读次数:
142