摘要:
给定一个只包括 '(',')','{','}','[',']' 的字符串 s ,判断字符串是否有效。 dic = {'{': '}', '[': ']', '(': ')'} stack = [] for c in s: if c in dic: stack.append(c) elif not s 阅读全文
摘要:
p1, p2 = m - 1, n - 1 tail = m + n - 1 while p1 >= 0 or p2 >= 0: if p1 == -1: nums1[tail] = nums2[p2] p2 -= 1 elif p2 == -1: nums1[tail] = nums1[p1] p 阅读全文
摘要:
Cucumber是一个 BDD 行为驱动开发的自动化测试工具 可以用自然的语言进行描述 Cucumber包括Features, Step_definitions, Cucumber command. 1. Features .feature文件 Feature: 对应test suite Scena 阅读全文