Skip to content

Latest commit

 

History

History

323-kPal

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

kPal

Interview question of the issue #323 of rendezvous with cassidoo.

The Question

Given a string s, you are allowed to delete at most k characters. Find if the string can be a palindrome after deleting at most k characters.

Example:

> kPal('abcweca', 2)
> true

> kPal('acxcb', 1)
> false

Installing & Running

Just pnpm i to install all dependencies and then pnpm t to run the tests!