mirror of
https://github.com/AlexMacocian/SystemExtensions.git
synced 2026-07-23 19:46:26 +00:00
Uniformization
This commit is contained in:
@@ -103,7 +103,7 @@ namespace SystemExtensions.Collections
|
||||
/// Removes the item at the root. Throws exception if there are no items in the heap.
|
||||
/// </summary>
|
||||
/// <returns>Value removed.</returns>
|
||||
public T RemoveMin()
|
||||
public T RemoveMinimum()
|
||||
{
|
||||
if (count == 0)
|
||||
{
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace SystemExtensions.Collections
|
||||
{
|
||||
if (Count > 0)
|
||||
{
|
||||
return binaryHeap.RemoveMin();
|
||||
return binaryHeap.RemoveMinimum();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace SystemExtensions.Collections.Tests
|
||||
{
|
||||
Assert.Fail();
|
||||
}
|
||||
System.Diagnostics.Debug.WriteLine(binaryHeap.RemoveMin());
|
||||
System.Diagnostics.Debug.WriteLine(binaryHeap.RemoveMinimum());
|
||||
tries--;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user