📄 page179.html
字号:
<HTML><HEAD><TITLE>Linked-List Implementation</TITLE></HEAD><BODY bgcolor="#FFFFFF"> <a href="../index.html" target="_top"><img src="../icons/usins.gif" alt="Logo" align=right></a><b>Data Structures and Algorithms with Object-Oriented Design Patterns in Python</b><br><A NAME="tex2html3266" HREF="page180.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html3264" HREF="page169.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html3258" HREF="page178.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A> <A NAME="tex2html3268" HREF="page611.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="../icons/index_motif.gif"></A> <BR><HR><H2><A NAME="SECTION007120000000000000000">Linked-List Implementation</A></H2><A NAME="seclistslistp"> </A><P>This section presents a linked-list implementation of ordered lists.Program <A HREF="page179.html#progorderedListAsLinkedLista"><IMG ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A> introducesthe <tt>OrderedListAsLinkedList</tt> class.The <tt>OrderedListAsLinkedList</tt> class extendsthe abstract <tt>OrderedList</tt> classdefined in Program <A HREF="page169.html#progorderedLista"><IMG ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>.<P><P><A NAME="9878"> </A><A NAME="progorderedListAsLinkedLista"> </A> <IMG WIDTH=575 HEIGHT=142 ALIGN=BOTTOM ALT="program9359" SRC="img751.gif" ><BR><STRONG>Program:</STRONG> <tt>OrderedListAsLinkedList</tt> class <tt>__init__</tt> method.<BR><P><BR> <HR><UL> <LI> <A NAME="tex2html3269" HREF="page180.html#SECTION007121000000000000000">Instance Attributes</A><LI> <A NAME="tex2html3270" HREF="page181.html#SECTION007122000000000000000">Inserting and Accessing Items in a List</A><LI> <A NAME="tex2html3271" HREF="page182.html#SECTION007123000000000000000">Finding Items in a List</A><LI> <A NAME="tex2html3272" HREF="page183.html#SECTION007124000000000000000">Removing Items from a List</A><LI> <A NAME="tex2html3273" HREF="page184.html#SECTION007125000000000000000">Positions of Items in a List</A><LI> <A NAME="tex2html3274" HREF="page185.html#SECTION007126000000000000000">Finding the Position of an Item and Accessing by Position</A><LI> <A NAME="tex2html3275" HREF="page186.html#SECTION007127000000000000000">Inserting an Item at an Arbitrary Position</A><LI> <A NAME="tex2html3276" HREF="page187.html#SECTION007128000000000000000">Removing Arbitrary Items by Position</A></UL><HR><A NAME="tex2html3266" HREF="page180.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html3264" HREF="page169.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html3258" HREF="page178.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A> <A NAME="tex2html3268" HREF="page611.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="../icons/index_motif.gif"></A> <P><ADDRESS><img src="../icons/bruno.gif" alt="Bruno" align=right><a href="../copyright.html">Copyright © 2003</a> by <a href="../signature.html">Bruno R. Preiss, P.Eng.</a> All rights reserved.</ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -