码迷,mamicode.com
首页 >  
搜索关键字:medium    ( 2358个结果
lintcode-medium-Edit Distance
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have
分类:其他好文   时间:2016-03-20 14:41:10    阅读次数:169
lintcode-medium-Fast Power
Calculate the a^n % b where a, b and n are all 32bit integers. For 2^31 % 3 = 2 For 100^1000 % 1000 = 0 这道题有个值得注意的问题,当n为奇数的时候,如果把递归写成: long num = fast
分类:其他好文   时间:2016-03-20 14:40:17    阅读次数:128
lintcode-medium-Divide Two Integers
Divide two integers without using multiplication, division and mod operator. If it is overflow, return 2147483647 Given dividend = 100 and divisor = 9
分类:其他好文   时间:2016-03-20 14:27:14    阅读次数:173
lintcode-medium-Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression inReverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another ex
分类:其他好文   时间:2016-03-20 14:21:01    阅读次数:135
lintcode-medium-Distinct Subsequences
Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed from t
分类:其他好文   时间:2016-03-20 08:09:33    阅读次数:194
lintcode-medium-Delete Digits
Given string A representative a positive integer which has N digits, remove any k digits of the number, the remaining digits are arranged according to
分类:其他好文   时间:2016-03-18 13:29:04    阅读次数:177
lintcode-medium-Digit Counts
Count the number of k's between 0 and n. k can be 0 - 9. if n=12, k=1 in [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], we have FIVE 1's(1, 10, 11, 12)
分类:其他好文   时间:2016-03-18 13:24:35    阅读次数:156
Java ActiveMQ 讲解(一)理解JMS 和 ActiveMQ基本使用(转)
转自:http://www.cnblogs.com/luochengqiuse/p/4678020.html?utm_source=tuicool&utm_medium=referral 最近的项目中用到了mq,之前自己一直在码农一样的照葫芦画瓢。最近几天研究了下,把自己所有看下来的文档和了解总结一
分类:编程语言   时间:2016-03-18 01:40:15    阅读次数:385
lintcode-medium-Copy List with Random Pointer
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy
分类:其他好文   时间:2016-03-16 14:03:12    阅读次数:161
lintcode-medium-Continuous Subarray Sum
Given an integer array, find a continuous subarray where the sum of numbers is the biggest. Your code should return the index of the first number and
分类:其他好文   时间:2016-03-16 13:57:57    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!