---
# System prepended metadata

title: HackMD night theme

---

# HackMD night theme
###### tags: HackMD night

# h1
* TODO list

    - [ ]   Google
    - [ ]   Firefox
    - [ ]   Safari

## h2
* Code
```python
class Solution(object):
    def longestPalindrome(self, s):
        """
        :type s: str
        :rtype: str
        """
        def expand(s, left, right):    
            while left>=0 and right<len(s) and s[left] == s[right]:
                left -= 1
                right += 1
            return right-left-1

        start = 0
        end = 0

        for i in range(len(s)):
            len1 = expand(s, i, i)
            len2 = expand(s, i, i+1)
            max_len = max(len1, len2)
           
            if max_len > end - start:
                start = i - (max_len-1)/2
                end = i + max_len/2
        return s[start:end+1]
```

### h3
* Table

|Name |Quantity|
|-----|--------|
|Apple|3       |
|Egg  |12      |
|Tom  |2       |
|Mary |8       |
|ANdy |6       |

#### h4
* Link
[HackMD night theme](https://hackmd.io/@jPrziNQ8TyygUFkpS-tiEQ/SJYKYFNRL)
