首页 » CS辅导 » Python辅导 | Linked Positional List

Python辅导 | Linked Positional List

本次澳洲DA辅导主要内容是要求使用Java辅导和Python分别实现Linked Positional List的数据结构。

Implement a Linked Positional List

In both programming languages, there is an empty main function in the Linked Positional List file. The main function is not being tested and it is there as an option for you to use for your own testing / running.

Please uncomment the language you are using in the ​LANGUAGE​ file. The linked positional list supports the following functionality:

  • Insert First – Insert’s an element at the start of the list.
  • Insert Last – Insert’s an element at the end of the list.
  • Insert Before – Inserts an element at the given position.
  • Remove – Remove the given element.
  • Undo – Undo the action.

Java

The documented positional list interface is in ​PositionalList.java​ and the class you need to implement is in ​LinkedPositionalList.java​. There is a ​Node.java​ which supplies the class of nodes to be added to the list, this class does not require any editing.

Python

The documented positional list interface is in ​core.py​ and the class you need to implement is in ​linked_positional_list.py
Differences in the linked positional interface:

All method names are in snake case (​method_name​) as per Python language convention, rather than camel case (​methodName​).

Example Execution:

Starting with an empty list, the header sentinel and the trailer.


程序辅导定制C/C++/JAVA/安卓/PYTHON/留学生/PHP/APP开发/MATLAB


blank

本网站支持 Alipay WeChatPay PayPal等支付方式

E-mail: vipdue@outlook.com  微信号:vipnxx


如果您使用手机请先保存二维码,微信识别。如果用电脑,直接掏出手机果断扫描。

blank

发表评论

您的电子邮箱地址不会被公开。