You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Frequency-Counter/anagram-frequency-check.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
-
// Given 2 strings, write a function to determine if the second string is an anagram of the first. An anagram is a word, phrase, or name formed by rearranging the letters of another, such as cinema, formed from iceman.
1
+
// Given 2 strings, write a function to determine if the second string is an anagram of the first. An anagram is a word,
2
+
// phrase, or name formed by rearranging the letters of another, such as cinema, formed from iceman.
Copy file name to clipboardExpand all lines: Frequency-Counter/compare-two-arrays-optimized.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
-
// Write a function called the same. Which accepts 2 arrays. The function should return true if every value in the array has its corresponding value squared in the second array. The frequency of values must be the same.
1
+
// Write a function called the same. Which accepts 2 arrays. The function should return true if every value in the array
2
+
// has its corresponding value squared in the second array. The frequency of values must be the same.
2
3
3
4
constarr1=[1,2,3]// Frequency {"1":1, "2":1, "3":1}
4
5
constarr2=[1,9,4]// Frequency {"1":1, "9":1, "4":1}
Copy file name to clipboardExpand all lines: Frequency-Counter/compare-two-arrays.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
-
// Write a function called the same. Which accepts 2 arrays. The function should return true if every value in the array has its corresponding value squared in the second array. The frequency of values must be the same.
1
+
// Write a function called the same. Which accepts 2 arrays. The function should return true if every value in the array
2
+
// has its corresponding value squared in the second array. The frequency of values must be the same.
0 commit comments