
leetcode
fendoubashaonian
大学一二年级学习过嵌入式开发板如51,MSP430,STM32,DSP等开发板的编程,硬件电路的设计,三四年级转到Linux操作系统与OpenCV的学习实践,现在在大学里从事机器人的组装,集成,电控,算法的研究。
展开
-
13.Roman to Integer
1、wiki:Roman数字介绍 https://en.wikipedia.org/wiki/Roman_numerals2、 Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 3、 Combination Value IV 4 IX 9 XL 40 X原创 2016-01-03 19:22:18 · 365 阅读 · 0 评论 -
21. Merge Two Sorted Lists
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode *mer原创 2016-01-03 20:43:28 · 291 阅读 · 0 评论 -
258. Add Digits
1、要求 Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only one di原创 2016-01-06 10:27:02 · 353 阅读 · 0 评论 -
67. Add Binary
1.需求 Given two binary strings, return their sum (also a binary string).For example, a = “11” b = “1” Return “100”.2.代码#include <iostream> #include <string>using namespace std;class Solution { publi原创 2016-01-06 15:32:46 · 306 阅读 · 0 评论 -
27. Remove Element
1.要求 Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn’t matter what you leave beyond the new length.2.原创 2016-01-06 17:50:58 · 313 阅读 · 0 评论