240 发简信
IP属地:北京
  • 动态规划(dynamic programming)(上)

    本文根据Hawstein的BLOG,加入了自己的一些代码实现和理解。概括:动态规划算法通常基于一个递推公式及一个或多个初始状态。 当前子问题的解...

  • Palindrome Number

    Determine whether an integer is a palindrome. Do this without extra spac...

  • String to Integer (atoi)

    Implement atoi to convert a string to an integer.实现atoi,把一个字符串转换为整数。Hint...

  • Reverse Integer

    Reverse digits of an integer.反转整数数字。Example1: x = 123, return 321Example...

  • ZigZag Conversion

    The string "PAYPALISHIRING" is written in a zigzag pattern on a given nu...

  • Resize,w 360,h 240
    Longest Palindromic Substring

    Given a string S, find the longest palindromic substring in S. You may a...

  • Median of Two Sorted Arrays

    There are two sorted arrays nums1 and nums2 of size m and n respectively...

  • Longest Substring Without Repeating Characters

    Given a string, find the length of the longest substring without repeati...

  • Add Two Num

    You are given two linked lists representing two non-negative numbers. Th...