Day6. Namespace style

This commit is contained in:
Electrominch
2022-10-07 16:36:27 +03:00
parent 62104da8f1
commit 5cae083979
51 changed files with 589 additions and 202 deletions

View File

@@ -0,0 +1,14 @@
namespace _344._Reverse_String;
public class Solution
{
public void ReverseString<T>(T[] arr)
{
for (int i = 0; i < arr.Length / 2; i++)
{
T buf = arr[i];
arr[i] = arr[arr.Length - 1 - i];
arr[arr.Length - 1 - i] = buf;
}
}
}