题解列表
题解 2861: 验证子串(用isSubstring()函数解决)
摘要:```c
#include
#include
int isSubstring(char* a, char* b, int len_a, int len_b)//默认len_a>len_b
{
……
题解 2938: 甲流病人初筛
摘要:```c
#include
#include
typedef struct people
{
char name[10];
double tem;
int if_cough;
……
车厢调度(python)
摘要:解题思路:注意事项:参考代码:def trainSchedule(n, order): stack = [] next_car = 1 for car in order: ……
编写题解 2787: 有一门课不及格的学生
摘要:解题思路:注意事项:参考代码:score = list(map(int, input().split()))
if min(score) < 60:
if max(score) >= 60……
合并果子(python)
摘要:解题思路:注意事项:参考代码:import heapqdef mergeFruits(fruits): heap = [] for fruit in fruits: heap……
二叉树遍历(python)
摘要:解题思路:注意事项:参考代码:# 定义树节点的数据结构class TreeNode: def __init__(self, val): self.val = val ……
求后序遍历(python)
摘要:解题思路:注意事项:参考代码:def build_tree(preorder, inorder): if not preorder or not inorder: return N……
单词查找树(python)
摘要:解题思路:注意事项:参考代码:class TrieNode: def __init__(self): self.children = {} self.is_end_o……