Top answers

All subjects
All levels

Explain a bubble sort. You may use pseudocode and/or diagrams to help demonstrate your answer.

A bubble sort works by performing a number of passes on a list of data. With each pass the list will get closer to the final order. During a pass the algorithm compares a selected item with each item in t...

Answered by Christopher F. Computing tutor
1421 Views

What is Bubble Sort algorithm and how it works? Give an example of pseudo-code explaining the process.

A Bubble Sort algorithm is one of the simplest and easy-to-program sorting algorithms, at an expense of inefficiency. One of the main reasons why it is simple is because that it uses the notion of swappin...

Answered by Nedas M. Computing tutor
2487 Views

Represent 83 in 8 bit binary.

Start on the left side of the binary number - the first digit is the "128s" digit - there are no "128s" in 83 (as 128 is clearly larger than 128), so we start with a 0.Next is 64 - the...

Answered by Rose L. Computing tutor
4685 Views

What is the time complexity of Bubble Sort?

had problems before interview with submitting this and have therefore no longer got my answer, however was able to complete the interview successfully with the answer

Answered by Ben I. Computing tutor
1319 Views

In Python, write a recursive function that returns the first n Fibonacci numbers.

Begin by denoting the first and second Fibonacci number as 0 and 1 respectively. This helps us define a base case for our algorithm. We know that new Fibonacci numbers are formed by adding its 2 predecess...

Answered by Meer S. Computing tutor
1289 Views

We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo
Cookie Preferences