Skip to content

Commit 20f3445

Browse files
committed
007-008
1 parent a637663 commit 20f3445

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

Algorithms/ReverseInteger.cs

2.14 KB
Binary file not shown.

Algorithms/StringtoInteger_atoi.cs

3.69 KB
Binary file not shown.

README.md

-771 Bytes

LeetCode Algorithms

(Notes: ":lock:" means you need to buy a book from Leetcode)

# Title Solution Difficulty
001 Two Sum C# Easy
002 Add Two Numbers C# Medium
003 Longest Substring Without Repeating Characters C# Medium
004 Median of Two Sorted Arrays C# Hard
005 Longest Palindromic Substring C# Medium
006 ZigZag Conversion C# Easy
# Title Solution Difficulty
001 Two Sum C# Easy
002 Add Two Numbers C# Medium
003 Longest Substring Without Repeating Characters C# Medium
004 Median of Two Sorted Arrays C# Hard
005 Longest Palindromic Substring C# Medium
006 ZigZag Conversion C# Easy
007 Reverse Integer C# Easy
008 String to Integer _atoi C# Easy

Scripts/autoinit.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $DIFFCULT = ($HTML.ParsedHtml.getElementsByTagName(‘div’) | Where{ $_.classN
1010
$AUTHOR = $command
1111
$CURRENT_DATE = (Get-Date).ToShortDateString()
1212
$NUM = $QuestionTitle.Split(".")[0].Trim().PadLeft(3).Replace(" ", "0")
13-
$TITLE = $QuestionTitle.Split(".")[1].Trim()
13+
$TITLE = $QuestionTitle.Split(".")[1].Trim().Replace("(", "_").Replace(")", "")
1414
$FILE = $TITLE.Replace(" ", "") + ".cs"
1515

1616
$COMMENT += "$COMMENT_TAG Source : $URL `n"
@@ -38,4 +38,4 @@ $COMMENT += " }`n"
3838
$COMMENT += "}`n"
3939
$COMMENT > ../Algorithms/$FILE
4040

41-
"`n|$NUM|[$TITLE]($URL) | [C#](./Algorithms/$FILE)|$DIFFCULT|" | Out-File -Append ../README.md
41+
"|$NUM|[$TITLE]($URL) | [C#](./Algorithms/$FILE)|$DIFFCULT|" | Out-File -Encoding "utf8" -Append ../README.md

0 commit comments

Comments
 (0)