This commit is contained in:
nonstriater
2014-05-13 17:10:46 +08:00
parent 16cf6be47e
commit b14b7b062d
9 changed files with 249 additions and 114 deletions
+1
View File
@@ -1,5 +1,6 @@
如果用一个循环数组q[0..m-1]表示队列时,该队列只有一个队列头指针front,不设队列尾指针rear,求这个队列中从队列头到队列尾的元素个数(包含队列头、队列尾)(华赛面试题、腾讯笔试题)。
有rear指针时: