![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
文章平均质量分 60
Grifth
2020级本科生一枚
展开
-
leetcode周赛
leetcode周赛中的学习 第一题 学习到了大神的for增强的用法 题目 给你一个字符串s 和一个字符串数组 words ,请你判断s是否为words 的 前缀字符串 。 字符串 s 要成为 words 的 前缀字符串 ,需要满足:s可以由words 中的前 k(k为 正数 )个字符串按顺序相连得到,且k 不超过 words.length 。 如果s是 words 的 前缀字符串 ,返回 true ;否则,返回 false 。 我的代码 class Solution { public: b原创 2021-08-08 20:24:02 · 171 阅读 · 0 评论 -
树的建立(二叉树)
树 You are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the binary tree to any leaf. The value of a path is the sum of values of nodes along that path. input The input fil原创 2021-07-29 20:46:19 · 249 阅读 · 0 评论 -
假期集训笔记(ing)
toupper函数 1.头文件包含 #include <ctype.h> 2.功能 把大写字母换小写字母,把小写字母换大写字母 3. 演示 int toupper(int c); #include <stdio.h> int main() { printf("toupper('-')=%c\n",toupper('-')); printf("toupper('0')=%c\n",toupper('0')); printf("toupper('a')=%c\n",to原创 2021-07-23 16:33:04 · 73 阅读 · 0 评论