leetcode
will_zju
这个作者很懒,什么都没留下…
展开
-
leetcode算法题思路源码汇总(200~250题)
202.Happy NumberWrite an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the s...原创 2019-08-03 10:31:10 · 224 阅读 · 0 评论 -
leetcode算法题思路源码汇总(100~150题)---tree的操作
题目:102.Binary Tree Level Order TraversalGiven a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).解题思路:int getTreeTall(struct TreeNod...原创 2019-07-27 11:46:28 · 398 阅读 · 0 评论 -
leetcode算法题思路源码汇总(1~50题)
学而不思则罔,思而不学则殆。学习如逆水行舟,不进则退。平时工作比较繁忙,利用周六与周日空闲时间刷刷算法题,一方面保持编程的手感,一方面可以通过AC系统性地归纳总结,找到解决算法题目的一般思路和方法,当然,最重要的是,时刻准备战斗姿势,可以在机会到来时找到一份心仪的工作。话不多说,进入正题。leetcode题目地址:https://leetcode.com/problemset/t...原创 2019-07-27 10:17:43 · 142 阅读 · 0 评论 -
leetcode算法题思路源码汇总(50~100题)
题目:64.Minimum Path SumGiven amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note:You can only mov...原创 2019-08-11 17:44:17 · 277 阅读 · 0 评论