 What's up guys. So in this video, I'm going to explain to you guys how to compete on top coder. So what's weird about top coder is that the interface is very difficult to use. It's kind of just submitting problems are also kind of difficult. So I'll just I'll just explain how you do it. So what you would do is you go to arena top coder.com. And why you go on arena top coder.com is because top coder also has like other contests are like create an app development, stuff like that. But we just wanted to competitive program for now. Then what happens is that normally, in this case, there's like a SRM match that would happen. And they'll tell you the date what it is. I already registered so you just click register. And it'll tell you the register. So then it tells you when the coding phase starts. So the registration phase already started, right? They want the coding phase start, which in this case, it's tells you the time period time zone and what it's going to be at. So for me, it's going to start at 12 p.m. February 13 at 12, 12, 05 p.m. Eastern, right? So this is based on my time zone. And what I would do is in order to compete, I would like wake up at this time period, then I go into here and then normally there's like a room and you click on it, it would you would enter the room. You also could chat with people here. So in this case, you could also do a while still beta. When you enter in a room, then normally there's like three problems. And then you have to on the right side, it says open. I don't know. I don't actually know how you they don't have practice rooms in here. Wow, it's really strange. But ideally, there's like three problems that occur and you have to open all three of them, right? What don't open up, don't open all three problems and do it because it's based on when's last time you opened a problem. So then you would click on one of the problems that would open up. So in this case, let's let's say let's actually just find a problem. So there was a there's a problem in the last conscious traveling plans, I think. What was it? What was it? It was traveling. And I'm not not traveling salesman plans. It was something. Hold up. We go to practice problems. Quick. It was definitely there was. Let me go to the last contest. Yeah, it's really difficult to use actually. sRM. So I did poorly on the last one, because I didn't think of getting hacked in the test cases. Pass this one. So if you go to the previous contest, let's go here. Okay, so yeah, so it tells you the it's kind of difficult to read. But yeah, so these are the three problems. It would when you enter in a top coder contest, there's three problems, right? And then you would open whichever problem. So here, challenge 60. Yeah, so here, I would click on this problem set. And it would tell me the would tell me the here, it would tell me the problem statement. So here, I could go to problem statement. So let's yeah, so this is what this would be a problem statement. It's really strange how let's actually go to the problem name. Yeah, okay, so I'm actually going to open this up on the top coder arena. Let's see if I can do that actually. So now I could actually try to submit planning trips. Okay, so it's planning trips. So I'm going to open up in the arena board, practice problems, planning trips. That's really difficult to use. Okay, so this is what would happen when you open up problem statement in the arena, right, when you actually have it occur. So the difference between top coder and the other problems that you actually have to create a class, right, you have to create your own class and the method signature, otherwise, otherwise, it would, you would fail, right? You would, you can't submit anything. So this is a problem statement on one of the last contests, just yesterday, a two days ago, actually. So planning trips, you have vacations of like that. So how would you submit? So what you would do is based on whatever language to me, it's C++. But you can actually click on this side of this editor, and then change if it's a C++ or Java or whatever language you want to use. Do they have C? No, that's really difficult to use because you can't even scroll down on this. Okay, so they have Java C++ and C sharp. I'm gonna use C++. And that's what it shows. This is really difficult to use. Okay. So if you want to submit this, you have to type in the class name, make sure it's correct. So in this, in this case, I would do class planning trips. Right. And this would be the class. And then I have to make sure the method signature is correct. So here, if you look at the method, they want a method of find, and they want the parameters to be an integer and a integer array, a vector of integers. So here, this is a method signature that we have to have int find int a vector int num. So we we could just copy this actually, so you just copy this. And this is a method signature that you need to do to submit. Right. So, yeah, all your methods have to be public, by the way. So we have to do this make it public. Otherwise, it would, it would fail. Right. Okay, so this is basically a gist of it. And then remember, it has to return an integer. So you have to return something. You above your class, you should include all your libraries that you're going to include. So like, for me, it's, there's a way to include one line of C++ to include all libraries. I think I'm going to go to Visual Studio just to get the top signatures I'm going to use, because those are the libraries I'm going to use. Right. So here, yeah, this include bits std string C++. So this would include most of the standard libraries from GCC, right. And then in C++, you have to use namespace std because I need to use the standard namespace. So then that stops me from writing std every single time. Yeah, that's the gist of it. And then to compile and submit. Oh, yeah. So they also give you like example test cases that you could use here. So before you submit something is how you submit on the arena. So for now, I'm just going to return zero, which is going to be completely wrong. So what you have to do first is you have to compile. And it will tell you if it's compiled correctly. Wow, I didn't using namespaces. Why did what's the problem? std doesn't have a type. Okay, I don't have vector include. So yeah, include vector. Really strange. Okay. What else is using namespace std nested namespace amplify? Do I have two namespaces? Hold up. I don't think so. Okay, so you have to make sure you get all these warnings done. So it says A is not used. So I just got to do something like a plus plus or something. I don't know just to make sure that compiler when you shut up. Okay, same thing. nested namespace before namespace using namespace std. Oh, name pace, namespace. Okay, unused parameter num. Okay, so unused parameter, let's just do like num add zero equals zero. I don't know just to make the compiler shut up. Okay, so now once you finish compiling successfully, what you do is you could click on test panel on the right, and then you could check all and run each test case. And then ideally for me, it all failed, right? But it would tell you if you're the current sample cases that you input it failed or not, which is going to help you a lot. So before you submit, you could actually see the test cases failed or not, right? After that, if it did pass all that just click submit. And then yeah, it just clicks yes to submit your code. So yeah, that's basically how we would use top coder. If you want to practice problems, how I got to this area, just click on practice problems right here. So here, I click on practice problems, we log into and then you could search whatever problem you want. So yeah, that's pretty much it just a bit. It's kind of hard to use, but that's how you would use top coder. Recom subscribe, I'll check you guys later. Peace.