def part2(filename: str) -> int: """ Given a filename, solve 2015 day 12 part 2 """ data = first_line(filename) data = json.loads(data) return total_nums_no_red(data)
def part2(filename: str) -> str: """ Given a filename, solve 2015 day 11 part 2 """ password = first_line(filename) return next_pw(next_pw(password))
def part2(filename: str) -> int: """ Given a filename, solve 2015 day 20 part 2 """ target = int(first_line(filename)) return part2(target)
def part2(filename: str) -> int: """ Given a filename, solve 2015 day 21 part 2 """ directions = first_line(filename) return count_visited(directions, 2)
def part2(filename: str) -> int: """ Given a filename, solve 2015 day 04 part 2 """ key = first_line(filename) return first_password(key, 6)