摘要: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only 阅读全文
posted @ 2020-05-06 18:07 飞翔的菜鸟123 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Description Write an algorithm to determine if a number n is "happy". A happy number is a number defined by the following process: Starting with any p 阅读全文
posted @ 2020-04-30 12:24 飞翔的菜鸟123 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 汇报 EE "自动化本硕" "东南EE" "清北EE" "EEtop15" "武理北邮通信" "EE转CS硕研一quit" "985EE" "同济数学" "南大级EE" "复旦EE" "上交EE" "中科院级EE,交流多" CS ~~ "CS科班研二quit" ~~ ~~ "CS科班研二quit(a 阅读全文
posted @ 2020-04-24 18:25 飞翔的菜鸟123 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 二进制中1的个数 "题目链接" 每位遍历O(n) 只遍历1的个数O(m) 阅读全文
posted @ 2020-04-23 22:28 飞翔的菜鸟123 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 01二维数组的查找 cpp class Solution { public: void replaceSpace(char str,int length) { string s=""; for(int x=0;x原字符串修改 03从尾到头反转链表 不能改变链表结构 可以改变 04重建二叉树 12 P 阅读全文
posted @ 2020-04-14 23:24 飞翔的菜鸟123 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Google Tensorflow练习 机器学习速成课程练习中的常用超参数 steps:训练迭代的总次数。一步计算一批样本产生的损失,然后使用该值修改一次模型的权重。 batch size:单步的样本数量(随机选择)。例如,SGD 的批次大小为 1。 以下公式成立: total_number_of_ 阅读全文
posted @ 2020-02-19 16:26 飞翔的菜鸟123 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 第 175 场周赛 Description Implement the class TweetCounts that supports two methods: 1. recordTweet(string tweetName, int time) Stores the tweetName at th 阅读全文
posted @ 2020-02-09 20:31 飞翔的菜鸟123 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Description Building and maintaining roads among communities in the far North is an expensive business. With this in mind, the roads are build such th 阅读全文
posted @ 2020-02-01 20:32 飞翔的菜鸟123 阅读(179) 评论(1) 推荐(0) 编辑
摘要: Description Polygon is a game for one player that starts on a polygon with N vertices, like the one in Figure 1, where N=4. Each vertex is labelled wi 阅读全文
posted @ 2020-01-08 20:26 飞翔的菜鸟123 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Description 在一个圆形操场的四周摆放 N 堆石子,现要将石子有次序地合并成一堆.规定每次只能选相邻的2堆合并成新的一堆,并将新的一堆的石子数,记为该次合并的得分。 试设计出一个算法,计算出将 N 堆石子合并成 1堆的最小得分和最大得分。 数据的第 1 行是正整数 N,表示有N堆石子。 第 阅读全文
posted @ 2020-01-07 19:56 飞翔的菜鸟123 阅读(100) 评论(0) 推荐(0) 编辑