
Python面试题
丶Axe
Life is short, I use Python.
展开
-
剑指offer题解 Python Solution
@TOC1.二维数组中的查找题目描述在一个二维数组中(每个一维数组的长度相同),每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。解法:class Solution: def Find(self, target, array): if not array: ...原创 2019-10-22 14:09:36 · 3429 阅读 · 0 评论 -
Python Interview.
Table of ContentsPython语言特性1 Python的函数参数传递2 Python中的元类(metaclass)3 @staticmethod和@classmethod4 类变量和实例变量5 Python自省6 字典推导式7 Python中单下划线和双下划线8 字符串格式化:\x和.format9 迭代器和生成器10 *args and **kwarg...转载 2019-07-13 00:05:38 · 2245 阅读 · 0 评论 -
LeetCode *24. Swap Nodes in Pairs (Python Solution)
题目描述Given a linked list, swap every two adjacent nodes and return its head.You may not modify the values in the list’s nodes, only nodes itself may be changed.给定链表,交换每两个相邻结点并返回其头部。您可能无法修改列表结点中的值,只...原创 2019-09-03 11:39:17 · 186 阅读 · 0 评论