This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Write a program to solve a Sudoku puzzle by filling the empty cells. | |
Empty cells are indicated by the character '.'. | |
You may assume that there will be only one unique solution. | |
""" | |
class Solution(object): | |
def solveSudoku(self, board): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. | |
""" | |
class Solution(object): | |
def longestPalindrome(self, s): | |
""" |