摘要: Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000. Example 1:Input: "bbbab 阅读全文
posted @ 2020-12-02 16:23 Yancea 阅读(48) 评论(0) 推荐(0) 编辑
摘要: Given two strings text1 and text2, return the length of their longest common subsequence. A subsequence of a string is a new string generated from the 阅读全文
posted @ 2020-12-02 14:39 Yancea 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 机器学习作为数据挖掘、数据分析等领域的一个热点内容。通常,我们需要利用一些常用的算法来解决实际中的各种问题。机器学习中的算法较多,本文主要介绍几种经常用到的算法,同时来加深对此的理解。下面以Optimization、Cluster、Classification and Regression三大类介绍 阅读全文
posted @ 2018-01-18 17:33 Yancea 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 在计算机编程中,经常会用到一些快捷键,熟悉这些可以大大提高我们的效率。其中,整理一部分时常会用到的快捷键。 阅读全文
posted @ 2017-11-30 19:35 Yancea 阅读(198) 评论(0) 推荐(1) 编辑
摘要: 最近在看《Python高级编程》这本书,里面讲到需要安装MinGW和MSYS。因此,也了解到MinGW是针对Windows平台开发的编译器,可以实现gcc编译器的各种功能。 1.首先,从官网http://www.mingw.org/下载相应版本的MinGW, 2.双击安装之后,最后会出现如图所示 3 阅读全文
posted @ 2017-11-30 19:27 Yancea 阅读(6425) 评论(0) 推荐(0) 编辑
摘要: Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are c 阅读全文
posted @ 2017-11-28 20:22 Yancea 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1.打开PyCharm,选择File--Settings 2.依次选择Editor Code Style-- File and Code Templates Python Script 3.编辑内容 可以根据需要添加相应的信息 显示如下: 阅读全文
posted @ 2017-11-28 11:10 Yancea 阅读(10148) 评论(0) 推荐(0) 编辑
摘要: Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Example 2: Example 3: 题意:对于一个给定的字符串,将字符按照所出现的次数降序排列 思路:可以 阅读全文
posted @ 2017-11-28 11:06 Yancea 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 下载django压缩包,解压并和python放在同一个根目录下,进入 Django 目录,执行python setup.py install 显示如下: 然后配置环境变量, 4.检查是否安装成功 输入以下命令检查 如果输出了django的版本号,则说明安装成功。 阅读全文
posted @ 2017-11-28 10:16 Yancea 阅读(4283) 评论(0) 推荐(0) 编辑
摘要: Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the pers 阅读全文
posted @ 2017-11-27 20:19 Yancea 阅读(134) 评论(0) 推荐(0) 编辑