摘要:
1. 题目描述 https://leetcode-cn.com/problems/valid-palindrome/ 2. 代码 1 class Solution: 2 def isPalindrome(self, s: str) -> bool: 3 S = list()#定义一个列表,模拟栈 4 阅读全文
posted @ 2020-09-24 20:42
vv_869
阅读(171)
评论(0)
推荐(0)
摘要:
新手小白一个, 简单记录一下过程. 一 一些名词 1. GPU: Graphics Processing Unit, 图形处理器. 2. CUDA: Compute Unified Device Architecture, 是显卡厂商NVIDIA(英伟达)推出的运算平台. CUDA是一种通用并行计算 阅读全文
posted @ 2020-09-23 11:30
vv_869
阅读(196)
评论(0)
推荐(0)
摘要:
1. 题目描述 https://leetcode-cn.com/problems/longest-common-prefix/solution/ 2. 代码 class Solution: def longestCommonPrefix(self, strs: 'List[str]') -> str 阅读全文
posted @ 2020-09-14 21:01
vv_869
阅读(191)
评论(0)
推荐(0)
摘要:
1. 题目描述 https://leetcode-cn.com/problems/pascals-triangle/ 2. 代码 class Solution: def generate(self, numRows: int) -> 'List[List[int]]': result = []#定义 阅读全文
posted @ 2020-09-12 21:37
vv_869
阅读(183)
评论(0)
推荐(0)
浙公网安备 33010602011771号