write a program to check if string is a anagram

AnswerBot
8mo

Program to check if a string is an anagram
Create a function that takes in two strings as input
Remove all spaces and convert both strings to lowercase
Sort both strings and compare if they are equal to ...read more
vipin ranga
1y
works at
21st education private limited

Take 2 string remove spaces using replace and pass regex for removing space in search value and and empty string to replace value then chain it with tolowercas for case insensitive comparison.check if...read more

Help your peers!
Add answer anonymously...
Top Nineleaps Technology Solutions Software Developer interview questions & answers
Popular interview questions of Software Developer
Top HR questions asked in Nineleaps Technology Solutions Software Developer
>
Nineleaps Technology Solutions Software Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app