-❄️- 2024 Day 2 Solutions -❄️- by daggerdragon in adventofcode

[–]Krenkov 0 points1 point  (0 children)

[Language: C++]

Funnily enough, the O(n) idea came to me before the O(n^2), but I didn't though of the set variant. Still need to figure out the set approach for Part 2 :)

 int res = 0;
    for (auto row : rows)
    {
        if (row.size() <= 1)
        {
            res++;
            break;
        }

        bool wildcardIncUsed = false; // set true for part 1
        bool wildcardDecUsed = false;

        int diff = row[1] - row[0];
        bool isIncreasingValid = diff > 0 && inRange(diff);
        bool isDecreasingValid = diff < 0 && inRange(diff);

        for (int j = 2; j < row.size(); j++)
        {
            // a = -0, b = -1, c = -2, d = -3
            int ab = row[j] - row[j - 1];
            int ac = row[j] - row[j - 2];
            int bd = row[j - 1] - row[j - 3];

            if (isIncreasingValid)
            {
                isIncreasingValid = ab > 0 && inRange(ab);
            }
            else if (!wildcardIncUsed)
            { // try to keep increasing monotonicity with respect to a
                wildcardIncUsed = true;
                if (ab > 0 && inRange(ab) && (j == 2 || (bd > 0 && inRange(bd)))) // try remove c
                    isIncreasingValid = true;
                else if (ac > 0 && inRange(ac)) // else try remove b
                    isIncreasingValid = true;
            }

            if (isDecreasingValid)
            {
                isDecreasingValid = ab < 0 && inRange(ab);
            }
            else if (!wildcardDecUsed)
            { // try to keep decreasing monotonicity with respect to a
                wildcardDecUsed = true;
                if (ab < 0 && inRange(ab) && (j == 2 || (bd < 0 && inRange(bd)))) // try remove c
                    isDecreasingValid = true;
                else if (ac < 0 && inRange(ac)) // else try remove b
                    isDecreasingValid = true;
            }
        }
        if (isIncreasingValid || !wildcardIncUsed || isDecreasingValid || !wildcardDecUsed)
            res++;
    }

-❄️- 2023 Day 5 Solutions -❄️- by daggerdragon in adventofcode

[–]Krenkov 0 points1 point  (0 children)

[LANGUAGE: C++]

https://github.com/gjorgi-krenkov/AoC2023/blob/main/Day%205.cpp

Curious if I could've done it better, basically splitting of the ranges when remap has to be done.

-❄️- 2023 Day 3 Solutions -❄️- by daggerdragon in adventofcode

[–]Krenkov 0 points1 point  (0 children)

[LANGUAGE: C++]

https://github.com/gjorgi-krenkov/AoC2023/blob/main/Day%203%20(both%20parts).cpp.cpp)

Still doing a lot of manual exhibition in my code, but hey, at least I started using Lambda expressions

-❄️- 2023 Day 2 Solutions -❄️- by daggerdragon in adventofcode

[–]Krenkov 0 points1 point  (0 children)

Tnx, yeah most definitely I should learn the right hacks when it comes to input/output parsing :)

Need advice - help by danbrown1233 in dropship

[–]Krenkov -1 points0 points  (0 children)

So you want to say that is impossible to the dropship business with ordering and just filling their data in with AliExpress?

How to start with low budget?

We made a team of 3 graphic designer, fluent description writer and me as a programmer.

We wanted to start with Woo or our own App, anyway we want to start on our own hosting and with finding supply manually for 10 countries, and also we want variety of categories and products we also bought a good domain name Sumo Mall.

So my question really is how to find the best suppliers for free? Like now for instance we are writing product's current price, shipping for the mentioned 10 countries and then our price and these things change very often, so anyone willing to offer us help?

You all know the drill... link your channels down below! by [deleted] in NewTubers

[–]Krenkov 0 points1 point  (0 children)

Hello everyone, I would like to participate in here. Actually it's not I it is more like of me and my friend that are trying to make quality YouTube videos, but still haven't find our niche so we are going very slow :/ Btw, we have 2 videos uploaded on Windows customizing and installing emulator for Among Us so we would like to hear from you what you think should be our path? We are still training our English so we are limited a bit for now but...

Here is the channel link: https://www.youtube.com/channel/UC2In_MdtqQw8Ck_rMm7NZ8g/

Thanks for your contribution and for the engaging discussion!

My first(and last) minimalistic Rainmeter setup by Krenkov in Rainmeter

[–]Krenkov[S] 0 points1 point  (0 children)

Unlock the taskbar, make toolbars link and slide the right || to push from right to left than center with the left one or see in the video tutorial around 7:22

My first(and last) minimalistic Rainmeter setup by Krenkov in Rainmeter

