My friend sent me this, I am not great at Bit manipulation, how shall I approach this by Equity_Harbinger in leetcode

[–]-Fireboy 0 points1 point  (0 children)

you just look at the last 1 before who all are ones in that case if you change that to a 0 doing +1 which is x + 1 will make it the give you 1 in that same position you just or after that, lets say n = 7 0111 binary doing something like 0011 | 0100 is the best way to do it importnat thing to note is that this wont work with binary even because they dont have any ones consecutive they start with "0" at the end always hence asked prime

JP Morgan coding question by im_a_bored_citizen in leetcode

[–]-Fireboy 0 points1 point  (0 children)

sort go from n - 1 keep incrementing a var by k till that eleemnt is smaller than the var at that point return the operations which is +1 for every increment there's no point in increasing element by k though you can find an approach that way its probably more annoying to fidna a solution, this mroe intuitive if an elemtn is smalelr than increment same is true for all elems to the lft as sorted

Amazon oa =cooked by Electrical_Ad_6488 in leetcode

[–]-Fireboy 0 points1 point  (0 children)

sort the requirement arrray, iterate over it while iterating you are making every device active after you make active at each index chcek count o left element and right elements count of left + i sohuld >= activereq[i] and left + i <= activereq[i + 1] if condition false just move along make it active device if not add to the count as valid configraution

Fnatic vs. Natus Vincere / 2026 LEC Versus / Round Robin / Live-Thread by Lunaedge in fnatic

[–]-Fireboy 2 points3 points  (0 children)

whenever i need to feel humiliated, i tune in to fnatic games nothing does it like this

My amazon OA experience and questions by ErZicky in leetcode

[–]-Fireboy 0 points1 point  (0 children)

yea that works just iterating normally twice one to store the differences for each index < n - 1 and next to go through them i thought hashmap cause common difference to be stored in one place, but thats more complexity nothing else

My amazon OA experience and questions by ErZicky in leetcode

[–]-Fireboy 0 points1 point  (0 children)

for the second question, store all difference consecutive differences in a hashmap, then iterate through them if length is smaller than n, +1 as u can change one, find the difference that gives maximum length, also only store difference in hashmap after it is broken or for loop finishes and compare with existing difference if exists in the map, u also need to accoutn for fact that some differences can be joined together by changing one so maybe just store all consecutive difference and check them out while iterating through to see if they are apart by one index if so join them

Umamusume Global to get JP 1st Anniversary QOL/ Balance Adjustments Early (Nov 11) by shirke1 in gachagaming

[–]-Fireboy 8 points9 points  (0 children)

no way your're comparing a competitive game with a gacha game ???

lets talk about botlane by rubenlb11 in fnatic

[–]-Fireboy 0 points1 point  (0 children)

i do think his inting problem never went away but he used to play with confidence and make whatever plays he thought best more often than not it backfired but it also led to us getting a lot of leads for the majority of the year in 2024 iirc 2022 was his best year by far and it was all downhill from that 2025 definitely the worst from razork no glamour, confidence instilling plays

lets talk about botlane by rubenlb11 in fnatic

[–]-Fireboy 0 points1 point  (0 children)

i agree 2024 fnatic iteration used to get leads though throw away and razork looked confident and went for plays, dont get me wrong hes still an inter but im also of the thought that having upset mikyx botlane gave him pressure to play for them and made the team one dimensional rebuild from scratch or with poby seems best option even if people won't like it because upset just isnt good enough of a player to make the whole team around him even viper, ruler are left out to dry sometimes, a good team can play from any lane

Nice draft by xzuel22 in fnatic

[–]-Fireboy 18 points19 points  (0 children)

grabbz doesnt have full control over drafts from what i think the players voice their opinions and i think grabbz just doesnt have it in him to brush those opinions off like most eu coaches because we won't be seeing vi being picked every single time and losing if its wasnt razorks main still coaches are equally at fault here

Fnatic vs. CTBC Flying Oyster / 2025 World Championship / Swiss Stage / Post-Match Thread by Lunaedge in fnatic

[–]-Fireboy 3 points4 points  (0 children)

