Leetcode With Csharp(C#) - Introduction

Introduction about Leetcode With Csharp series tutorial

Posted by Yiling on June 17, 2020

Introduction About this Series

I am experienced in Python3 but a starter of C#, and found there are too few C# solutions for Leetcode problems, so I decide to write those tutorials for those who want to learn algorithms & data structure through C#.

This collections records my daily practice and throughts about Leetcode problems through C#, including all difficulties. Please tell me if you got some benefit or have any problem with my solutions(Even typo, English grammer problems, etc. I am not a native English speaker), I will be happy to hear you :)

The basic grammer & environment setup could be found on those sources:

C#刷遍Leetcode面试题系列连载(1) - 入门与工具简介(Simplified Chinese, please open Google Translate if you cannot read it)

These source introduces how to set up C# environment for Leetcode problems and how to test it.

https://www.cnblogs.com/enjoy233/p/csharp_leetcode_series_1.html

Microsoft C# offical guide

You can run few C# lines there without building the whole project ans watch the output. You can also find all libraries and their input/output.

https://docs.microsoft.com/en-us/dotnet/csharp/

Links

Easy

Leetcode 1. Two Sum

https://610yilingliu.github.io/2020/06/17/Leetcode-1-TwoSum-Csharp/

Leetcode 7. Reverse Integer

https://610yilingliu.github.io/2020/06/19/Leetcode-7-ReverseInteger-Csharp/

Leetcode 520. Detect Capital

https://610yilingliu.github.io/2020/06/23/Leetcode-520-DetectCapitalCsharp/

Leetcode 598. Range Addition II

https://610yilingliu.github.io/2020/07/04/Leetcode-598-RangeAdditionIIMultisol/

Medium

Leetcode 2. Add Two Numbers

https://610yilingliu.github.io/2020/06/17/Leetcode-2-AddTwoNumbers-Csharp/

Leetcode 3. Longest Substring Without Repeating Characters

https://610yilingliu.github.io/2020/06/18/Leetcode-3-LongestSubstringWithoutRrepeatingCharactersCsharp/

Leetcode 356. Line Reflection

https://610yilingliu.github.io/2020/06/27/Leetcode-356-LineReflection-Csharp/

Leetcode 413. Arithmetic Slices

https://610yilingliu.github.io/2020/06/28/Leetcode-413-ArithmeticSlices-Csharp/

Leetcode 540. Single Element in a Sorted Array

https://610yilingliu.github.io/2020/06/29/Leetcode-540-SingleElementinaSortedArrayCsharp/

Hard