Ben and String
CodeChefOpen on judge ↗
Ben loves to play with Strings and so his friends gifted him a string S of length N on his birthday. They also know that he loves to be challenged and so they give him Q queries. There are two types of queries. 1. Given two integers L and R, Ben has to find if the substring in the range L to R can be permuted(rearranged in any order) to form a palindrome or not. 2. Given integer I and character
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start