
LeetOJ平台
drCoding
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Reverse Integer(C++)
7.Reverse digits of an integer.Problem descriptions:Example1: x = 123, return 321Example2: x = -123, return -321Difficulty:Easyclass Solution {public: int reverse(int x) {原创 2016-06-30 15:50:37 · 472 阅读 · 0 评论 -
Happy Number(C++)
class Solution {public: bool isHappy(int n) { bool bResult = false;int sum = 0;int tmpnum = n;do{int bit1 = tmpnum % 10;tmpnum = tmpnum/10;int bit2 = tmpnum % 10;sum =原创 2016-06-21 16:38:45 · 906 阅读 · 0 评论 -
Excel Sheet Column Number(C++)
171.Excel Sheet Column NumberProblem description:Given a column title as appear in an Excel sheet, return its corresponding column number.For example: A -> 1 B -> 2 C -> 3原创 2016-06-21 17:11:29 · 289 阅读 · 0 评论 -
Excel Sheet Column Title(C++)
168.Excel Sheet Column TitleProblem description:Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C原创 2016-06-22 08:39:26 · 302 阅读 · 0 评论 -
Longest substring without repeat(C++)
3.Longest Substring Without RepeatProblem description:Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "ab原创 2016-06-23 14:50:56 · 456 阅读 · 0 评论