nice video. would be better if the coding screen can be zoomed in
@crackfaang2 жыл бұрын
Thanks for the feedback. I think this is the smallest I can get it while still maintaining 1080p recording and not cutting off the problem description part. Here is the code in case you had a hard time reading it on the video: class Solution: def simplifyPath(self, path: str) -> str: path_items = path.split("/") stack = [] for item in path_items: if item in [".", ""]: continue elif item == "..": if stack: stack.pop() else: stack.append(item) return "/" + "/".join(stack)
@ValentinoMarin2 жыл бұрын
perhaps increase the font size
@rsKayiira2 жыл бұрын
Great solution could you please do sliding window median LC 480