码迷,mamicode.com
首页 >  
搜索关键字:could not find modul    ( 29088个结果
hackerrank---Find a string
题目链接在字符串a中查找字符串b出现的次数...貌似不可以用a.count()附上代码:1 a = raw_input().strip()2 b = raw_input().strip()3 cnt = 0;4 for i in xrange(len(a)):5 cnt += 1 if a....
分类:其他好文   时间:2014-05-14 04:13:06    阅读次数:308
【LeetCode】Rotate Image
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路:先将矩阵转置,然后将第一列与最后...
分类:其他好文   时间:2014-05-14 03:09:35    阅读次数:225
clang 简单的str_replace实现
自己写的一段://goolchar* str_replace(char* source, const char* find, const char* replace){ if (source == NULL || find == NULL || find == "") return strdup.....
分类:其他好文   时间:2014-05-12 02:42:20    阅读次数:418
find命令
ind是一个基于查找的功能非常强大的命令,相对而言,它的使用也相对较为复杂,参数也比较多,所以在这里将给把它们分类列出,它的基本语法如下:find[PATH][option][action]#与时间有关的参数:-mtimen:n为数字,意思为在n天之前的“一天内”被更改过的文件;-mtime+n:列...
分类:其他好文   时间:2014-05-12 02:01:20    阅读次数:327
[leetcode]Sum Root to Leaf Numbers @ Python
原题地址:http://oj.leetcode.com/problems/sum-root-to-leaf-numbers/题意:Given a binary tree containing digits from0-9only, each root-to-leaf path could repre...
分类:编程语言   时间:2014-05-12 01:28:30    阅读次数:440
Ubuntu12.04开机报错:could not update ICEauthority file /home/user/.ICEauthority 解决
产生原因:误将/home/user目录的用户变成了root,所以无法更新ICE导致开机警告解决方法:1.使用guest登录2.打开一个console3.Ctrl + Alt +F1 进入安全模式4.使用你的用户名登录5.sudo chown -R user:user/home/$user/.ICEa...
分类:其他好文   时间:2014-05-12 00:15:41    阅读次数:459
POJ 2079 凸包最大内接三角形
Triangle Time Limit: 3000MS   Memory Limit: 30000K Total Submissions: 8038   Accepted: 2375 Description Given n distinct points on a plane, your task is to find the triangl...
分类:其他好文   时间:2014-05-11 06:36:44    阅读次数:425
[LeetCode]Binary Tree Maximum Path Sum, 解题报告
题目 Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary tree,...
分类:其他好文   时间:2014-05-11 03:25:24    阅读次数:298
Leetcode 树 Maximum Depth of Binary Tree
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie Maximum Depth of Binary Tree  Total Accepted: 16605 Total Submissions: 38287 Given a binary tree, find its maximum depth. ...
分类:其他好文   时间:2014-05-11 01:58:31    阅读次数:441
find命令小结
find命令小结find命令用于在系统中查找文件,配合 -exec 选项或 xargs命令还能对查找到得文件执行一些列的自动化操作。基本格式:find [-H] [-L] [-P] [path...] [expression]path指定起始搜索路径,可以指定多个,exprssion表示搜索表达式,...
分类:其他好文   时间:2014-05-10 06:53:44    阅读次数:324
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!