码迷,mamicode.com
首页 >  
搜索关键字:medium    ( 2358个结果
LeetCode的medium题集合(C++实现)八
1 Pow(x, n) 该题采用二分法进行递归double myPow(double x, int n) { if(n==0) return 1; if(n<0) { n=(-n); x=1/x; } double res=myPow(x,n/2); i...
分类:编程语言   时间:2015-05-19 13:12:26    阅读次数:168
HackerRank - "String Modification"
An ACM-level problem because it involves "advanced maths". It should not be marked as "Moderate". Other than that, it is a medium level DP one.*Math m...
分类:其他好文   时间:2015-05-19 12:19:54    阅读次数:192
【Leetcode】【Medium】Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:其他好文   时间:2015-05-19 08:48:01    阅读次数:104
【Leetcode】【Medium】Rotate List
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.解题思路:...
分类:其他好文   时间:2015-05-19 07:12:50    阅读次数:116
【Leetcode】【Medium】Reorder List
Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For exam...
分类:其他好文   时间:2015-05-19 07:11:50    阅读次数:96
【Leetcode】【Medium】Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor...
分类:其他好文   时间:2015-05-19 07:08:25    阅读次数:101
使用go语言编写IOS和Android程序
go语言目前已可以用来开发android和ios手机app。相关资料:1、IOShttps://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/golang-china/zEh_pdSLHDs需要能访问google...
分类:移动开发   时间:2015-05-18 22:43:35    阅读次数:266
LeetCode的medium题集合(C++实现)七
1 Rotate Image You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise). 对于 n x n 的矩阵按顺时针旋转90度,相当于先将矩阵上下翻转,然后将矩阵装置。void rotate(vector<vector>& matrix) {...
分类:编程语言   时间:2015-05-18 12:58:39    阅读次数:139
LeetCode的medium题集合(C++实现)六
1 Multiply Strings Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-negative. 该题实际就是利用字符串来解决大数的乘法问题。为了...
分类:编程语言   时间:2015-05-17 16:50:18    阅读次数:159
Mysql配置文件my.cnf配置及配置参数详解
Mysql配置文件my.cnf 安装了mysql没有my.cnf文件的情况 1、可以把mysql的示例配置文件,如my-medium.cnf拷贝到/etc/my.cnf,再去修改/etc/my.cnf的配置/usr/share/doc/MySQL-server-5.5.38/my-medium.cnf(Example MySQL config file for medium systems...
分类:数据库   时间:2015-05-16 13:29:19    阅读次数:194
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!