Skip to content

Latest commit

 

History

History

challenge-62

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Palindrome with maximum "k" deletions

This problem was asked by Google.

Description

Given a string which we can delete at most k, return whether you can make a palindrome.

Example

Input:
  word = "waterrfetawx"
  k = 2

Output: True # Deleting "f" and "x" gives us a palindrome