Before starting the topic let me tell you why I started writing about computer networks.
I am currently pursuing my final year Engineering degree. I…
Given two strings, write a method to decide if one is a permutation of the other.
The following is a Swift solution to question 1.2 in Cracking the Co…
In this post, I'll analyze an interview question. The purpose of these questions is to test candidates' technical knowledge, coding ability, problem-s…
The problem is taken from 88. Merge Sorted Array.
In this approach, we use a HashMap(Integer, Integer), where the first place would ho…
The problem is taken from 53. Maximum Subarray.
Brute force approach
For each element in the array we need to find all possible contiguous subarray t…