SlideShare a Scribd company logo
1 of 16
for _ in range(m):
for i in range(m - 1):
for j in range(n):
if board[i + 1][j] == '#':
board[i + 1][j],
board[i][j] = board[i][j], '#'
j
i
for _ in range(m):
for i in range(m - 1):
for j in range(n):
if board[i + 1][j] == '#':
board[i + 1][j],
board[i][j] = board[i][j], '#'
j
i
for _ in range(m):
for i in range(m - 1):
for j in range(n):
if board[i + 1][j] == '#':
board[i + 1][j],
board[i][j] = board[i][j], '#'
j
i
for _ in range(m):
for i in range(m - 1):
for j in range(n):
if board[i + 1][j] == '#':
board[i + 1][j],
board[i][j] = board[i][j], '#'
j
i
for _ in range(m):
for i in range(m - 1):
for j in range(n):
if board[i + 1][j] == '#':
board[i + 1][j],
board[i][j] = board[i][j], '#'
j
i
for _ in range(m):
for i in range(m - 1):
for j in range(n):
if board[i + 1][j] == '#':
board[i + 1][j],
board[i][j] = board[i][j], '#'
j
i
for _ in range(m):
for i in range(m - 1):
for j in range(n):
if board[i + 1][j] == '#':
board[i + 1][j],
board[i][j] = board[i][j], '#'
j
i
PASS
. . .
for _ in range(m):
for i in range(m - 1):
for j in range(n):
if board[i + 1][j] == '#':
board[i + 1][j],
board[i][j] = board[i][j], '#'
j
i
for _ in range(m):
for i in range(m - 1):
for j in range(n):
if board[i + 1][j] == '#':
board[i + 1][j],
board[i][j] = board[i][j], '#'
j
i
for _ in range(m):
for i in range(m - 1):
for j in range(n):
if board[i + 1][j] == '#':
board[i + 1][j],
board[i][j] = board[i][j], '#'
j
i
for _ in range(m):
for i in range(m - 1):
for j in range(n):
if board[i + 1][j] == '#':
board[i + 1][j],
board[i][j] = board[i][j], '#'
j
i
for _ in range(m):
for i in range(m - 1):
for j in range(n):
if board[i + 1][j] == '#':
board[i + 1][j],
board[i][j] = board[i][j], '#'
j
i
for _ in range(m):
for i in range(m - 1):
for j in range(n):
if board[i + 1][j] == '#':
board[i + 1][j],
board[i][j] = board[i][j], '#'
j
i
for _ in range(m):
for i in range(m - 1):
for j in range(n):
if board[i + 1][j] == '#':
board[i + 1][j],
board[i][j] = board[i][j], '#'
j
i
PASS
. . .

More Related Content

What's hot

Number theory - Prime Numbers & GCD Algorithms
Number theory - Prime Numbers & GCD AlgorithmsNumber theory - Prime Numbers & GCD Algorithms
Number theory - Prime Numbers & GCD AlgorithmsPratik Gadhiya
 
Aptitude Training - PERMUTATIONS AND COMBINATIONS1
Aptitude Training - PERMUTATIONS AND COMBINATIONS1Aptitude Training - PERMUTATIONS AND COMBINATIONS1
Aptitude Training - PERMUTATIONS AND COMBINATIONS1Ajay Chimmani
 
Alg1 lesson 5-6 day 2 ( perpendicular lines)
Alg1 lesson 5-6 day 2 ( perpendicular lines)Alg1 lesson 5-6 day 2 ( perpendicular lines)
Alg1 lesson 5-6 day 2 ( perpendicular lines)Carol Defreese
 
8th pre alg -l56
8th pre alg -l568th pre alg -l56
8th pre alg -l56jdurst65
 

What's hot (7)

Matemática p2
Matemática p2Matemática p2
Matemática p2
 
engineering drawing
engineering drawingengineering drawing
engineering drawing
 
Number theory - Prime Numbers & GCD Algorithms
Number theory - Prime Numbers & GCD AlgorithmsNumber theory - Prime Numbers & GCD Algorithms
Number theory - Prime Numbers & GCD Algorithms
 
Aptitude Training - PERMUTATIONS AND COMBINATIONS1
Aptitude Training - PERMUTATIONS AND COMBINATIONS1Aptitude Training - PERMUTATIONS AND COMBINATIONS1
Aptitude Training - PERMUTATIONS AND COMBINATIONS1
 
