Pinned Loading
-
Find all Anagrams. Given a very long...
Find all Anagrams. Given a very long list of words: find all the sets of anagrams, print each set, print the total quantity of sets and print the total quantity of words. 1using System;
2using System.Collections.Concurrent;
3using System.Collections.Generic;
4using System.Diagnostics;
5using System.IO;
-
You will be provided with an initial...
You will be provided with an initial array (the first argument in the destroyer function), followed by one or more arguments. Remove all elements from the initial array that are of the same value as these arguments. 1//javascript
2function destroyer(arr) {3var argLen = arguments.length;
4console.log(argLen);
5var arr2 = [];
-
One of the simplest and most widely ...
One of the simplest and most widely known ciphers is a Caesar cipher, also known as a shift cipher 1//javascript
2/*One of the simplest and most widely known ciphers is a Caesar cipher, also known as a shift cipher. In a shift cipher the meanings of the letters are shifted by some set amount.
34A common modern use is the ROT13 cipher, where the values of the letters are shifted by 13 places. Thus 'A' ↔ 'N', 'B' ↔ 'O' and so on.
5 -
Return an array consisting of the la...
Return an array consisting of the largest number from each provided sub-array. For simplicity, the provided array will contain exactly 4 sub-arrays. 1//javascript
2function largestOfOne(arr) {3var largest = 0;
4console.log(arr.length);
5for (i = 0; i < arr.length; i++) { -
Return true if the passed string is ...
Return true if the passed string is a valid US phone number. The user may fill out the form field any way they choose as long as it is a valid US number. The following are examples of valid formats for US numbers (refer to the tests below for other variants): 555-555-5555 ||| (555)555-5555 ||| (555) 555-5555 ||| 555 555 5555 ||| 5555555555 ||| 1 555 555 5555 1//javascript
2function telephoneCheck(str) {34if (!balancedParens(str)){5return false;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.