Skip to content

Commit

Permalink
direction_deduction
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakan authored and Hakan committed Jul 16, 2020
1 parent 4e13c73 commit 54c29d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 025_direction_deduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# i +=1
# return arr


# opposite = {'NORTH': 'SOUTH', 'EAST': 'WEST', 'SOUTH': 'NORTH', 'WEST': 'EAST'}
# def dirReduc(plan):
# new_plan = []
Expand All @@ -28,6 +29,7 @@
# new_plan.append(d)
# return new_plan


def dirReduc(arr):
dir = " ".join(arr)
dir2 = dir.replace("NORTH SOUTH",'').replace("SOUTH NORTH",'').replace("EAST WEST",'').replace("WEST EAST",'')
Expand Down
Empty file added 026_valid_parantheses.py
Empty file.

0 comments on commit 54c29d0

Please sign in to comment.