We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c9e52c commit 6fbe910Copy full SHA for 6fbe910
src/algorithm_exercises_csharp/hackerrank/warmup/TimeConversion.cs
@@ -15,7 +15,7 @@ public static string timeConversion(string _s)
15
meridian = meridian.ToLower();
16
17
string time_str = _s[0..(_s.Length - 2)];
18
- List<string> time = new(time_str.Split(":"));
+ List<string> time = [.. time_str.Split(":")];
19
20
int hour = Int32.Parse(time[0]);
21
0 commit comments