Hash Table

Two Sum LeetCode Solution

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice.

Two Sum LeetCode Solution Read More »

Leetcode Solution

Substring with Concatenation of All Words LeetCode Solution

You are given a string s and an array of strings words. All the strings of words are of the same length. Return the starting indices of all the concatenated substrings in s. You can return the answer in any order.

Substring with Concatenation of All Words LeetCode Solution Read More »

Leetcode Solution
Scroll to Top