As reported: Walmart SDE-III round 1 (Bangalore, Apr 2026), a 60-minute DSA round with AI tools disabled: LeetCode 242 Valid Anagram. Working code passing all test cases was expected.
Given two strings s and t, return true if t is an anagram of s (same letters with the same counts, in any order), else false.
This is LeetCode 242 — Valid Anagram.
Example
s = "anagram", t = "nagaram" -> true
s = "rat", t = "car" -> false
Constraints: 1 ≤ s.length, t.length ≤ 5·10^4; lowercase English letters.
Code runner format: one JSON value per line: s, then t. Implement isAnagram(s, t); the harness prints true or false.