摘要: LeetCode 91. Decode Ways 题目:https://leetcode.com/problems/decode-ways/ 描述:按照一下规则编码,给出一段由数字组成的字符串,判断可能得出的解码结果有多少种? 由于动态规划是从后往前遍历,如果不先排除无法编码的情况,在首个字符为0等 阅读全文
posted @ 2019-09-28 18:14 piperfix 阅读(392) 评论(0) 推荐(0)
摘要: leetcode 866. Prime Palindrome 题目:https://leetcode.com/problems/prime-palindrome/ 解法:https://leetcode.com/problems/prime-palindrome/discuss/158439/c%2 阅读全文
posted @ 2019-09-26 22:10 piperfix 阅读(983) 评论(0) 推荐(0)
摘要: leetcode 1038. Binary Search Tree to Greater Sum Tree 题目:https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/ 将一棵二叉树的每个节点的值变为,原有值+原树中 阅读全文
posted @ 2019-09-25 22:52 piperfix 阅读(159) 评论(0) 推荐(0)
摘要: LeetCode 220. Contains Duplicate III 题目:https://leetcode.com/problems/contains-duplicate-iii/ 解析:https://leetcode.com/problems/contains-duplicate-iii/ 阅读全文
posted @ 2019-09-24 22:49 piperfix 阅读(269) 评论(0) 推荐(0)
摘要: leet code 166. Fraction to Recurring Decimal 题目:https://leetcode.com/problems/fraction-to-recurring-decimal/ 题解:https://leetcode.com/problems/fraction 阅读全文
posted @ 2019-09-23 23:11 piperfix 阅读(714) 评论(0) 推荐(0)
摘要: leet code 1201. Ugly Number III. Write a program to find the n-th ugly number. Ugly numbers are positive integers which are divisible by a or b or c. 阅读全文
posted @ 2019-09-22 22:37 piperfix 阅读(547) 评论(0) 推荐(0)
摘要: leetcode 151. https://leetcode.com/problems/reverse-words-in-a-string/ Example 1: Example 2: Example 3: 阅读全文
posted @ 2019-09-22 20:56 piperfix 阅读(531) 评论(0) 推荐(0)
摘要: 机器学习分为监督式学习和非监督式学习。监督式学习需要为数据集设定目标值,非监督学习不需要设定目标值,而是根据数据找出其中分组的规律。 监督式学习可分为回归问题和分类问题。回归问题的目标值为一系列连续的值,分类问题的目标值为离散的值。 线性回归问题:假定数据所用的拟合函数为线性,即,只有一次幂。 例: 阅读全文
posted @ 2018-04-08 10:50 piperfix 阅读(153) 评论(0) 推荐(0)
摘要: 一、什么是Servlet Servlet(Server Applet)是Java Servlet的简称,称为小服务程序或服务连接器,用Java编写的服务器端程序,主要功能在于交互式地浏览和修改数据,生成动态Web内容。 狭义的Servlet是指Java语言实现的一个接口,广义的Servlet是指任何 阅读全文
posted @ 2018-01-19 20:43 piperfix 阅读(312) 评论(0) 推荐(0)