Alg1 lesson 5-6 day 2 ( perpendicular lines)
Alg1 lesson 5-6 day 2 ( perpendicular lines)Alg1 lesson 5-6 day 2 ( perpendicular lines)
Alg1 lesson 5-6 day 2 ( perpendicular lines)
 
Uts
UtsUts
Uts
 
8th pre alg -l56
8th pre alg -l568th pre alg -l56
8th pre alg -l56
 

More from YerimOh8

More from YerimOh8 (8)

zz.pptx
zz.pptxzz.pptx
zz.pptx
 
st1.pptx
st1.pptxst1.pptx
st1.pptx
 
std2.pptx
std2.pptxstd2.pptx
std2.pptx
 
프레젠테이션2
프레젠테이션2프레젠테이션2
프레젠테이션2
 
프레젠테이션2
프레젠테이션2프레젠테이션2
프레젠테이션2
 
Pal2
Pal2Pal2
Pal2
 
Pal1
Pal1Pal1
Pal1
 
1111
11111111
1111
 

Recently uploaded

Along the Lakefront, "Menacing Unknown"s
Along the Lakefront, "Menacing Unknown"sAlong the Lakefront, "Menacing Unknown"s
Along the Lakefront, "Menacing Unknown"syalehistoricalreview
 
Poly-film-Prefab cover agricultural greenhouse-polyhouse structure.pptx
Poly-film-Prefab cover agricultural greenhouse-polyhouse structure.pptxPoly-film-Prefab cover agricultural greenhouse-polyhouse structure.pptx
Poly-film-Prefab cover agricultural greenhouse-polyhouse structure.pptxAgrodome projects LLP
 
办理学位证(KU证书)堪萨斯大学毕业证成绩单原版一比一
办理学位证(KU证书)堪萨斯大学毕业证成绩单原版一比一办理学位证(KU证书)堪萨斯大学毕业证成绩单原版一比一
办理学位证(KU证书)堪萨斯大学毕业证成绩单原版一比一F dds
 
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...ranjana rawat
 
VIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service Gorakhpur
VIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service GorakhpurVIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service Gorakhpur
VIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service GorakhpurSuhani Kapoor
 
Call Girls Sarovar Portico Naraina Hotel, New Delhi 9873777170
Call Girls Sarovar Portico Naraina Hotel, New Delhi 9873777170Call Girls Sarovar Portico Naraina Hotel, New Delhi 9873777170
Call Girls Sarovar Portico Naraina Hotel, New Delhi 9873777170simranguptaxx69
 
Mumbai Call Girls, 💞 Prity 9892124323, Navi Mumbai Call girls
Mumbai Call Girls, 💞  Prity 9892124323, Navi Mumbai Call girlsMumbai Call Girls, 💞  Prity 9892124323, Navi Mumbai Call girls
Mumbai Call Girls, 💞 Prity 9892124323, Navi Mumbai Call girlsPooja Nehwal
 
Call Girls Ahmedabad 7397865700 Ridhima Hire Me Full Night
Call Girls Ahmedabad 7397865700 Ridhima Hire Me Full NightCall Girls Ahmedabad 7397865700 Ridhima Hire Me Full Night
Call Girls Ahmedabad 7397865700 Ridhima Hire Me Full Nightssuser7cb4ff
 
Species composition, diversity and community structure of mangroves in Barang...
Species composition, diversity and community structure of mangroves in Barang...Species composition, diversity and community structure of mangroves in Barang...
Species composition, diversity and community structure of mangroves in Barang...Open Access Research Paper
 
Spiders by Slidesgo - an introduction to arachnids
Spiders by Slidesgo - an introduction to arachnidsSpiders by Slidesgo - an introduction to arachnids
Spiders by Slidesgo - an introduction to arachnidsprasan26
 
VIP Kolkata Call Girl Kalighat 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kalighat 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kalighat 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kalighat 👉 8250192130 Available With Roomdivyansh0kumar0
 
原版1:1复刻塔夫斯大学毕业证Tufts毕业证留信学历认证
原版1:1复刻塔夫斯大学毕业证Tufts毕业证留信学历认证原版1:1复刻塔夫斯大学毕业证Tufts毕业证留信学历认证
原版1:1复刻塔夫斯大学毕业证Tufts毕业证留信学历认证jdkhjh
 
Air pollution soli pollution water pollution noise pollution land pollution
Air pollution soli pollution water pollution noise pollution land pollutionAir pollution soli pollution water pollution noise pollution land pollution
Air pollution soli pollution water pollution noise pollution land pollutionrgxv72jrgc
 
Russian Call Girls Nashik Anjali 7001305949 Independent Escort Service Nashik
Russian Call Girls Nashik Anjali 7001305949 Independent Escort Service NashikRussian Call Girls Nashik Anjali 7001305949 Independent Escort Service Nashik
Russian Call Girls Nashik Anjali 7001305949 Independent Escort Service Nashikranjana rawat
 
Philippines-Native-Chicken.pptx file copy
Philippines-Native-Chicken.pptx file copyPhilippines-Native-Chicken.pptx file copy
Philippines-Native-Chicken.pptx file copyKristineRoseCorrales
 
Soil pollution causes effects remedial measures
Soil pollution causes effects remedial measuresSoil pollution causes effects remedial measures
Soil pollution causes effects remedial measuresvasubhanot1234
 
Freegle User Survey as visual display - BH
Freegle User Survey as visual display - BHFreegle User Survey as visual display - BH
Freegle User Survey as visual display - BHbill846304
 

Recently uploaded (20)

Along the Lakefront, "Menacing Unknown"s
Along the Lakefront, "Menacing Unknown"sAlong the Lakefront, "Menacing Unknown"s
Along the Lakefront, "Menacing Unknown"s
 
Poly-film-Prefab cover agricultural greenhouse-polyhouse structure.pptx
Poly-film-Prefab cover agricultural greenhouse-polyhouse structure.pptxPoly-film-Prefab cover agricultural greenhouse-polyhouse structure.pptx
Poly-film-Prefab cover agricultural greenhouse-polyhouse structure.pptx
 
办理学位证(KU证书)堪萨斯大学毕业证成绩单原版一比一
办理学位证(KU证书)堪萨斯大学毕业证成绩单原版一比一办理学位证(KU证书)堪萨斯大学毕业证成绩单原版一比一
办理学位证(KU证书)堪萨斯大学毕业证成绩单原版一比一
 
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...
(NANDITA) Hadapsar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune ...
 
VIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service Gorakhpur
VIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service GorakhpurVIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service Gorakhpur
VIP Call Girl Gorakhpur Aashi 8250192130 Independent Escort Service Gorakhpur
 
Green Banking
Green Banking Green Banking
Green Banking
 
Call Girls Sarovar Portico Naraina Hotel, New Delhi 9873777170
Call Girls Sarovar Portico Naraina Hotel, New Delhi 9873777170Call Girls Sarovar Portico Naraina Hotel, New Delhi 9873777170
Call Girls Sarovar Portico Naraina Hotel, New Delhi 9873777170
 
Mumbai Call Girls, 💞 Prity 9892124323, Navi Mumbai Call girls
Mumbai Call Girls, 💞  Prity 9892124323, Navi Mumbai Call girlsMumbai Call Girls, 💞  Prity 9892124323, Navi Mumbai Call girls
Mumbai Call Girls, 💞 Prity 9892124323, Navi Mumbai Call girls
 
Call Girls Ahmedabad 7397865700 Ridhima Hire Me Full Night
Call Girls Ahmedabad 7397865700 Ridhima Hire Me Full NightCall Girls Ahmedabad 7397865700 Ridhima Hire Me Full Night
Call Girls Ahmedabad 7397865700 Ridhima Hire Me Full Night
 
Species composition, diversity and community structure of mangroves in Barang...
Species composition, diversity and community structure of mangroves in Barang...Species composition, diversity and community structure of mangroves in Barang...
Species composition, diversity and community structure of mangroves in Barang...
 
Spiders by Slidesgo - an introduction to arachnids
Spiders by Slidesgo - an introduction to arachnidsSpiders by Slidesgo - an introduction to arachnids
Spiders by Slidesgo - an introduction to arachnids
 
VIP Kolkata Call Girl Kalighat 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kalighat 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kalighat 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kalighat 👉 8250192130 Available With Room
 
原版1:1复刻塔夫斯大学毕业证Tufts毕业证留信学历认证
原版1:1复刻塔夫斯大学毕业证Tufts毕业证留信学历认证原版1:1复刻塔夫斯大学毕业证Tufts毕业证留信学历认证
原版1:1复刻塔夫斯大学毕业证Tufts毕业证留信学历认证
 
