【题解】2048 (Merge) (Principles of Computing)

前端小伙 12 0 PDF 2020-12-22 23:12:30

吐槽:做出来了却在论坛发现了更叼的解法。。 题目: https://www.coursera.org/learn/principles-of-computing-1/supplement/1baei/mini-project-description 我的解法: “”” Merge function for 2048 game. “”” def merge(line): “”” Function that merges a single row or column in 2048. “”” result = list(line) length = len(

用户评论
请输入评论内容
评分:
暂无评论