Removed redundant parenthesis

This commit is contained in:
Kwoth
2021-12-20 03:54:30 +01:00
parent edd60ae656
commit 9223d78849
58 changed files with 147 additions and 147 deletions

View File

@@ -39,15 +39,15 @@ public static class IEnumerableExtensions
var n = list.Count;
while (n > 1)
{
var box = new byte[(n / Byte.MaxValue) + 1];
var box = new byte[n / Byte.MaxValue + 1];
int boxSum;
do
{
provider.GetBytes(box);
boxSum = box.Sum(b => b);
} while (!(boxSum < n * ((Byte.MaxValue * box.Length) / n)));
} while (!(boxSum < n * (Byte.MaxValue * box.Length / n)));
var k = (boxSum % n);
var k = boxSum % n;
n--;
var value = list[k];
list[k] = list[n];

View File

@@ -115,7 +115,7 @@ public static class StringExtensions
for (var j = 1; j <= m; j++)
{
// Step 5
var cost = (t[j - 1] == s[i - 1]) ? 0 : 1;
var cost = t[j - 1] == s[i - 1] ? 0 : 1;
// Step 6
d[i, j] = Math.Min(