From 1e973f5a9e43ae4239eeefa86ea2046a209f7aa6 Mon Sep 17 00:00:00 2001 From: Roman Pytkov Date: Tue, 24 Mar 2026 22:29:36 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B0=D1=87=D0=B0=D0=BB=D0=BE=202906?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2906. Construct Product Matrix.csproj | 11 ++++++++++ 2906. Construct Product Matrix/Program.cs | 2 ++ Leetcode.sln | 14 ++++++++++++ create_project.sh | 22 +++++++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 2906. Construct Product Matrix/2906. Construct Product Matrix.csproj create mode 100644 2906. Construct Product Matrix/Program.cs create mode 100644 create_project.sh diff --git a/2906. Construct Product Matrix/2906. Construct Product Matrix.csproj b/2906. Construct Product Matrix/2906. Construct Product Matrix.csproj new file mode 100644 index 0000000..1708b7d --- /dev/null +++ b/2906. Construct Product Matrix/2906. Construct Product Matrix.csproj @@ -0,0 +1,11 @@ + + + + Exe + net10.0 + _2906._Construct_Product_Matrix + enable + enable + + + diff --git a/2906. Construct Product Matrix/Program.cs b/2906. Construct Product Matrix/Program.cs new file mode 100644 index 0000000..3751555 --- /dev/null +++ b/2906. Construct Product Matrix/Program.cs @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/Leetcode.sln b/Leetcode.sln index c25662f..f9c5504 100644 --- a/Leetcode.sln +++ b/Leetcode.sln @@ -179,6 +179,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "5. Longest Palindromic Subs EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "10. Regular Expression Matching", "10. Regular Expression Matching\10. Regular Expression Matching.csproj", "{0A6CECBE-AD75-4829-AAB2-D6D29EEECEB5}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "2906. Construct Product Matrix", "2906. Construct Product Matrix\2906. Construct Product Matrix.csproj", "{D4E00D31-9A2A-402F-AF77-E4B7DB8182C9}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -1245,6 +1247,18 @@ Global {0A6CECBE-AD75-4829-AAB2-D6D29EEECEB5}.Release|x64.Build.0 = Release|Any CPU {0A6CECBE-AD75-4829-AAB2-D6D29EEECEB5}.Release|x86.ActiveCfg = Release|Any CPU {0A6CECBE-AD75-4829-AAB2-D6D29EEECEB5}.Release|x86.Build.0 = Release|Any CPU + {D4E00D31-9A2A-402F-AF77-E4B7DB8182C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D4E00D31-9A2A-402F-AF77-E4B7DB8182C9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D4E00D31-9A2A-402F-AF77-E4B7DB8182C9}.Debug|x64.ActiveCfg = Debug|Any CPU + {D4E00D31-9A2A-402F-AF77-E4B7DB8182C9}.Debug|x64.Build.0 = Debug|Any CPU + {D4E00D31-9A2A-402F-AF77-E4B7DB8182C9}.Debug|x86.ActiveCfg = Debug|Any CPU + {D4E00D31-9A2A-402F-AF77-E4B7DB8182C9}.Debug|x86.Build.0 = Debug|Any CPU + {D4E00D31-9A2A-402F-AF77-E4B7DB8182C9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D4E00D31-9A2A-402F-AF77-E4B7DB8182C9}.Release|Any CPU.Build.0 = Release|Any CPU + {D4E00D31-9A2A-402F-AF77-E4B7DB8182C9}.Release|x64.ActiveCfg = Release|Any CPU + {D4E00D31-9A2A-402F-AF77-E4B7DB8182C9}.Release|x64.Build.0 = Release|Any CPU + {D4E00D31-9A2A-402F-AF77-E4B7DB8182C9}.Release|x86.ActiveCfg = Release|Any CPU + {D4E00D31-9A2A-402F-AF77-E4B7DB8182C9}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/create_project.sh b/create_project.sh new file mode 100644 index 0000000..93a7a07 --- /dev/null +++ b/create_project.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +set -euo pipefail + +if [[ $# -lt 1 ]]; then + echo "Usage: $0 \"Project Name\"" + exit 1 +fi + +project_name="$1" + +if [[ -z "$project_name" ]]; then + echo "Project name cannot be empty" + exit 1 +fi + +if [[ -d "$project_name" ]]; then + echo "Directory already exists: $project_name" + exit 1 +fi + +dotnet new console -n "$project_name" +dotnet sln add "$project_name"