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.
2 parents 2c9e52c + 6fbe910 commit 24baa4dCopy full SHA for 24baa4d
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