摘要:
原题目: A message containing letters from A-Z is being encoded to numbers using the following mapping: Given an encoded message containing digits, determ 阅读全文
摘要:
Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 5, 阅读全文
摘要:
最近在做实验的时候,需要配置SVO,下面讲讲其中的过程以及遇到的问题: 首先说明配置环境:Ubuntu 14.04 + ROS indigo,ROS的安装我参考了ROS的官网上给出的教程:http://wiki.ros.org/indigo/Installation/Ubuntu 安装一气呵成,中途 阅读全文
摘要:
Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. 示例: Note: 题解: 看着题目的注意事项就 阅读全文
摘要:
题目: Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum 阅读全文
摘要:
本周继续练习动态规划的相关题目。 题目: In the computer world, use restricted resource you have to generate maximum benefit is what we always want to pursue. For now, su 阅读全文
摘要:
本周课堂上学习的是动态规划,因此在LeetCode上找到相应的题进行练习。 题目: Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum le 阅读全文
摘要:
本周选择了贪心算法类的题型加以巩固,在LeetCode中难度系数为Hard。 题目: Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Venture Capital, L 阅读全文
摘要:
本周依旧是做与图论相关的题目,作为对图论知识的巩固。 题目:279. Perfect Squares Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 阅读全文
摘要:
本周学习了DFS,因此在LeetCode中挑选了一道关于DFS的题目作为巩固。 题目:200. Number of Islands Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An 阅读全文