Air pollution soli pollution water pollution noise pollution land pollution
Air pollution soli pollution water pollution noise pollution land pollutionAir pollution soli pollution water pollution noise pollution land pollution
Air pollution soli pollution water pollution noise pollution land pollution
 
Russian Call Girls Nashik Anjali 7001305949 Independent Escort Service Nashik
Russian Call Girls Nashik Anjali 7001305949 Independent Escort Service NashikRussian Call Girls Nashik Anjali 7001305949 Independent Escort Service Nashik
Russian Call Girls Nashik Anjali 7001305949 Independent Escort Service Nashik
 
FULL ENJOY Call Girls In kashmiri gate (Delhi) Call Us 9953056974
FULL ENJOY Call Girls In  kashmiri gate (Delhi) Call Us 9953056974FULL ENJOY Call Girls In  kashmiri gate (Delhi) Call Us 9953056974
FULL ENJOY Call Girls In kashmiri gate (Delhi) Call Us 9953056974
 
Philippines-Native-Chicken.pptx file copy
Philippines-Native-Chicken.pptx file copyPhilippines-Native-Chicken.pptx file copy
Philippines-Native-Chicken.pptx file copy
 
Soil pollution causes effects remedial measures
Soil pollution causes effects remedial measuresSoil pollution causes effects remedial measures
Soil pollution causes effects remedial measures
 
Freegle User Survey as visual display - BH
Freegle User Survey as visual display - BHFreegle User Survey as visual display - BH
Freegle User Survey as visual display - BH
 
Gandhi Nagar (Delhi) 9953330565 Escorts, Call Girls Services
Gandhi Nagar (Delhi) 9953330565 Escorts, Call Girls ServicesGandhi Nagar (Delhi) 9953330565 Escorts, Call Girls Services
Gandhi Nagar (Delhi) 9953330565 Escorts, Call Girls Services
 

Down

  • 1. for _ in range(m): for i in range(m - 1): for j in range(n): if board[i + 1][j] == '#': board[i + 1][j], board[i][j] = board[i][j], '#' j i
  • 2. for _ in range(m): for i in range(m - 1): for j in range(n): if board[i + 1][j] == '#': board[i + 1][j], board[i][j] = board[i][j], '#' j i
  • 3. for _ in range(m): for i in range(m - 1): for j in range(n): if board[i + 1][j] == '#': board[i + 1][j], board[i][j] = board[i][j], '#' j i
  • 4. for _ in range(m): for i in range(m - 1): for j in range(n): if board[i + 1][j] == '#': board[i + 1][j], board[i][j] = board[i][j], '#' j i
  • 5. for _ in range(m): for i in range(m - 1): for j in range(n): if board[i + 1][j] == '#': board[i + 1][j], board[i][j] = board[i][j], '#' j i
  • 6. for _ in range(m): for i in range(m - 1): for j in range(n): if board[i + 1][j] == '#': board[i + 1][j], board[i][j] = board[i][j], '#' j i
  • 7. for _ in range(m): for i in range(m - 1): for j in range(n): if board[i + 1][j] == '#': board[i + 1][j], board[i][j] = board[i][j], '#' j i PASS
  • 9. for _ in range(m): for i in range(m - 1): for j in range(n): if board[i + 1][j] == '#': board[i + 1][j], board[i][j] = board[i][j], '#' j i
  • 10. for _ in range(m): for i in range(m - 1): for j in range(n): if board[i + 1][j] == '#': board[i + 1][j], board[i][j] = board[i][j], '#' j i
  • 11. for _ in range(m): for i in range(m - 1): for j in range(n): if board[i + 1][j] == '#': board[i + 1][j], board[i][j] = board[i][j], '#' j i
  • 12. for _ in range(m): for i in range(m - 1): for j in range(n): if board[i + 1][j] == '#': board[i + 1][j], board[i][j] = board[i][j], '#' j i
  • 13. for _ in range(m): for i in range(m - 1): for j in range(n): if board[i + 1][j] == '#': board[i + 1][j], board[i][j] = board[i][j], '#' j i
  • 14. for _ in range(m): for i in range(m - 1): for j in range(n): if board[i + 1][j] == '#': board[i + 1][j], board[i][j] = board[i][j], '#' j i
  • 15. for _ in range(m): for i in range(m - 1): for j in range(n): if board[i + 1][j] == '#': board[i + 1][j], board[i][j] = board[i][j], '#' j i PASS
  • 16. . . .