[LeetCode][Python]16: 3Sum Closest
摘要:# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'16: 3Sum Closesthttps://oj.leetcode.com/problems/3sum-closest/Given an array S of n intege...
阅读全文
[LeetCode][Python]15:3Sum
摘要:# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'15: 3Sumhttps://oj.leetcode.com/problems/3sum/Given an array S of n integers, are there el...
阅读全文
[LeetCode][Python]14: Longest Common Prefix
摘要:# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/longest-common-prefix/14: Longest Common PrefixWrite a fu...
阅读全文
[LeetCode][Python]Roman to Integer
摘要:# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/roman-to-integer/Roman to IntegerGiven a roman numeral, c...
阅读全文
[LeetCode][Python]Integer to Roman
摘要:# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/integer-to-roman/Integer to RomanGiven an integer, conver...
阅读全文
[Leetcode][Python][DP]Regular Expression Matching
摘要:# -*- coding: utf8 -*-'''https://oj.leetcode.com/problems/regular-expression-matching/Implement regular expression matching with support for '.' and '...
阅读全文
[LeetCode][Python]Container With Most Water
摘要:# -*- coding: utf8 -*-'''https://oj.leetcode.com/problems/container-with-most-water/Given n non-negative integers a1, a2, ..., an, where each represen...
阅读全文
[LeetCode][Python]Regular Expression Matching
摘要:# -*- coding: utf8 -*-'''https://oj.leetcode.com/problems/regular-expression-matching/Implement regular expression matching with support for '.' and '...
阅读全文
[LeetCode][Python]Palindrome Number
摘要:# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/palindrome-number/Determine whether an integer is a palin...
阅读全文
[LeetCode][Python]Largest Number
摘要:# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/largest-number/Given a list of non negative integers, arr...
阅读全文
[LeetCode][Python]String to Integer (atoi)
摘要:# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/string-to-integer-atoi/Implement atoi to convert a string...
阅读全文
[LeetCode][Python]Reverse Integer
摘要:# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/reverse-integer/Reverse digits of an integer.Example1: x ...
阅读全文
[LeetCode][Python]ZigZag Conversion
摘要:# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/zigzag-conversion/The string "PAYPALISHIRING" is written ...
阅读全文
[LeetCode][Python]Longest Palindromic Substring
摘要:# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/longest-palindromic-substring/Given a string S, find the ...
阅读全文
[LeetCode][Python]Median of Two Sorted Arrays
摘要:# -*- coding: utf8 -*-'''https://oj.leetcode.com/problems/median-of-two-sorted-arrays/There are two sorted arrays A and B of size m and n respectively...
阅读全文
[LeetCode][Python]Longest Substring Without Repeating Characters
摘要:# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/Given a st...
阅读全文
[LeetCode][Python]Add Two Numbers
摘要:# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/add-two-numbers/You are given two linked lists representi...
阅读全文
[LeetCode][Python]Tow Sum
摘要:# -*- coding: utf8 -*-'''https://oj.leetcode.com/problems/two-sum/Given an array of integers, find two numbers such that they add up to a specific tar...
阅读全文