← All problemsSign in

Get unique characters

A string of characters including only alphabets (small letters) is provided as an input. Each character appearing in the string has to be inserted in a singly linked list, say SLL, as per the following rules: - If a character, say ch1, is not present in SLL then insert ch1 at the end. - Otherwise, remove ch1 first and then re-insert it in the middle of SLL. - In case some character, say ch2, is a

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start