Given two strings s and t return true


Problem

Given two strings s and t, return true if t is an anagram of s, and false otherwise. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.

Eg1:
Input: s = "anagram", t = "nagaram"
Output: true
Eg2:
Input: s = "rat", t = "car"
Output: false

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Given two strings s and t return true
Reference No:- TGS03332398

Expected delivery within 24 Hours