File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
algorithm_exercises_csharp/hackerrank/interview_preparation_kit/arrays
algorithm_exercises_csharp_test/hackerrank/warmup Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -43,16 +43,16 @@ public static int minimumBribesCalculate(List<int> q)
43
43
/**
44
44
* minimumBribes.
45
45
*/
46
- public static String minimumBribesText ( List < int > q )
46
+ public static string minimumBribesText ( List < int > q )
47
47
{
48
48
try
49
49
{
50
50
int bribes = minimumBribesCalculate ( q ) ;
51
- return String . Format ( "{0}" , bribes ) ;
51
+ return string . Format ( System . Globalization . CultureInfo . InvariantCulture , "{0}" , bribes ) ;
52
52
}
53
53
catch ( InvalidOperationException e )
54
54
{
55
- return String . Format ( e . Message ) ;
55
+ return string . Format ( System . Globalization . CultureInfo . InvariantCulture , "{0}" , e . Message ) ;
56
56
}
57
57
}
58
58
@@ -61,6 +61,6 @@ public static String minimumBribesText(List<int> q)
61
61
*/
62
62
public static void minimumBribes ( List < int > q )
63
63
{
64
- Console . WriteLine ( "{0}" , minimumBribesText ( q ) ) ;
64
+ Console . WriteLine ( minimumBribesText ( q ) ) ;
65
65
}
66
66
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public class SimpleArraySumTest
9
9
public class SimpleArraySumTestCase
10
10
{
11
11
public int [ ] inputs = [ ] ;
12
- public int expected = 0 ;
12
+ public int expected = default ! ;
13
13
}
14
14
15
15
// dotnet_style_readonly_field = true
You can’t perform that action at this time.
0 commit comments