Content-Length: 408903 | pFad | http://github.com/LeetCode-in-Net/LeetCode-in-Net/commit/2ed03f9f2be63a93d245e33f74b8c9da51a39a73

56 Improved dependency · LeetCode-in-Net/LeetCode-in-Net@2ed03f9 · GitHub
Skip to content

Commit 2ed03f9

Browse files
authored
Improved dependency
1 parent eeb938f commit 2ed03f9

File tree

5 files changed

+45
-107
lines changed

5 files changed

+45
-107
lines changed

.github/workflows/dotnet-desktop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
dotnet-version: 6.0.x
2020

2121
- name: Setup NuGet
22-
uses: NuGet/setup-nuget@v1.0.5
22+
uses: NuGet/setup-nuget@v1.2.0
2323

2424
- name: Restore dependencies
2525
run: dotnet restore

LeetCodeNet.Tests/Easy/Array/BinarySearch_704_test.cs

Lines changed: 0 additions & 51 deletions
This file was deleted.

LeetCodeNet/Easy/Array/BinarySearch_704.cs

Lines changed: 0 additions & 55 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
1\. Two Sum
2+
3+
Easy
4+
5+
Given an array of integers `nums` and an integer `target`, return _indices of the two numbers such that they add up to `target`_.
6+
7+
You may assume that each input would have **_exactly_ one solution**, and you may not use the _same_ element twice.
8+
9+
You can return the answer in any order.
10+
11+
**Example 1:**
12+
13+
**Input:** nums = [2,7,11,15], target = 9
14+
15+
**Output:** [0,1]
16+
17+
**Explanation:** Because nums[0] + nums[1] == 9, we return [0, 1].
18+
19+
**Example 2:**
20+
21+
**Input:** nums = [3,2,4], target = 6
22+
23+
**Output:** [1,2]
24+
25+
**Example 3:**
26+
27+
**Input:** nums = [3,3], target = 6
28+
29+
**Output:** [0,1]
30+
31+
**Constraints:**
32+
33+
* <code>2 <= nums.length <= 10<sup>4</sup></code>
34+
* <code>-10<sup>9</sup> <= nums[i] <= 10<sup>9</sup></code>
35+
* <code>-10<sup>9</sup> <= target <= 10<sup>9</sup></code>
36+
* **Only one valid answer exists.**
37+
38+
**Follow-up:** Can you come up with an algorithm that is less than <code>O(n<sup>2</sup>)</code> time complexity?

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
# LeetCode-in-Net
2+
3+
[![MIT License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/LeetCode-in-Net/LeetCode-in-Net/blob/main/LICENSE)
4+
[![Dotnet CI](https://github.com/LeetCode-in-Net/LeetCode-in-Net/actions/workflows/dotnet-desktop.yml/badge.svg)](https://github.com/LeetCode-in-Net/LeetCode-in-Net/actions/workflows/dotnet-desktop.yml)
5+
[![](https://img.shields.io/github/stars/LeetCode-in-Net/LeetCode-in-Net?style=flat-square)](https://github.com/LeetCode-in-Net/LeetCode-in-Net)
6+
[![](https://img.shields.io/github/forks/LeetCode-in-Net/LeetCode-in-Net?style=flat-square)](https://github.com/LeetCode-in-Net/LeetCode-in-Net/fork)
7+
28
C#-based LeetCode algorithm problem solutions, regularly updated.

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/LeetCode-in-Net/LeetCode-in-Net/commit/2ed03f9f2be63a93d245e33f74b8c9da51a39a73

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy