Sufficiently different string
CodeChefOpen on judge ↗
You are teaching students to generate strings consisting of **unique** lowercase Latin characters (a-z). You give an example reference string $s$ to the students. You notice that your students just copy-paste the reference string instead of creating their own string. So, you tweak the requirements for strings submitted by the students. Let us define a function $F(s, t)$ where $s$ and $t$ are str
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