Lab06
Lab06
(a) No submission by the deadline will incur 0.25 point deduction for each problem (most of the problems are
due at the end of the lab session).
(b) The instructor will deduct an additional 0.25 point per problem for each day past the deadline.
(c) The penalty will be deducted until the maximum possible score for the lab practice reaches zero (0%) unless
otherwise specified by the instructor.
CMS Autograder
Direct access to this CMS lab is followed: https://www.cmsvinuni.online
Note: Due to the current limitation of the Autograder, you must comment out all the package declaration before submis-
sion.
Output: A single floating-point number representing the result of xn . The output should be precise up to 5 decimal
places.
Testcase See Figure 1
Output: A list containing two indices whose corresponding values in nums add up to target.
Testcase See Figure 3
• void visit(String url): Navigates to the specified URL from the current page. This action removes all forward
history.
• String back(int steps): Moves back by the given number of steps in history. If there are fewer available pages
than the requested steps, go as far back as possible. Returns the current page after moving.
• String forward(int steps): Moves forward by the given number of steps in history. If there are fewer available
pages than the requested steps, go as far forward as possible. Returns the current page after moving.
• A list of commands that represent the sequence of operations to be performed on the BrowserHistory class.