No products in the cart.

Coding for bubble sort ??

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Coding for bubble sort ??
  • 1 answers

Raghav Singh 4 years, 5 months ago

It is simple Lst=[15,19,29,47] n=len(Lst) for i in range(n): for j in range(0,n-i-1): if Lst[j]>Lst[j+1]: Lst[j],Lst[j+1]=Lst[j+1],Lst[j] Print(Lst)
http://mycbseguide.com/examin8/

Related Questions

What are called tokens
  • 2 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App