![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
个人
文章平均质量分 50
haiboshiaaa
这个作者很懒,什么都没留下…
展开
-
杯具之后
今天得知了自己杯具的消息。 有点不爽,觉得自己可以做的更好,每次都是这么心不在焉,无所谓的态度。没有哪次真正用心去做。 失败也难怪。 我所能做的只有抓紧每一分钟时间了。自己的视野足够宽阔,只是不愿意去努力,也没有任何办法。 加油吧少年。 4月要完成的工作: 1.毕设写出点东西。 2.数据结构掌握好,每篇代码都写三遍 3.托福单词背完,熟记 4.多读读书原创 2013-04-12 21:16:37 · 425 阅读 · 0 评论 -
1337c+word.3/8/2013
首先是弱智题: Path Sum Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. 非常简单的一道题,只是二叉树的遍历原创 2013-08-03 22:18:51 · 598 阅读 · 0 评论 -
1337code+没有背单词+游戏
今天感觉好累,起床后玩了一下午游戏。 晚上和lc,lsy,wtc一起吃饭,李骋请的,我们一起为他饯行。lc,一路顺风! 晚上回来和爸妈聊了一晚上。 现在来写今天code,然后发现今天单词没背,程序没写,dip也没学习,bst更别说了,唉!明天吧! 今天这个题目想了半天,结果网上一查还真是被自己pass的思路,哈希!!! 题目如下 Given an uns原创 2013-08-04 23:35:23 · 436 阅读 · 0 评论 -
1337code
水题 计算 int sqrt(int x) 代码如下: int sqrt(int x){ double y = x; while(abs(y*y -x)>0.1){ y = (y + x/y) / 2; } return (int)y; } 牛顿迭代法(Newton's method)又称为牛顿-拉夫逊方法(Newt原创 2013-08-05 22:34:37 · 454 阅读 · 0 评论 -
只能说把递归的思路用到极致 了。。
class Solution { public: bool isPalindrome(int x) { // Start typing your C/C++ solution below // DO NOT write int main() function if (x < 0) return false;原创 2013-08-08 12:07:34 · 451 阅读 · 0 评论