Skip to content

Commit 388e686

Browse files
author
Gonzalo Diaz
committed
WIP
1 parent 535cbf6 commit 388e686

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/algorithm_exercises_csharp/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/TwoStrings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static bool twoStringsCompute(string s1, string s2)
1515
ArgumentException.ThrowIfNullOrEmpty(s1);
1616
ArgumentException.ThrowIfNullOrEmpty(s2);
1717

18-
char occurrence = s1.FirstOrDefault(c => s2.Contains(c), __EMPTY_CHAR__);
18+
char occurrence = s1.FirstOrDefault(s2.Contains, __EMPTY_CHAR__);
1919

2020
if (occurrence != __EMPTY_CHAR__)
2121
{

src/algorithm_exercises_csharp_test/hackerrank/interview_preparation_kit/greedy_algorithms/MinimumAbsoluteDifferenceInAnArray.Test.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ public void testMinimumAbsoluteDifferenceInAnArray()
3333
Assert.AreEqual(
3434
test.expected,
3535
result,
36-
String.Format(
36+
string.Format(
37+
System.Globalization.CultureInfo.InvariantCulture,
3738
"minimumAbsoluteDifference({0}) => must be: {1}",
3839
test.input.ToString(),
3940
test.expected

0 commit comments

Comments
 (0)