String

Problem
Approach

Palindrome Test

Two Pointer Approach

Anagram Test

  • Count of each character in both the strings will be same.

  • Use map or a lookup table.

Last updated