dynamic_programming.abbreviation ================================ .. py:module:: dynamic_programming.abbreviation .. autoapi-nested-parse:: https://www.hackerrank.com/challenges/abbr/problem You can perform the following operation on some string, : 1. Capitalize zero or more of 's lowercase letters at some index i (i.e., make them uppercase). 2. Delete all of the remaining lowercase letters in . Example: a=daBcd and b="ABC" daBcd -> capitalize a and c(dABCd) -> remove d (ABC) Functions --------- .. autoapisummary:: dynamic_programming.abbreviation.abbr Module Contents --------------- .. py:function:: abbr(a: str, b: str) -> bool >>> abbr("daBcd", "ABC") True >>> abbr("dBcd", "ABC") False