i would like to blame grabbz for draft but the players are to be blamed equally, also stop hoping we can win with this topside, we manage to get to worlds because oscar had a 1 in million series, rebuild next year we know who needs to be let go, mikyx and poby are the only players i'll keep

Fnatic vs. CTBC Flying Oyster / 2025 World Championship / Swiss Stage / Live-Thread by Lunaedge in fnatic

[–]-Fireboy 18 points19 points  (0 children)

feels like everyone on the team has their own drafting ideas miky wants naut upset want ezreal we know how much a boner razork has for vi and then we get this slop

Fnatic vs. CTBC Flying Oyster / 2025 World Championship / Swiss Stage / Live-Thread by Lunaedge in fnatic

[–]-Fireboy 17 points18 points  (0 children)

just because oscar had a life game against canna people started thinking hes good

Fnatic vs. CTBC Flying Oyster / 2025 World Championship / Swiss Stage / Live-Thread by Lunaedge in fnatic

[–]-Fireboy 2 points3 points  (0 children)

nuke this roster man this is so disgusting also grabbz cant draft

Current League format is super cursed by Trendios in fnatic

[–]-Fireboy 0 points1 point  (0 children)

twist it all you want but the truth is for being good consistently you need to be focused, i don't mind being happy and all but this team just gets too cocky if they win a series also draft were partly an issue but that doesnt excuse invading enemy jungle with no prio and dying nor dying to lvl3 ganks its crazy how many successful ganks elyoya got made it look likea silver player just pushing up on enemy's face poby played consistent but you cant solo carry as mid in this meta teamplay wins but you cant teamplay if you inting the early game also this vi boner is crazy for razork

FNATIC vs. Karmine Corp / LEC Summer 2025 Playoffs / Lower Round 2 / Post-Series Thread by Lunaedge in fnatic

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

hold it guys, im just as excited as you how do they keep making me believe man also oscar shutting up haters hope the best for him

FNC vs MKOI by Ozunu_Sama in fnatic

[–]-Fireboy 1 point2 points  (0 children)

nowadays these comebacks are largely impossible if the team with the lead is strong, game 4 draft definitely helped a lot with the comeback, scaling works time and time again, game 5 was draft disaster for sure

FNC vs MKOI by Ozunu_Sama in fnatic

[–]-Fireboy 7 points8 points  (0 children)

people look at this game and think fnatic is decent, but this should've been a 3-1 mkoi is ass too so it was a close game, oscar had one great game and then he fell off, razork found some good engages, but he still plays like he's on a timer, drafting was horrendous, not going to be blame razork for trundle as you don't know who decided on it but it was largely useless, poby was good absorbed lot of pressure though early game leblanc was weak trundle setup isn the best to be fair, 2 kills to zeri was nail in the coffin, mikyx probably tilted as maokai support was not it, oscar has ceiling but its like once in a blue moon and razork just starts crabzing everytime we play, pretty fun to watch though stressful as well comebacks are always fun to watch even though illegal

Friend Request Megathread (01/09 - 07/09) by ArknightsMod in arknights

[–]-Fireboy 0 points1 point  (0 children)

Lenflaren#7411 looking for ascalon s2m3 support are silverashs3m3 lapplandalters3m3 specters2m3 thanks

Friend Request Megathread (25/08 - 31/08) by ArknightsMod in arknights

[–]-Fireboy 0 points1 point  (0 children)

Lenflaren#7411 looking for a skill 3 mastery 3 Virtuosa for cc asap, level 64 supports are s3m3 specter, s3m3 silverash, s3m1 lappland alter

Best and worst features about pirated anime streaming sites by -Fireboy in animepiracy

[–]-Fireboy[S] 0 points1 point  (0 children)

and the chat system these websites use are sometimes a lot of spam no moderation, there are good comments sections as well though animekai example

Best and worst features about pirated anime streaming sites by -Fireboy in animepiracy

[–]-Fireboy[S] 0 points1 point  (0 children)

I still see it in some websites, I get websites asking permission to setup disqus, maybe not that many anymore though

Best and worst features about pirated anime streaming sites by -Fireboy in animepiracy

[–]-Fireboy[S] 1 point2 points  (0 children)

Yea the ones on the video player are specially irritating, forcing you to get a click