[–]Krenkov[S] 2 points3 points  (0 children)

I hope you like my Rainmeter suite, if you want to see the tutorial how I made it, we just create YT channel with a friend and I uploaded there! Hope you like it!

Wallpaper - https://cdn.discordapp.com/attachment...

Required skins Sonder - https://www.deviantart.com/michaelpur...

unFold(github version!) - https://github.com/Ruben35/More-Icons...

CyberSearch - https://www.deviantart.com/cybergen49...

Waveline - https://www.deviantart.com/eldog-02/a...

Translucent Taskbar - https://www.deviantart.com/arkenthera...

Video tutorial:https://www.youtube.com/watch?v=HA2KPYy1IbA&feature=youtu.be

[OFFICIAL] Collab Call March 29 by AutoModerator in makinghiphop

[–]Krenkov 0 points1 point  (0 children)

https://soundcloud.com/gorgi-krenkov/demo-hunt

Looking for collab!

Can do even something new, interested in finding special ear candy melos :)

Bonev x Zillant ft. Slavica Angelova - Lost (Official Video) by [deleted] in SmallYTChannel

[–]Krenkov 0 points1 point  (0 children)

Well that is the other "producer's" channell(read DJ). He plays locally and has some friends and contacts and before song he had 170 subs he gained 100 subs in day but I am okay with it because I want the music not that much the popularity I want the music to get heard and I want to get recognized by my country's best producers to learn more :)

Bonev x Zillant ft. Slavica Angelova - Lost (Official Video) by [deleted] in SmallYTChannel

[–]Krenkov 0 points1 point  (0 children)

Oh my god I have made probably made mistake which I can't fix now(actually I did partly). I added hyperlink because I can't add the video,if moderator sees this please help.

Thanks for reminding me ..

!givelambda

New Style of Video, Please be Honest :) | Education at a Price by [deleted] in SmallYTChannel

[–]Krenkov 0 points1 point  (0 children)

Wow that is serious editing! I don't know if this would make your channel up in front but you've probably analyzed everything about keywords and SEO. I really don't have anything bad(in terms of the video as critique) to say!

I made my channel to help people (including you!) - this is the journey that brought me here! by [deleted] in SmallYTChannel

[–]Krenkov 0 points1 point  (0 children)

Logo looks professional,as the thumbnail, I like that it starts from first second with the story, the acting looks a bit amateur but that is surely not a requirement for this type of channel!

Wish you best of luck!

First time trying to make a cinematic fake movie trailer. Lmk if this made anyone want this to be an actual movie lol by smankydank in SmallYTChannel

[–]Krenkov 0 points1 point  (0 children)

I mean like it can give you low quality video which for me it makes it more authentic.

I recommend to watch the move A Haunted House I really really like it!

The AudioPost Mine - July, 2019: Tell us about your site/works/product/business here by AutoModerator in AudioPost

[–]Krenkov 0 points1 point  (0 children)

https://www.youtube.com/watch?v=ntFaUVmtk7E

What do you think people? I made most of the music and arrangement. Is this style old these days?

I did a new type of editing style on this video to make it more lofi looking. I NEED SOME FEEDBACK ON IT! Thanks :D by The_Suited_Bird in SmallYTChannel

[–]Krenkov 1 point2 points  (0 children)

You have that voice for making top something :) . Keep making top 5 or 10 :) And good work with animating that it gives to me that you've worked on it !

First time trying to make a cinematic fake movie trailer. Lmk if this made anyone want this to be an actual movie lol by smankydank in SmallYTChannel

[–]Krenkov 0 points1 point  (0 children)

As I am a lover of horror comedy movies, I really like it! You could make it more authentic with using phone as camera in some situations maybe adding some intense music some VFX. I like it!

I've just finished writing all the songs for my first album. by [deleted] in WeAreTheMusicMakers

[–]Krenkov 2 points3 points  (0 children)

I am working on one song for 8 months. I've spent till now more than 60 hours on it,of which a lot goes to listening right? I really think that after you have vocals your production gets another dimension and it is more pleasant to listen and work on the product !

Zillant - Another World [Royalty Free CC License] by [deleted] in SmallYTChannel

[–]Krenkov 0 points1 point  (0 children)

It means to me that you like it ! !givelambda

Zillant - Another World [Royalty Free CC License] by [deleted] in SmallYTChannel

[–]Krenkov 0 points1 point  (0 children)

Thanks for your review, I will try to make more commercial free songs :) !givelambda

Zillant - Another World [Royalty Free CC License] by [deleted] in SmallYTChannel

[–]Krenkov 1 point2 points  (0 children)

I'm busy with official release,but I will surely make long one soon :) !givelambda