mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
fix: function name typo (#11319)
* fix: function name typo Signed-off-by: guoguangwu <guoguangwug@gmail.com> * lfu_cache.py: Use f-strings * rsa_cipher.py: Use f-strings --------- Signed-off-by: guoguangwu <guoguangwug@gmail.com> Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
@ -57,7 +57,7 @@ class Gridworld:
|
||||
def show(self):
|
||||
print(self.w)
|
||||
|
||||
def get_neigbours(self, cell):
|
||||
def get_neighbours(self, cell):
|
||||
"""
|
||||
Return the neighbours of cell
|
||||
"""
|
||||
@ -110,7 +110,7 @@ def astar(world, start, goal):
|
||||
_closed.append(_open.pop(min_f))
|
||||
if current == goal:
|
||||
break
|
||||
for n in world.get_neigbours(current):
|
||||
for n in world.get_neighbours(current):
|
||||
for c in _closed:
|
||||
if c == n:
|
||||
continue
|
||||
|
Reference in New Issue
Block a user