摘要: Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally means t 阅读全文
posted @ 2018-09-11 16:08 locke_hu 阅读(124) 评论(0) 推荐(0) 编辑
摘要: There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, 0)after it 阅读全文
posted @ 2018-09-11 15:41 locke_hu 阅读(273) 评论(0) 推荐(0) 编辑
摘要: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul 阅读全文
posted @ 2018-09-11 15:08 locke_hu 阅读(442) 评论(0) 推荐(0) 编辑