搜索资源列表
number4
- 回文判别 实验要求:称正读和反读都相同的字符序列为“回文”,如“abba”和“abccba”是“回文”,“abcde”和“ababab”则不是“回文”,试设计一个算法,判别读入的一个以@为结束符的字符序列是否是“回文”。 实验目的: 1、掌握循环队列的定义及应用; 2、掌握队列的基本操作; 3、进一步熟练掌握栈的基本操作及应用; 4、初步学会解决具体问题的算法设计。-Experimental identification requirements palindrome:
h
- 回文判断:对于一个从键盘输入的字符串,判断其是否为回文。回文即正反序相同。如“abba”是回文,而“abab”不是回文。-Palindrome judge: for a string from the keyboard input, determine whether the palindrome. Palindrome sequence that is the same as the pros and cons. Such as " abba" is a palindrome
Palindromes-judgement-CSharp
- 基于C#+winform开发的“回文判定”程序:对于一个从键盘输入的字符串,判断其是否为回文。回文即正反序相同。如“abba”是回文,而“abab”不是回文。此判定程序包含了三种判定方法:1、根据数组元素;2、利用栈先进后出,队列先进先出的特点3、分段检测。(已给出完整的代码注释)-Based on C#+ winform development "palindromes judgement" program: for a keyboard input from the string, deci
sicily3
- 输入一个字符串(字符串的长度不超过100),求出其中最长的回文子串的长度。子串的含义是:在原串中连续出现的字符串片段。回文的含义是:正着看和倒着看相同,如abba和yyxyy。-Enter a string (the length of the string is not more than 100), calculated the length of the longest palindrome substring. The substring meaning: the string frag
paihang
- 有2*n个盒子排成一行,其中有两个相邻的空盒,有n-1个盒子有符号 A ,有n-1个盒子有符号 B 。例如,n=5,并有初始配置如下: A B B A . . A B A B -2* n box row, wherein there are two adjacent empty box, n-1 of a box with the symbol ' A' , the symbol ' B' n-1 th box. For example, n = 5, an
1
- 假设正读和反读都相同的字符序列为“回文”,例如,‘abba’和‘abcba’是回文,‘abcde’ 和‘ababab’则不是回文。试写一个算法判别读入的一个以‘@’为结束符的字符序列是否是“回文”。-Assuming a positive reading and anti-reads the same sequence of characters " palindrome" , for example, ' abba' and ' abcba' pal
HWTest11
- 该段代码实现密码截取。对像ABBA,ABA,A,123321这样对称的码串变成12ABBA,ABAKK,51233214之后,找出输入码串中最长的有效码串。如输入 ABBA,输出长度4;输入abaaab,输出长度5(baaab的长度)-This code implements password interception.To like ABBA, ABA, A, 123321 such symmetrical code string into 12ABBA, ABAKK, 512
