Showing 3 of 3 questions
You're given a string of characters and a limit on how many times each character can repeat consecutively. Build the lexicographically largest string possible while respecting this repeat limit.
#1. Construct String With Repeat Limit
Find the number of ways to color an N by 3 grid using three different colors. No two adjacent cells, sharing a side, can have the same color.
#2. Number of Ways to Paint N × 3 Grid
Determine if a string is a palindrome after removing at most one character. Consider both left and right removals when checking for palindrome validity.
#3. Valid Palindrome II
Page 1 of 1 · 3 total