摘要: There are n gas stations along a circular route, where the amount of gas at the ith station is gas[i]. You have a car with an unlimited gas tank and i 阅读全文
posted @ 2020-02-13 03:20 CNoodle 阅读(507) 评论(0) 推荐(0)
摘要: You are climbing a staircase. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cli 阅读全文
posted @ 2020-02-13 02:53 CNoodle 阅读(512) 评论(0) 推荐(0)
摘要: Given a string path, which is an absolute path (starting with a slash '/') to a file or directory in a Unix-style file system, convert it to the simpl 阅读全文
posted @ 2020-02-13 01:35 CNoodle 阅读(454) 评论(0) 推荐(0)