LeetCode
柏白
未来的渲染引擎顾问
展开
-
[LeetCode] [C++] [002] Add Two Numbers( 两数相加)
//// LeetCode_2_AddTwoNumbers.cpp// arithmetic//You are given two non-empty linked lists representing two non-negative integers.//The digits are stored in reverse order and each of their nodes c...转载 2018-07-02 10:21:25 · 334 阅读 · 0 评论 -
[LeetCode] [C++] [003]Longest Substring Without Repeating Characters(最长非重复子字符串)
//// LeetCode_3_LengthOfLongestSubstring.cpp// arithmetic//// Created by li on 2018/4/11.// Copyright © 2018年 li. All rights reserved.//给定一个字符串,找出不含有重复字符的 最长子串 的长度。////示例:////给定 "abcabcb...转载 2018-07-02 10:21:46 · 249 阅读 · 0 评论 -
[LeetCode] [C++] [007]Reverse Integer(反转整数)
//// LeetCode_7_ReverseInteger.cpp// arithmetic//// Created by li on 2018/5/24.// Copyright © 2018年 li. All rights reserved.////原题//// Reverse digits of an integer.// Example1: x = 123...转载 2018-07-02 10:22:07 · 188 阅读 · 0 评论 -
[LeetCode] [C++] [006]ZigZag Conversion(Z字型转换)
//// LeetCode_6_ZigZagConversion.cpp// arithmetic//// Created by li on 2018/5/23.// Copyright © 2018年 li. All rights reserved.////原题//// The string “PAYPALISHIRING” is written in a zigza...转载 2018-07-02 10:22:29 · 309 阅读 · 0 评论 -
[LeetCode] [C++] [005]Longest Palindromic Substring(最长回文子串)
//// LeetCode_5_LongestPalindrome.cpp// arithmetic//// Created by li on 2018/5/15.// Copyright © 2018年 li. All rights reserved.//原题//// Given a string S, find the longest palindromic subs...转载 2018-07-02 10:22:49 · 249 阅读 · 0 评论 -
[LeetCode] [C++] [004]Median of Two Sorted Arrays(两个排序数组的中位数)
////// LeetCode_4_MedianOfTwoSortedArrays.cpp// arithmetic//// Created by li on 2018/4/16.// Copyright © 2018年 li. All rights reserved.////给定两个大小为 m 和 n 的有序数组 nums1 和 nums2 。////请找出这两个有序数...转载 2018-07-02 10:23:07 · 209 阅读 · 0 评论 -
[LeetCode] [C++] [008]String to Integer (字符串转整数atoi)
//// LeetCode_8_StringToInteger.cpp// arithmetic//// Created by li on 2018/7/2.// Copyright © 2018年 li. All rights reserved.// 8. 字符串转整数 (atoi)//////在找到第一个非空字符之前,需要移除掉字符串中的空格字符。如果第一个非空字符是...转载 2018-07-02 14:24:25 · 237 阅读 · 0 评论 -
[LeetCode] [C++] [009]Palindrome Number (回文数)
// // LeetCode_9_IsPalindrome.cpp // arithmetic // // Created by li on 2018/8/9. // Copyright © 2018年 li. All rights reserved. // //9. 回文数 //判断一个整数是否是回文数。回文数是指正序(从左向右)和倒序(从右向左)读都是一样的整数。 /...转载 2018-08-09 11:47:20 · 261 阅读 · 0 评论