Don't wanna be here? Send us removal request.
Text
Nearest Neighbor
I'm back here!!! Although I haven't been cp-ing or lt-ing I created a very simple program... mainly for testing an algorithm entirely made by me!! Of course it's nothing shiny, just the nearest neighbor, using spatial grid because I expected the elements to move rapidly and have read somewhere that k-d trees are not so good with moving objects. Not sure how true is that though, didn't try making k-d trees... I might. Well, I probably should go back to leetcode. Do leetcode at least 1 full day a week!
0 notes
Text
Linux take over
So I finally could switch to linux, I chose Fedora with i3wm because it's popular distro yet not as mainstream, and i3wm because I think it's cool way to manage windows, rather than having everything scattered across the entire screen. Despite having multiple workspaces I never really needed any because all windows could be scrambled in one workspace and could access all of them, at the cost of looking for the right window I opened several minutes ago, just to find I closed it and forgot about it. Beside that it looks nice, with Steam I managed to run all games I was playing. So far so good.
Now, about the programming, I am making git server... but with web page (something like github). Personally I don't like nodejs or js in general, but I gotta admit, it's easier and faster to make an http server in nodejs than in C/C++. Maybe one day if I ever become decent I will create a decent functional web server in C/C++ (such that supports multiple subpages, GET and POST requests etc)
0 notes
Text
So today I solved another leetcode problem from LeetCode 75. Yesterday I had problem with the question. Found another solution and did it, rather slow though. I look at solutions and see something I literally tried earlier and did not work for some reason. How earlier map<vector<int>, int> didn't work for me? Duh, anyway. That only means I need to solve more problems!
0 notes
Text
Strange thing have happened!
Last time I struggled with even an easy problem, and now I somehow made a working hard algorithm that ran perfectly first try. Then submitted being sure it's going to fail due to Time Limit Exceeded, but somehow I barely managed to fit in!
Suspicious...
0 notes
Text
Oh wow, a hard leetcode problem I couldn't solve a year ago is on today's daily.
+ I solved it
- I solved it in O(nm) where m is max value of input array.
I've got quite a lot to work on if I want to be decent.
And about contests, all are held when I can't participate. Only atcoer gives me hope with past contests being held when I potentially could. That being said practice contest, task B took me some time only to get a result of 49 AC and 21 WA, somehow. The only reason I can think of for why it fails is because of exceeding limit of Q.
I hope one day I can solve this type of questions in less than 20 minutes.
0 notes
Text
Today I aside from the daily leetcode I also started the 75 questions. So far it goes smoothly. In codeforces I constantly get stuck and I have a hard time debugging and finding why my code's wrong, and then finding a possible solution I sometimes rewrite the entire code. But that's good, that's what's required to learn. I hope I can do more tomorrow.
0 notes
Text
Contest times are very uncomfortable for me, but I registered anyway. If I won't make it, I won't. But if I do, I'll do my best
0 notes
Text
Today and yesterday was a tough day. Barely found time for leetcode yesterday, but finished it in about 5 minutes. Today's one took me some time but I eventually got it by myself. I think I will do some codeforces questions now, and check out the upcoming contests!
0 notes
Text
Today's leetcode was leetcode I already solved long time ago. That didn't stop me from resolving it, in about 5 minutes and then looking for a closing bracket that went to the end of the if statement instead of closing a function (of which returned value was compared) and obviously it wasn't a syntax error, but what was surprising is that it worked until a certain test case. Welp, that made it 10 minutes longer.
I also helped a bit with HTML and CSS of my relative's website.
0 notes
Text
Today's leetcode was so easy I forgot I did it.
I finally configured vim in my WSL. Who thought it's a good idea to make black background with dark blue and dark red text as a default color scheme?
0 notes
Text
Why now?
A year or few ago I searched for some Competitive Programming on google, youtube and similar. I did not find much. But today out of the blue youtube decides to show me a 4 years old video which shows what I was always missing in my searching - websites with contests. All I've found was leetcode and clash of code on codingame until now. Sounds like I might consider getting into one of the contests soon.
0 notes
Text
daily leetcode
I just finished today's leetcode. Funny how previous hard problem I solved rather quickly and worked pretty fast. Meanwhile it took me much longer on easy problem yesterday and almost an hour on medium problem from today. Of course my code is slow, I used recursion, I shall check out other's solutions now..
1 note
·
View note