搜索资源列表
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
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
