DEV Community

Kishore kunal
Kishore kunal

Posted on

#Day 5 of Solving 450 questions[18/450]

📅Day 5 : March 24,2022
Problems solved today :
Median of Two Sorted Arrays
Image description

Image description

[valid-palindrome](https://leetcode.com/problems/valid-palindrome/submissions/

Intersection of Three Sorted Arrays

Things I learned Today:

Apparently, Regex cant be used to determine a palindrome according the Computational Theory(Stack overflow) or can it?
(1)https://leetcode.com/problems/valid-palindrome/discuss/1879713/Isalnum() --->Many ways to do it, but this is cooler.
(2) For last question ,be it easy, we needed to find an optimal soultion:
a)XOR operation is one way.
Image description
(b)Making Dictionary and Counting frequencies

Image description
Much Faster than traversing through 3 loops!

Top comments (0)