u/Hot-Personality-4160

Going to gym after 3 years. Help me out

I am 21M 5'11 54kg and i want to join gym. I had joined 3 years before during JEE and had to quit after 3months because of improper time management. Now i have free time and want to build muscles, I am skinny but can do pullups and pushups and my physique had worsen due to less physical activity and improper diet. Please suggest me what to keep in mind. What split to follow at the start and later. Protein intake : i am planning to cosume 1 scoop whey protein and paneer or meat daily for 100-120 g intake completion.

reddit.com

Received an unknown mail titled with my password. What to do?

I was doing my work and suddenly received an email from Microsoft account that new app is connected to your account (BHMailer). I got scared and immediately revoked the permission and changed my outlook mail password. That mail is a bit old and I haven't used it from quite a while. When I opened mailbox, I recieved sign in notifications of riot games , instagram, random websites and ALSO this one . I changed instagram password aswell. what should I do ? I am scared honestly

u/Hot-Personality-4160 — 13 days ago

This is a shared room with 2 study table and a sofa cum bed. Used AI to clean the room rest everything is same. Would like to have suggestions

u/Hot-Personality-4160 — 20 days ago

I earned knight badge and can now do 3 questions mostly in lc contest and also got pupil in t contest. Currently in third year .How should I proceed from here on? Should I grind cf or start upsolving to 4 in leetcode ?

u/Hot-Personality-4160 — 22 days ago

Reconstructed OA Problem Statement ⚙️

You are given an integer array threshold of size n, where threshold[i] represents the threshold value of the i-th worker.

Each worker can be assigned one of two states:

  • Operating
  • Stalled

A worker is considered malfunctioning if either of the following happens:

Rules

  1. If a worker is in Operating state, and the total number of workers in Operating state is less than threshold[i], then the worker malfunctions.
  2. If a worker is in Stalled state, and the total number of workers in Operating state is greater than or equal to threshold[i], then the worker malfunctions.

Task

Return number of arrangements of assigned states (Operating or Stalled) to all n workers such that no worker malfunctions.

My Answer :

Sort the threshold array ct[] in increasing order.

Let k be the number of workers in the Operating state.
For a valid arrangement:

  • All operating workers must have threshold <= k
  • All stalled workers must have threshold > k

So we only need to find valid values of k.

Approach:

  1. Check k = 0 If ct[0] > 0, then all workers can remain stalled, so increment count.

  2. Check middle split points For each i = 0 to n-2, assume:

    k = i + 1

Then first k workers operate and rest are stalled.
This is valid if:

ct[i] <= k && ct[i+1] > k

Equivalent to:

i + 1 >= ct[i] && i + 1 < ct[i+1]

If true, increment count.

  1. Check k = n If:

    ct[n-1] <= n

then all workers can operate, so increment count.

My answer only passed 3 testcase out of 15. What is my mistake ?

reddit.com
u/Hot-Personality-4160 — 24 days ago
▲ 2 r/IndianLegalAdvice+1 crossposts

I live in a 25 year old apartment with no parking space given for 4 wheelers. So it is practiced by the residents to park infront of the building where between the footpath and the road. But the problem is there are 4 shops infront of the apartment. 1 is closed always but others are open. 2 of the open ones do not cause any problem on parking infront of the shop but there is one fastfood restaurant (starters) shop whose owner/renter (idk) who asked to move the car a few times. I thought if there is space i can shift the car so i handed keys a few times to them. But one day he comes to me walking on the footpath and suddenly warns me about wrecking the car if not moved. I was completely in shock. I was 18 at that time and didn't know anything about the law and couldn't tell my father since the matter would skyrocket. I told him we also need space to park and it is comon for both. If there is no space left we have no choice but to park into the space infront the building. He said he doesn't know anything he just wants that space empty. I handed the key next day and it the number plate was 1/4 broken. I didn't know how to react as I was in my jee prep. After a month or so we shifted to another place (due to other reason) and after 3 years we have came here again. I couldn't sleep thinking of that warning since they are kind of people who seem to not listen and do whatever favors them and also they have kept a water drum and sink and a dustbin on the footpath. I got to know from a neighbour that police came a few times and still they continue to keep it. I want to know what should i do if any other warning comes when parked and also who has the right to park vehicle in there ? Thanks in advance

reddit.com
u/Hot-Personality-4160 — 26 days ago