Skip to content

Commit f66fbdd

Browse files
Merge pull request #7 from justcoding121/develop
Beta 140+
2 parents df3c2a1 + ef100d4 commit f66fbdd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Advanced.Algorithms/GraphAlgorithms/ShortestPath/Bellman-Ford.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private ShortestPathResult<T, W> tracePath(WeightedDiGraph<T, W> graph,
100100
pathStack.Push(destination);
101101

102102
var currentV = destination;
103-
while (!Equals(currentV, default(T)) && !parentMap[currentV].Equals(default(T)))
103+
while (!Equals(currentV, default(T)) && !Equals(parentMap[currentV],default(T)))
104104
{
105105
pathStack.Push(parentMap[currentV]);
106106
currentV = parentMap[currentV];

Advanced.Algorithms/GraphAlgorithms/ShortestPath/Dijikstra.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private ShortestPathResult<T, W> tracePath(WeightedDiGraph<T, W> graph,
178178
pathStack.Push(destination);
179179

180180
var currentV = destination;
181-
while (!Equals(currentV,default(T)) && !parentMap[currentV].Equals(default(T)))
181+
while (!Equals(currentV,default(T)) && !Equals(parentMap[currentV], default(T)))
182182
{
183183
pathStack.Push(parentMap[currentV]);
184184
currentV = parentMap[currentV];

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ Note: On a decent desktop, in given implementations here for +ive random input i
244244
## Distributed Systems
245245

246246
- [X] Circular Queue (Ring Buffer) ([Implementation](https://github.com/justcoding121/Advanced-Algorithms/tree/develop/Advanced.Algorithms/DistributedSystems/CircularQueue.cs) | [Tests](https://github.com/justcoding121/Advanced-Algorithms/tree/develop/Advanced.Algorithms.Tests/DistributedSystems/CircularQueue_Tests.cs))
247-
- [X] Consistant Hash ([Implementation](https://github.com/justcoding121/Advanced-Algorithms/tree/develop/Advanced.Algorithms/DistributedSystems/ConsistantHash.cs) | [Tests](https://github.com/justcoding121/Advanced-Algorithms/tree/develop/Advanced.Algorithms.Tests/DistributedSystems/ConsistantHash_Tests.cs))
247+
- [X] Consistant Hash ([Implementation](https://github.com/justcoding121/Advanced-Algorithms/tree/develop/Advanced.Algorithms/DistributedSystems/ConsistentHash.cs) | [Tests](https://github.com/justcoding121/Advanced-Algorithms/tree/develop/Advanced.Algorithms.Tests/DistributedSystems/ConsistentHash_Tests.cs))
248248
- [X] LRU Cache ([Implementation](https://github.com/justcoding121/Advanced-Algorithms/tree/develop/Advanced.Algorithms/DistributedSystems/LRUCache.cs) | [Tests](https://github.com/justcoding121/Advanced-Algorithms/tree/develop/Advanced.Algorithms.Tests/DistributedSystems/LRUCache_Tests.cs))
249249

250250
## Numerical Methods

0 commit comments

Comments
 (0)