Exam Day : TLE

day
exam
nexus02
tle

#1

I don’t understand why this simple code is giving TLE.
Any helps would be appreciated.


Even if there is some minor(or major :P) fault in the logic, it should at max give a WA I suppose?
Thanks! :slight_smile:


#2

Solutions are not public. Put it on ideone.


#3

Can i get the practice link for this problem.


#4

Put strlen() out of the loop. It is every time calculating the length making the solution O(n^2)


#5

movers and packers gurgaon @ http://www.corporatemoversindia.com/
packers and movers gurgaon @ http://www.corporatemoversindia.com/
packers and movers in gurgaon @ http://www.corporatemoversindia.com/
packers movers gurgaon @ http://www.corporatemoversindia.com/
movers and packers in gurgaon @ http://www.corporatemoversindia.com/
packers movers in gurgaon @ http://www.corporatemoversindia.com/
packers & movers in gurgaon @ http://www.corporatemoversindia.com/
movers packers gurgaon @ http://www.corporatemoversindia.com/
packer and movers in gurgaon @ http://www.corporatemoversindia.com/
movers packers in gurgaon @ http://www.corporatemoversindia.com/
mover and packers in gurgaon @ http://www.corporatemoversindia.com/
packers and mover gurgaon @ http://www.corporatemoversindia.com/
gurgaon packers movers @ http://www.corporatemoversindia.com/
best packers and movers gurgaon @ http://www.corporatemoversindia.com/
local packers and movers gurgaon @ http://www.corporatemoversindia.com/
top 5 packers and movers in gurgaon @ http://www.corporatemoversindia.com/
packers and movers in gurgaon ncr @ http://www.corporatemoversindia.com/
mover and packer in gurgaon @ http://www.corporatemoversindia.com/
gurgaon movers packers @ http://www.corporatemoversindia.com/
packers and movers services in gurgaon @ http://www.corporatemoversindia.com/
movers and packers gurgaon reviews @ http://www.corporatemoversindia.com/
car transportation in gurgaon@ http://www.corporatemoversindia.com/
car movers@ http://www.corporatemoversindia.com/
office shifting services in gurgaon@ http://www.corporatemoversindia.com/
car move gurgaon to Bangalore@ http://www.corporatemoversindia.com/
car movers in gurgaon@ http://www.corporatemoversindia.com/
local shifting services in gurgaon@ http://www.corporatemoversindia.com/
house shifting in gurgaon@ http://www.corporatemoversindia.com/
relocation services in gurgaon@ http://www.corporatemoversindia.com/

We are amongst the most reputed companies in India providing you at your doorstep speedy, efficient, cost-effective and reliable movers packers services, relocation and related logistics services in different parts of the country. Our head office in Gurgaon, Corporate Office in Mumbai and branches in all major cities of India including Bangalore, hyrabad, Chennai, Kolkata, Guwahati, Nagpur, Ahmedabad, Surat, Noida, Faridabad, Punjab, Badodhra manages comprehensive packers and movers solutions to meet the transportation and relocation needs of our clients in different parts of country. Whether it’s a household move, office move or corporate relocation, we are packers and movers that focus on the customers’ needs.PLEASE CALL @ 9999167600,9711215215
Why Corporate Movers and Packers
We provide an array of packers movers services ranging from Local Household Shifting, Residential & Commercial Relocation, Industrial Shifting, Freight Forwarding, Logistic Services, Car Carrier & Transportation, Truck Rentals, Warehousing and Storage services.
• Our quality movers and packers services, transportation, logistics services are competitively priced, efficient and flexible to best suit the needs of our valued customers.
• We use the latest technology, highly efficient workforce, competitive price and good quality packing material to give you best, safe and secure your goods and our services at your door step.
• We operate huge warehousing facilities at competitive price.
• We are a nation wide packing moving company offering Domestic and International Packers and Movers Services that looks forward to maintain highest standards and cater to customers’ total satisfaction.


#6

movers and packers gurgaon @ http://www.corporatemoversindia.com/
packers and movers gurgaon @ http://www.corporatemoversindia.com/
packers and movers in gurgaon @ http://www.corporatemoversindia.com/
packers movers gurgaon @ http://www.corporatemoversindia.com/
movers and packers in gurgaon @ http://www.corporatemoversindia.com/
packers movers in gurgaon @ http://www.corporatemoversindia.com/
packers & movers in gurgaon @ http://www.corporatemoversindia.com/
movers packers gurgaon @ http://www.corporatemoversindia.com/
packer and movers in gurgaon @ http://www.corporatemoversindia.com/
movers packers in gurgaon @ http://www.corporatemoversindia.com/
mover and packers in gurgaon @ http://www.corporatemoversindia.com/
packers and mover gurgaon @ http://www.corporatemoversindia.com/
gurgaon packers movers @ http://www.corporatemoversindia.com/
best packers and movers gurgaon @ http://www.corporatemoversindia.com/
local packers and movers gurgaon @ http://www.corporatemoversindia.com/
top 5 packers and movers in gurgaon @ http://www.corporatemoversindia.com/
packers and movers in gurgaon ncr @ http://www.corporatemoversindia.com/
mover and packer in gurgaon @ http://www.corporatemoversindia.com/
gurgaon movers packers @ http://www.corporatemoversindia.com/
packers and movers services in gurgaon @ http://www.corporatemoversindia.com/
movers and packers gurgaon reviews @ http://www.corporatemoversindia.com/
car transportation in gurgaon@ http://www.corporatemoversindia.com/
car movers@ http://www.corporatemoversindia.com/
office shifting services in gurgaon@ http://www.corporatemoversindia.com/
car move gurgaon to Bangalore@ http://www.corporatemoversindia.com/
car movers in gurgaon@ http://www.corporatemoversindia.com/
local shifting services in gurgaon@ http://www.corporatemoversindia.com/
house shifting in gurgaon@ http://www.corporatemoversindia.com/
relocation services in gurgaon@ http://www.corporatemoversindia.com/

We are amongst the most reputed companies in India providing you at your doorstep speedy, efficient, cost-effective and reliable movers packers services, relocation and related logistics services in different parts of the country. Our head office in Gurgaon, Corporate Office in Mumbai and branches in all major cities of India including Bangalore, hyrabad, Chennai, Kolkata, Guwahati, Nagpur, Ahmedabad, Surat, Noida, Faridabad, Punjab, Badodhra manages comprehensive packers and movers solutions to meet the transportation and relocation needs of our clients in different parts of country. Whether it’s a household move, office move or corporate relocation, we are packers and movers that focus on the customers’ needs.PLEASE CALL @ 9999167600,9711215215
Why Corporate Movers and Packers
We provide an array of packers movers services ranging from Local Household Shifting, Residential & Commercial Relocation, Industrial Shifting, Freight Forwarding, Logistic Services, Car Carrier & Transportation, Truck Rentals, Warehousing and Storage services.
• Our quality movers and packers services, transportation, logistics services are competitively priced, efficient and flexible to best suit the needs of our valued customers.
• We use the latest technology, highly efficient workforce, competitive price and good quality packing material to give you best, safe and secure your goods and our services at your door step.
• We operate huge warehousing facilities at competitive price.
• We are a nation wide packing moving company offering Domestic and International Packers and Movers Services that looks forward to maintain highest standards and cater to customers’ total satisfaction.


#7

Hi,



The solutions are now public and the problems have been moved to the practice section so that you can understand the bugs in your codes.

Problem 1 - Exam Day

Problem 2 - Sad Boys

Problem 3 - Mario

Problem 4 - Quick-Math Quiz


  • Kshitij :slight_smile:


#8

Packers And Movers Bangalore" prompt moving, relocation and shifting services for people and corporation moving to “Bengaluru” and round the India. For Movers Packers Bangalore city full target report on supply of revenue
and effective Movers Packers in Bengaluru, contact today 08290173333. We include our network in major cities like Bangalore, Haridwar, Gurgaon, Chandigarh, Delhi NCR, Pune, Hyderabad, Chennai, Noida, Jaipur, Bhubaneswar, Mumbai,
Lucknow, Patna, Bhopal, Ahmedabad and Kolkata.@ http://packersmoversbangalore.in/

Packers And Movers Bangalore to Chennai @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-chennai

Packers And Movers Bangalore to Indore @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-indore

Packers And Movers Bangalore to Madurai @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-madurai

Packers And Movers Bangalore to Cochin @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-cochin

Packers And Movers Bangalore to Ranchi @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-ranchi

Packers And Movers Bangalore to Surat @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-surat

Packers And Movers Bangalore to Raipur @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-raipur

Packers And Movers Bangalore to Thane @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-thane

Packers And Movers Bangalore to Sringar @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-srinagar

Packers And Movers Bangalore to Vishakhapatnam @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-vishakhapatnam

Packers And Movers Bangalore to Lucknow @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-lucknow

Packers And Movers Bangalore to Coimbatore @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-coimbatore

Packers And Movers Bangalore to Haridwar @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-haridwar

Packers And Movers Bangalore to Patna @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-patna

Packers And Movers Bangalore to Guntur @ http://packersmoversbangalore.in/packers-and-movers-bangalore-to-guntur


#9

“Packers And Movers Gurgaon” prompt moving, relocation and shifting services for people and corporation moving to “Gurgaon”
and round the India. For Movers Packers Gurgaon city full target report on supply of revenue and effective Movers Packers in Gurgaon,
contact today 08290173333.There are many kinds of Packers and Movers Gurgaon reviews that you can see on the website so just go through
all these reviews and you will be known to the fact that which kind of wok we do provide and you would feel comfortable with us or
not.As many people have their own requirements and needs so it’s necessary that we do match to your needs and make it sure that
everything is going according to you.

Packers and Movers In Gurgaon @ http://packers-and-movers-gurgaon.in/

Packers And Movers Yamuna Nagar @ http://packers-and-movers-gurgaon.in/packers-and-movers-yamuna-nagar-haryana

Packers And Movers Sonipat @ http://packers-and-movers-gurgaon.in/packers-and-movers-sonipat-haryana

Packers And Movers Sirsa @ http://packers-and-movers-gurgaon.in/packers-and-movers-sirsa-haryana

Packers And Movers Rohtak @ http://packers-and-movers-gurgaon.in/packers-and-movers-rohtak-haryana

Packers And Movers Rewari @ http://packers-and-movers-gurgaon.in/packers-and-movers-rewari-haryana

Packers And Movers Panipat @ http://packers-and-movers-gurgaon.in/packers-and-movers-panipat-haryana

Packers And Movers Jind @ http://packers-and-movers-gurgaon.in/packers-and-movers-jind-haryana

Packers And Movers Hisar @ http://packers-and-movers-gurgaon.in/packers-and-movers-hisar-haryana

Packers And Movers Bhiwani @ http://packers-and-movers-gurgaon.in/packers-and-movers-bhiwani-haryana

Packers And Movers Ambala @ http://packers-and-movers-gurgaon.in/packers-and-movers-ambala-haryana

Packers And Movers Gurgaon to Bangalore @ http://packers-and-movers-gurgaon.in/packers-and-movers-gurgaon-to-bangalore

Packers And Movers Gurgaon to Ahmedabad @ http://packers-and-movers-gurgaon.in/packers-and-movers-gurgaon-to-ahmedabad

Packers And Movers Gurgaon to Jaipur @ http://packers-and-movers-gurgaon.in/packers-and-movers-gurgaon-to-jaipur

Packers And Movers Gurgaon to Delhi @ http://packers-and-movers-gurgaon.in/packers-and-movers-gurgaon-to-delhi

Packers And Movers Gurgaon to Kolkata @ http://packers-and-movers-gurgaon.in/packers-and-movers-gurgaon-to-kolkata

Packers And Movers Gurgaon to Chennai @ http://packers-and-movers-gurgaon.in/packers-and-movers-gurgaon-to-chennai

Packers And Movers Gurgaon to Pune @ http://packers-and-movers-gurgaon.in/packers-and-movers-gurgaon-to-pune


#10

Packers and Movers Indore - Call 09303355424, Local Household Shifting in Indore, Domestic Home Relocation from Indore. International Home Relocation from Indore, Office Shifting within Indore, Car and Bike Transportation from Indore, Safe Packing and Moving Services, Visit @ http://bit.ly/2zShGFR


#11

Packers and Movers Indore - Call 09303355424, Local Household Shifting in Indore, Domestic Home Relocation from Indore. International Home Relocation from Indore, Office Shifting within Indore, Car and Bike Transportation from Indore, Safe Packing and Moving Services,
Packers and Movers Indore @ https://www.manishpackersmoversindore.in/
Packers and Movers Bangalore @ https://www.manishpackersmoversindore.in/packers-movers-bangalore.html
Packers and Movers Gurgaon @ https://www.manishpackersmoversindore.in/packers-movers-gurgaon.html
Packers and Movers Kolkata @ https://www.manishpackersmoversindore.in/packers-movers-kolkata.html
Packers and Movers Mumbai @ https://www.manishpackersmoversindore.in/packers-movers-mumbai.html
Packers and Movers Bhopal @ https://www.manishpackersmoversindore.in/packers-movers-bhopal.html
Packers and Movers Chennai @ https://www.manishpackersmoversindore.in/packers-movers-chennai.html
Packers and Movers Chandigarh @ https://www.manishpackersmoversindore.in/packers-movers-chandigarh.html
Packers and Movers Delhi @ https://www.manishpackersmoversindore.in/packers-movers-delhi.html
Packers and Movers Hyderabad @ https://www.manishpackersmoversindore.in/packers-movers-hyderabad.html
Packers and Movers Jaipur @ https://www.manishpackersmoversindore.in/packers-movers-jaipur.html
Packers and Movers Jodhpur @ https://www.manishpackersmoversindore.in/packers-movers-jodhpur.html
Packers and Movers Jabalpur @ https://www.manishpackersmoversindore.in/packers-movers-jabalpur.html
Packers and Movers Nagpur @ https://www.manishpackersmoversindore.in/packers-movers-nagpur.html
Packers and Movers Raipur @ https://www.manishpackersmoversindore.in/packers-movers-raipur.html
Packers and Movers Surat @ https://www.manishpackersmoversindore.in/packers-movers-surat.html
Packers and Movers Udaipur @ https://www.manishpackersmoversindore.in/packers-movers-udaipur.html
Packers and Movers Pune @ https://www.manishpackersmoversindore.in/packers-movers-pune.html
Packers and Movers Ahmedabad @ https://www.manishpackersmoversindore.in/packers-movers-ahmedabad.html
Packers and Movers Vadodara @ https://www.manishpackersmoversindore.in/packers-movers-vadodara.html
Movers and Packers Indore @ https://www.manishpackersmoversindore.in/packers-and-movers-indore.html


#12

Packers and Movers Indore - Call 09303355424, Local Household Shifting in Indore, Domestic Home Relocation from Indore. International Home Relocation from Indore, Office Shifting within Indore, Car and Bike Transportation from Indore, Safe Packing and Moving Services,
Packers and Movers Indore @ https://goo.gl/NYfJYk
Movers and Packers Indore @ http://bit.ly/2TclCKy
Packers and Movers Gurgaon @ http://bit.ly/2TdMsl8
Packers and Movers Kolkata @ http://bit.ly/2OIdPAC
Packers and Movers Mumbai @ http://bit.ly/2TbxP23
Packers and Movers Bhopal @ http://bit.ly/2K2IgRp
Packers and Movers Chennai @ http://bit.ly/2T8KaDX
Packers and Movers Chandigarh @ http://bit.ly/2PtCTQS
Packers and Movers Delhi @ http://bit.ly/2PvnYFV
Packers and Movers Jaipur @ http://bit.ly/2DDTkDQ
Packers and Movers Jodhpur @ http://bit.ly/2zRNWJ5
Packers and Movers Jabalpur @ http://bit.ly/2K1ZAWC
Packers and Movers Nagpur @ http://bit.ly/2zTXOBZ
Packers and Movers Raipur @ http://bit.ly/2TcxtrH
Packers and Movers Surat @ http://bit.ly/2K2QIjo
Packers and Movers Udaipur @ http://bit.ly/2OG4LMt
Packers and Movers Pune @ http://bit.ly/2K2Wth5
Packers and Movers Ahmedabad @ http://bit.ly/2TcxxYt
Packers and Movers Vadodara @ http://bit.ly/2PrhPdW
Packers and Movers Indore Blog @ http://bit.ly/2DBBh1b
Packers and Movers Guwahati @ http://bit.ly/2QRzE2j


#13

Oops,totally forgot it! Here you go.