码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
LeetCode:Palindrome Number,Reverse Integer
Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes?...
分类:其他好文   时间:2015-03-06 14:14:56    阅读次数:111
cf13A Numbers(,,)
题意:Little Petya likes numbers a lot. He found that number 123 in base 16 consists of two digits: the first is 7 and the second is 11. So the sum of di...
分类:其他好文   时间:2015-03-06 14:04:11    阅读次数:120
LeetCode Maximum Depth of Binary Tree
1.题目描述Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.2.解决方案1class Solution { public:...
分类:其他好文   时间:2015-03-06 11:22:23    阅读次数:126
LeetCode Two Sum
1.题目Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:其他好文   时间:2015-03-06 10:04:23    阅读次数:147
Code Review中应该关注的点
Magic number/stringIf statement, you should always use single line or bracketsProvide default value of EnumDifference between abstract class and inter...
分类:其他好文   时间:2015-03-06 09:57:24    阅读次数:178
Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each number in C may only be used once in the combinati...
分类:其他好文   时间:2015-03-06 01:06:30    阅读次数:126
非凸优化问题
凸优化就是函数是凸函数,定义域也是凸集,不会有局部极小值问题;非凸优化就是在寻找最小值(或最大值)时会陷入局部极小值,这就是机器学习里某些算法经常遇到的问题。记录今天学习到的matlab函数:1. numel(A),求A的元素个数,即number of elements;2. rem(A,a),求余...
分类:其他好文   时间:2015-03-05 23:38:41    阅读次数:325
1:Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2015-03-05 23:30:51    阅读次数:161
Excel Sheet Column Number
给出Excel表格里一列的编号,有A-Z组合而成,表示一个具体的数字。 示例: A -> 1 B -> 2 C -> 3 ... Z -> 26 AA -> 27 AB -> 28解题:ABC=A?262+B?261+C?260因此代码实现为: class Solution {public: int...
分类:其他好文   时间:2015-03-05 22:17:54    阅读次数:130
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!