摘要:
给定一个字符串 s 和一个字符串 t ,计算在 s 的子序列中 t 出现的个数 ###1. 递归 题目其实就是要求我们在s中从前往后挑选字符来匹配子序列,得到最后的匹配次数 也就是成功匹配的递归分支 class Solution { public: int numDistinct(string s, 阅读全文
摘要:
import matplotlib.pyplot as plt import seaborn as sns ###1. Line Chart plt.figure(figsize=(16,6)) # Set the width and height of the figure plt.title(" 阅读全文
摘要:
import numpy as np ###1. Create ndarray #Specify every value x = np.array([1, 2, 3, 4, 5]) y = np.array([[1,2,3],[4,5,6],[7,8,9], [10,11,12]]) # Creat 阅读全文