- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 语言代码表
语言代码表自然语言处理中用到的语言代码表语言代码语言名称语言代码语言名称af南非语it-IT意大利语(意大利)af-ZA南非语ja日语ar阿拉伯语ja-JP日语ar-AE阿拉伯语(阿联酋)ka格鲁吉亚语ar-BH阿拉伯语(巴林)ka-GE格鲁吉亚语ar-DZ阿拉伯语(阿尔及利亚)kk哈萨克语ar-EG阿拉伯语(埃及)kk-KZ哈萨克语ar-IQ阿拉伯语(伊拉克)kn卡纳拉语ar-JO
2020-09-11 15:00:07
1432
原创 括号生成问题
括号生成问题描述解题思路Python实现问题描述Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.Example:n = 3output: ["((()))", "(()())", "(())()", "()(())", "()()()"]解题思路使用递归的思想,生成n对括号的有效组合,可以分解为一对括号(),与n-1对括号有效序
2020-09-01 15:02:38
217
原创 Z型字符串转换
ZigZag Conversion(Z型字符串转换)问题描述解题思路Python实现问题描述The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H N | /
2020-08-24 23:40:32
313
原创 将图片格式转成EPS格式
将图片格式转成EPS格式背景方法1.在线转换2.png>pdf>eps方式3.使用Python代码实现4.使用bmeps命令(推荐)背景在使用LaTeX\LaTeXLATEX 对论文进行排版时,经常需要使用EPS格式的图片,但是使用PPT或者Visio绘制的图形无法直接导出成EPS格式的图片,所以需要将png、jpg等格式的图片转换为eps格式的图片。方法总结网上的教程,大致分为一下几种方式:在线转换png>pdf>eps使用Python代码实现:使用bmeps命
2020-08-17 01:01:33
11505
2
原创 求字符串不重复子串的最大长度
求字符串不重复子串的最大长度问题描述解题思路Python实现问题描述Given a string, find the length of the longest substring without repeating characters.Example:Input: "bbbbb"Output: 1Explanation: The answer is "b", with the length of 1.Input: "pwwkew"Output: 3Explanation: The a
2020-08-15 23:46:16
1180
原创 链表数字相加问题
链表数字相加问题问题描述解题思路Python实现问题描述You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.You ma
2020-08-08 11:27:30
240
原创 机器人运动范围问题
机器人运动范围问题问题描述解题思路Python实现问题描述地上有一个m行n列的方格,从坐标 [0,0] 到坐标 [m-1,n-1] 。一个机器人从坐标 [0, 0] 的格子开始移动,它每次可以向左、右、上、下移动一格(不能移动到方格外),也不能进入行坐标和列坐标的数位之和大于k的格子。例如,当k为18时,机器人能够进入方格 [35, 37] ,因为 3+5+3+7=18。但它不能进入方格 [35, 38],因为 3+5+3+8=19。请问该机器人能够到达多少个格子?解题思路从左上角(0,0)
2020-08-05 11:21:11
436
原创 青蛙跳台阶问题
青蛙跳台阶问题问题描述思路Python实现问题描述一只青蛙一次可以跳上1级台阶,也可以跳上2级台阶。求该青蛙跳上一个 n 级的台阶总共有多少种跳法。思路设f(n)表示青蛙跳上n阶的跳法,那么就有f(0)=1,f(1)=1,f(2)=2。如果青蛙要跳到第3阶,那么有两种方式:从第2阶跳1级上第3阶从第1阶跳2级上第3阶于是有f(3)=f(2)+f(1),以此类推,青蛙跳到第n阶有两种方式:从第n-1阶跳1级上第n阶从第n-2阶跳2级上第n阶所以,我们可以得出:f(n)=f(n-2)
2020-08-04 11:58:04
144
用于将图片格式转换为EPS格式的工具
2020-08-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人