本次澳洲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.
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.
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).
Starting with an empty list, the header sentinel and the trailer.
本网站支持 Alipay WeChatPay PayPal等支付方式
E-mail: firstname.lastname@example.org 微信号:vipnxx