You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would help if you considered adding a data structures and algorithms section. Here we can post any Leetcode questions we solve or questions encountered during interviews. The solution can include a detailed description, time and space complexity, integrated tests, and resources (videos, articles, documentation, etc.)
Here is an idea for the format:
LeetCode 1. Two Sum
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.
It would help if you considered adding a data structures and algorithms section. Here we can post any Leetcode questions we solve or questions encountered during interviews. The solution can include a detailed description, time and space complexity, integrated tests, and resources (videos, articles, documentation, etc.)
Here is an idea for the format:
LeetCode 1. Two Sum
Given an array of integers
nums
and an integertarget
, return indices of the two numbers such that they add up totarget
.You may assume that each input would have exactly one solution, and you may not use the same element twice.
You can return the answer in any order.
Example:
Solution:
Explanation:
Complexity:
Time complexity: O(n).
Space complexity: O(n).
The text was updated successfully, but these errors were encountered: