Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,081 members, 7,957,038 topics. Date: Tuesday, 24 September 2024 at 05:34 AM |
Nairaland Forum / Science/Technology / Programming / Competitive Programming (2717 Views)
A Thread For Competitive Programming / Thread For Competitive Programming (2) (3) (4)
Re: Competitive Programming by Nobody: 10:48am On Jul 30, 2020 |
vheckthor1:I think this is O(n^2) because of the max function. I'll try and explain what I mean later. |
Re: Competitive Programming by Patiee: 10:54am On Jul 30, 2020 |
Excuse me, I'm out of the topic. Does anybody here know how long it takes for the openWeather API keys to be activated. They emailed me that it will take a couple of hours and it has been a day now. |
Re: Competitive Programming by Donpre(m): 1:04pm On Jul 31, 2020 |
Darivie04: Hello, what book/resource did you use to study algorithms |
Re: Competitive Programming by Brukx(m): 12:14am On Aug 01, 2020 |
Karleb:
I think this will do 1 Like |
Re: Competitive Programming by Donpre(m): 12:50am On Aug 01, 2020 |
Brukx:Wow! brilliant approach but I got lost at the if-else statement. What does that do? |
Re: Competitive Programming by Brukx(m): 1:12am On Aug 01, 2020 |
Donpre: I've replied you on WhatsApp. But in case for others that might find it helpful The first for-loop will append the reminants of the array into the mainlist. But at times the main list is 2 dimensional. So the second for-loop iterates through all the elements of the mainlist and copies them into the clockwiseList thus final list(clockwiseList) is one dimensional |
Re: Competitive Programming by LucaB: 10:40am On Aug 03, 2020 |
Brukx: Nice approach |
Re: Competitive Programming by LucaB: 10:16pm On Aug 03, 2020 |
What materials do you guys make use of for data structures? |
Re: Competitive Programming by Karleb(m): 10:15am On Aug 04, 2020 |
LucaB: |
Re: Competitive Programming by vheckthor1: 8:39pm On Aug 04, 2020 |
I uploaded answers it was deleted, I was even ban from making comments in programming section for a while. what have I done wrong? |
Re: Competitive Programming by Jummate(m): 10:51pm On Aug 04, 2020 |
Karleb:
This will work for any size of this problem |
Re: Competitive Programming by ToyinDipo(m): 2:08am On Aug 05, 2020 |
These clockwise algorithms posted so far will execute in O(n ^ 2) where (r * c = n), due to the reverse method calls. I am not sure it needs to be complicated, I wish I could explain without writing the code Didn't test nor write in an IDE, but this should prolly work
|
Re: Competitive Programming by Karleb(m): 2:55am On Aug 05, 2020 |
.
|
Re: Competitive Programming by Karleb(m): 2:58am On Aug 05, 2020 |
....
|
Re: Competitive Programming by Brukx(m): 7:46am On Aug 05, 2020 |
Karleb:This na heavy challenge o |
Re: Competitive Programming by Karleb(m): 8:51am On Aug 05, 2020 |
Brukx: I've actually been looking at it for a while and I don't want to conclude it a tree. But why don't you Google it, there is no sin in that. Or you could attempt the second question which is quite simple. Just implement the findMin function, it'll get the deepest value which in this case is on the left side of the BST. |
Re: Competitive Programming by Brukx(m): 9:26am On Aug 05, 2020 |
Karleb:Google Kwa? I'm almost done with it though 1 Like |
Re: Competitive Programming by Nobody: 9:30am On Aug 05, 2020 |
Deicide:Me too.... i was shocked to this post. A normal naija IT person just learn python for 3 months jump Algorithms and Data structures + their implementations, and the learn django or jump into Data Sci.,Ai etc. 1 Like |
Re: Competitive Programming by Nobody: 9:33am On Aug 05, 2020 |
tensazangetsu20: use recursion instead of iteration. |
Re: Competitive Programming by Nobody: 9:36am On Aug 05, 2020 |
pseudonomer: bro you can actually help yourself by registering with codesignal. search "codesignal" using google-Register and start practicing. |
Re: Competitive Programming by Nobody: 9:38am On Aug 05, 2020 |
Karleb:This is a typical python problem |
Re: Competitive Programming by Nobody: 9:49am On Aug 05, 2020 |
Looking at the solutions you guys paste here... most of it were all copied. |
Re: Competitive Programming by Karleb(m): 9:57am On Aug 05, 2020 |
BlaqTesla: It's okay to copy answer. No one is grading anyone here, most important is the solution and explanation if you could. |
Re: Competitive Programming by Karleb(m): 10:00am On Aug 05, 2020 |
BlaqTesla: I'll be happy to see your solution |
Re: Competitive Programming by Nobody: 10:03am On Aug 05, 2020 |
Karleb:I don't write python. I code on C language. |
Re: Competitive Programming by Karleb(m): 10:06am On Aug 05, 2020 |
BlaqTesla: Give your answer in C then. |
Re: Competitive Programming by Nobody: 10:12am On Aug 05, 2020 |
Karleb:we don't do turple in C. |
Re: Competitive Programming by Donpre(m): 10:16am On Aug 05, 2020 |
BlaqTesla:Are you saying Nigerians aren't smart enough to come up with answers to those questions? 1 Like |
Re: Competitive Programming by Brukx(m): 10:49am On Aug 05, 2020 |
Donpre:Some persons are good at doubting what they don't understand 1 Like |
Re: Competitive Programming by Nobody: 10:57am On Aug 05, 2020 |
Karleb:I think I've solved this. |
Re: Competitive Programming by Donpre(m): 11:05am On Aug 05, 2020 |
Brukx:Ah swear, it's annoying. Like what's so hard there that one of us can't solve. The belief that Nigerians can't compete with the rest of the world is just sick. We're not there yet but we're not dumb either 1 Like |
Tutorials For Mobile App Development / How do I Put My Site Online / Please I Need Help With This Assignment
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 37 |