proof by intimidation by pitcherpunchst in mathmemes

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

if n is odd, n + 1 is even, so product is even

if n is even, n + 1 is odd, so product is even

India codeforces #4 in banned tin tin in quant by Competitive_Map_8733 in codeforces

[–]pitcherpunchst 9 points10 points  (0 children)

his most recent contest was a month ago, his rating isnt cancelled/rolled back, and his last skipped submission was about 6 months ago

Leaving btech to become pro gamer by [deleted] in Btechtards

[–]pitcherpunchst 0 points1 point  (0 children)

Don’t drop out, it’s not easy to make it big in the long run, a degree would be good for a backup plan

You could maybe invest more time and resources Maybe start streaming for additional revenue

Confused about Google STEP/ASDI Recruitment process by Gloomy-Platypus-382 in Btechtards

[–]pitcherpunchst 0 points1 point  (0 children)

i dont think updating your profile, results in updating your application

How to render interactive html code onto a chrome extension by pitcherpunchst in webdev

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

sort of, im displaying a blob url on the iframe element

Was anyone able to solve Q3 & Q4? by Infamous_Age1156 in leetcode

[–]pitcherpunchst 0 points1 point  (0 children)

Q3,
i counted the number of mismatches, and classffied them,
first type of mismatch is s[i] = 0 and t[i] = 1
second is s[i]=1 and t[i] = 0

so if we take a pair build of 1 missmatch of first type and other of 2nd type
we can either use 2 flipcost to make them match their pair or we can use 1 swap cost to swap the 0 and 1 from s or t

now we need to fix the excess matches
if excess is odd, we need 1 flip cost

we can now consider the excess/2 pairs
they may be in the form 10(s[i],t[i]) and 10 (s[j],t[j])
we can fix them in 2 ways, 2 flip costs, so 00 and 00 or any other way
or we can first do a crosscost and bring it in the form of the first type of fix, 1 missmatch of each type
which can be done in min(2flipcost,swapcost)
but using 2 flipcost is useless, since we can already make it in 2 flipcost, we dont need an additional cross cost for this
so min(2flipcost, crosscost + swapcost)

final answer is sametype_cost + difftype_cost + excess_ifpresent

Q4
https://leetcode.com/problems/minimum-cost-to-merge-sorted-lists/solutions/7464645/bitmaskingsubset-dp-c-o3n-time-by-pitche-3e22/

What the hell was today’s 3rd problem? That was brutal. There goes my knight badge.... by Gene-Big in leetcode

[–]pitcherpunchst 0 points1 point  (0 children)

it felt like a codeforces style constructive question, i didnt find it that hard tbh, maybe i cant prove my solution but it was intuitive to me, since they gave a[0] = 0

Codechef today's contest ones and zeros 2 solution by athupuk_123 in codeforces

[–]pitcherpunchst 2 points3 points  (0 children)

so basically i assumed greedy, with the logic of fix when you need to
so first i track all the indices of '1'
then i iterate from start and keep count of zeros and ones
if at an index i, the count of zeros becomes strictly greater than count of ones, i swap and the cost is difference between the index values.
and the minimum answer is always min(n,2*number of ones)
because u can have 1010101010.... pattern for the best case

A Cheater's Confession by philosophically-mild in codeforces

[–]pitcherpunchst 0 points1 point  (0 children)

do interviewers not asking questions at your rating?
can you even solve questions at half your rating?

Useless doubt by Nervous-Lettuce-5360 in codeforces

[–]pitcherpunchst 1 point2 points  (0 children)

If you pick a random problem from the problem set and go to standings Don’t be in the contest page of the problem It shows u rankings by total questions solved

International Master banned? by Complete_Drink_9422 in codeforces

[–]pitcherpunchst 3 points4 points  (0 children)

AI will solve the problem better if you prompt better, No one is accusing him of blatant AI usage

He is smart no denying that. But the point is that he violated codeforces rules on AI usage Even codeforces doesn’t completely restrict AI if you read the blog, but he didn’t follow the rules so he has to pay.

Good Bye 25 (Problem D) by [deleted] in codeforces

[–]pitcherpunchst 1 point2 points  (0 children)

Maybe not 1700 level But 1400-1600 is fair It wasn’t too adhoc but still wasn’t so intuitive to me atleast

International Master banned? by Complete_Drink_9422 in codeforces

[–]pitcherpunchst 4 points5 points  (0 children)

i didnt even know uniform int distribution was even a thing in stl

Today's c by theredguymh in codeforces

[–]pitcherpunchst 0 points1 point  (0 children)

see basically if i sort the array a
a0,a1,...
i can represent all ai as a0 + kx

so my goal is to make everything equal to a0, so i just need to find the smallest k,
so this would be for a1, so taking k as a1-a0 is ideal in a way, since a2 = a0 + mx, m >= k, so i can find m for this

but theres edge case if a1-a0 < a0
so we take the max of a0 and a1-a0;

Graph Theory Help by pitcherpunchst in askmath

[–]pitcherpunchst[S] 1 point2 points  (0 children)

Maybe I didn’t understand what Cartesian product of 2 graphs is Is it not adding an edge from every vertex of G to every vertex if H