上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: Problem statement: There's a tree, a squirrel, and several nuts. Positions are represented by the cells in a 2D grid. Your goal is to find the minimal 阅读全文
posted @ 2017-05-08 10:10 蓝色地中海 阅读(291) 评论(0) 推荐(0)
摘要: Problem statement: There is an m by n grid with a ball. Given the start coordinate (i,j) of the ball, you can move the ball to adjacent cell or cross 阅读全文
posted @ 2017-05-08 08:44 蓝色地中海 阅读(656) 评论(0) 推荐(0)
摘要: Problem statement: LeetCode wants to give one of its best employees the option to travel among N cities to collect algorithm problems. But all work an 阅读全文
posted @ 2017-05-07 01:43 蓝色地中海 阅读(524) 评论(2) 推荐(0)
摘要: Q1: 520. Detect Capital Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word 阅读全文
posted @ 2017-02-20 06:19 蓝色地中海 阅读(238) 评论(0) 推荐(0)
摘要: Jump Game Problem statement: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in th 阅读全文
posted @ 2017-02-19 09:45 蓝色地中海 阅读(183) 评论(0) 推荐(0)
摘要: Problem Statement: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For ex 阅读全文
posted @ 2017-02-19 02:18 蓝色地中海 阅读(224) 评论(0) 推荐(0)
摘要: Problem Statment: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example: Given the below 阅读全文
posted @ 2017-02-16 09:09 蓝色地中海 阅读(146) 评论(0) 推荐(0)
摘要: Problem Statement: Path sum i 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 th 阅读全文
posted @ 2017-02-16 09:00 蓝色地中海 阅读(150) 评论(0) 推荐(0)
摘要: Problem statement Elementary knowledge: There is a popular question when I seeked my job at Beijing: swap the value of two numbers without allocate a 阅读全文
posted @ 2017-02-15 01:04 蓝色地中海 阅读(218) 评论(0) 推荐(0)
摘要: Problem Statement Given a binary tree, return the preorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, return [1,2,3]. No 阅读全文
posted @ 2017-02-11 06:59 蓝色地中海 阅读(152) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 下一页