Skip to content

Instantly share code, notes, and snippets.

View Faiz-zz-zz's full-sized avatar

Faiz Abdul Faiz-zz-zz

View GitHub Profile
"""
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):
"""
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):
"""