Community

Gravatar

Validate Palindrome

Challenges • Asked 2 months ago by Jake

I think for the solution you provided, we must account for the case of the character or letter as well as the whitespaces.<p>So here's my solution:</p><p><code><br>/* jshint esversion: 6 */<br><br>function isPalindrome(str) {<br>if (! isAlphaNumer...


Gravatar

Is An Anagram

Challenges • Asked 2 months ago by Jake

Since the previous challenge already mentioned time complexities. It should be mentioned that the sorting solution is Quasilinear O(n log n) and a linear solution exists. If you create a set from both strings O(n+m) and then check that both string...


Gravatar

Array Intersection

Challenges • Asked 2 months ago by Jake

oh my gosh

Copyright © 2019 All rights reserved - AlgoDaily
Privacy | Terms