SlideShare a Scribd company logo
1 of 1
Download to read offline
Anagram is a word, phrase, or name formed by rearranging the letters of another, such as cinema,
formed from iceman. isAnagram method checks if word1 and word2 are anagram to each other
then return a boolean. each letter in word1 should appear in word2 exact number of times ignore
empty spaces make your code case insensitive Examples: isAnagram("listen", "Silent") ==> true
isAnagram("earth", "heart") ==> true isAnagram("star", "rats") ==> true isAnagram("hi", "bye")

More Related Content

More from adityatimes1

More from adityatimes1 (20)

Anahtar Szckler Okul ncesi eitim sosyal etkileim ibirl.pdf
Anahtar Szckler Okul ncesi eitim sosyal etkileim ibirl.pdfAnahtar Szckler Okul ncesi eitim sosyal etkileim ibirl.pdf
Anahtar Szckler Okul ncesi eitim sosyal etkileim ibirl.pdf
 
answer the question please R27 What are the values of th.pdf
answer the question please  R27 What are the values of th.pdfanswer the question please  R27 What are the values of th.pdf
answer the question please R27 What are the values of th.pdf
 
answer thissocial network analysis Q2 Consider the acq.pdf
answer thissocial network analysis   Q2 Consider the acq.pdfanswer thissocial network analysis   Q2 Consider the acq.pdf
answer thissocial network analysis Q2 Consider the acq.pdf
 
answer this question 4 Consider the following binary comm.pdf
answer this question  4 Consider the following binary comm.pdfanswer this question  4 Consider the following binary comm.pdf
answer this question 4 Consider the following binary comm.pdf
 
Answer the Questions Below 1 Vivian has a patient who has .pdf
Answer the Questions Below 1 Vivian has a patient who has .pdfAnswer the Questions Below 1 Vivian has a patient who has .pdf
Answer the Questions Below 1 Vivian has a patient who has .pdf
 
Answer the questions in your own words In your own words pl.pdf
Answer the questions in your own words In your own words pl.pdfAnswer the questions in your own words In your own words pl.pdf
Answer the questions in your own words In your own words pl.pdf
 
Answer the Questions Below 1 Marta the senior RN is f.pdf
Answer the Questions Below    1 Marta the senior RN is f.pdfAnswer the Questions Below    1 Marta the senior RN is f.pdf
Answer the Questions Below 1 Marta the senior RN is f.pdf
 
Answer the questions from The Comic Book story of Beer Q1.pdf
Answer the questions from The Comic Book story of Beer Q1.pdfAnswer the questions from The Comic Book story of Beer Q1.pdf
Answer the questions from The Comic Book story of Beer Q1.pdf
 
Answer the Questions Below 1 As a patient why is it im.pdf
Answer the Questions Below   1  As a patient why is it im.pdfAnswer the Questions Below   1  As a patient why is it im.pdf
Answer the Questions Below 1 As a patient why is it im.pdf
 
Answer the following questions based on the financial statem.pdf
Answer the following questions based on the financial statem.pdfAnswer the following questions based on the financial statem.pdf
Answer the following questions based on the financial statem.pdf
 
Answer the following questions for the TCP segments 1 Wha.pdf
Answer the following questions for the TCP segments 1  Wha.pdfAnswer the following questions for the TCP segments 1  Wha.pdf
Answer the following questions for the TCP segments 1 Wha.pdf
 
Answer the following questions 1 What are risk factors for.pdf
Answer the following questions 1 What are risk factors for.pdfAnswer the following questions 1 What are risk factors for.pdf
Answer the following questions 1 What are risk factors for.pdf
 
Answer the following question as TrueFalse and very briefly.pdf
Answer the following question as TrueFalse and very briefly.pdfAnswer the following question as TrueFalse and very briefly.pdf
Answer the following question as TrueFalse and very briefly.pdf
 
Answer the following 5 points for spelling and ammar 1 Ex.pdf
Answer the following 5 points for spelling and ammar 1 Ex.pdfAnswer the following 5 points for spelling and ammar 1 Ex.pdf
Answer the following 5 points for spelling and ammar 1 Ex.pdf
 
Answer quickly for a thumbs up thank you Assume you have a.pdf
Answer quickly for a thumbs up thank you Assume you have a.pdfAnswer quickly for a thumbs up thank you Assume you have a.pdf
Answer quickly for a thumbs up thank you Assume you have a.pdf
 
Anna who produces eggs and Syed who produces sperm have.pdf
Anna who produces eggs and Syed who produces sperm have.pdfAnna who produces eggs and Syed who produces sperm have.pdf
Anna who produces eggs and Syed who produces sperm have.pdf
 
Ana Chavarria front office manager of The Times quests for .pdf
Ana Chavarria front office manager of The Times quests for .pdfAna Chavarria front office manager of The Times quests for .pdf
Ana Chavarria front office manager of The Times quests for .pdf
 
Answer EACH of the following six 6 questions with a short .pdf
Answer EACH of the following six 6 questions with a short .pdfAnswer EACH of the following six 6 questions with a short .pdf
Answer EACH of the following six 6 questions with a short .pdf
 
Answer any TWO of the provided questions Each answer should.pdf
Answer any TWO of the provided questions Each answer should.pdfAnswer any TWO of the provided questions Each answer should.pdf
Answer any TWO of the provided questions Each answer should.pdf
 
Answer ALL the questions below How Effective Managers Use I.pdf
Answer ALL the questions below How Effective Managers Use I.pdfAnswer ALL the questions below How Effective Managers Use I.pdf
Answer ALL the questions below How Effective Managers Use I.pdf
 

Recently uploaded

會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 

Anagram is a word phrase or name formed by rearranging the.pdf

  • 1. Anagram is a word, phrase, or name formed by rearranging the letters of another, such as cinema, formed from iceman. isAnagram method checks if word1 and word2 are anagram to each other then return a boolean. each letter in word1 should appear in word2 exact number of times ignore empty spaces make your code case insensitive Examples: isAnagram("listen", "Silent") ==> true isAnagram("earth", "heart") ==> true isAnagram("star", "rats") ==> true isAnagram("hi", "bye")