一周刷完技术面试题
一周刷完技术面试题
全部文章
分类
归档
标签
去牛客网
登录
/
注册
一周刷完技术面试题的博客
全部文章
(共3篇)
题解 | 矩阵转置
from typing import List, Union import numpy as np # 使用 Union 来表示类型可以是 int 或 float def transpose_matrix(a: List[List[Union[int, float]]]) -> List[Li...
2026-01-02
0
34
题解 | 矩阵转置
from typing import List, Union import numpy as np # 使用 Union 来表示类型可以是 int 或 float def transpose_matrix(a: List[List[Union[int, float]]]) -> List[Li...
2026-01-02
0
24
题解 | 矩阵和向量的点积
def matrix_vector_dot_product(matrix, vector): rows = len(matrix) cols = len(matrix[0]) # eg 1.: # [1,2] ...
2026-01-02
0
29