# Java Coding Assignments | Online Homework Help

Instructions

Don't use plagiarized sources. Get Your Assignment on
Java Coding Assignments | Online Homework Help
Just from \$13/Page

1) You can use any coding language of your choice.

3) Please share the code and paste screenshots of your output(if available)

4) The code need not be complete. Feel free to inundate them with comments. We are trying to test only your thought process and algorithmic thinking

QUESTIONS

1. Sort a linked list using insertion sort.

Algorithm of Insertion Sort:

1. Insertion sort iterates, consuming one input element each repetition and growing a sorted output list.

2. At each iteration, insertion sort removes one element from the input data, finds the location it belongs within the sorted list, and inserts it there.

3. It repeats until no input elements remain.

Example 1:

Input: 4->2->1->3

Output: 1->2->3->4

2. A subarray A[i], A[i+1], …, A[m] of A is said to be composite if and only if:

• For i<= m<m,      A[m] > A[m+1] when m is odd, and A[m] < A[m+1] when m is even;
• OR,      for i<= m<m, A[m] > A[m+1] when m is even, and A[m] < A[m+1]      when m is odd.

Return the length of a maximum size composite subarray of A.

Example 1:

Input: [9,4,2,10,7,8,8,1,9]

Output: 5

Explanation: (A[1] > A[2] < A[3] > A[4] < A[5])

Example 2:

Input: [4,8,12,16]

Output: 2

Example 3:

Input: [100]

Output: 1

Note:

1. 1 <= LENGTH(A)<= 40000

2. 0 <= A[i] <= 10^9

Calculate the price
Pages (550 words)
\$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with Homework Writing Services
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Finance/Acc related
Excellent work.
Customer 460073, April 29th, 2022
Management
The quality was well done, however, the timing wasn't up to par.
Customer 454747, June 27th, 2020
Use Grammarly on all your papers.
Customer 459947, March 28th, 2022
Military
excellent
Customer 456821, October 4th, 2022
English 101
Great work.
Customer 456823, May 15th, 2022
History
Good work.
Customer 462717, May 15th, 2022
Political science
Great Job Bless your heart and soul
Customer 453983, February 7th, 2020
Be keen on plagiarism.
Customer 462779, March 31st, 2022
Accounting
Thank you!
Customer 454299, April 21st, 2020
Military
Excellent job
Customer 456821, June 30th, 2022
Military
good job
Customer 456821, October 24th, 2022
English 101
Good work.
Customer 453625, May 25th, 2022
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend