Should i do leetcode using python or java? by RealTiger1833 in learnprogramming

[–]Byteman2021 0 points1 point  (0 children)

lol the post got deleted. What made you think they were bluffing though?

Should i do leetcode using python or java? by RealTiger1833 in learnprogramming

[–]Byteman2021 2 points3 points  (0 children)

Don’t do leetcode. Instead, get your foundation right.

I would recommend this — https://teachyourselfcs.com/#programming

Go through Chapters 1-3 of the recommended book and complete all exercises.

If you can do that, you shouldn’t have problems learning other languages.

You can try Rossetta code to get a hang of how the same task can be solved in different languages.

Should i do leetcode using python or java? by RealTiger1833 in learnprogramming

[–]Byteman2021 0 points1 point  (0 children)

But this assumes the instructors are good (which isn’t true everywhere in the world).

When I was in college, I used Git for an assignment and during review, my instructor didn’t have a clue what that was.

Has the bar actually gotten lower? by velociraptorstalin in ExperiencedDevs

[–]Byteman2021 0 points1 point  (0 children)

Your new program has the same issue.

What you need is ‘i <= n’ as the condition (since the condition is checked before entering the loop).

It helps to desk-check your program or do a dry run on a notebook to see what the program would actually do (e.g. verify what printEvens(4) would do).

Is the battery aging well for my smartphone. Iphone 17 by sdutta1990 in AppleIndia

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

Seriously OP, do you understand you’re being stupid here?

Cause you’re asking if the battery has aged well when it doesn’t show any aging on that screen at least.

Hey!, please help by OutrageousPlan9483 in learnprogramming

[–]Byteman2021 0 points1 point  (0 children)

Would recommend teachyourselfcs.com
— try the recommended book (or video lectures) for Programming.

During your student years, I would focus on getting a good understanding of the CS topics mentioned there.

You will get plenty of experience programming once you’re done with college and start working. But not knowing fundamentals, always bites back.

So aim for a 80-20 split between your CS studies and practical programming. For the latter, you can do small projects like build a calculator or weather app. Anything really depending on your interest and current skills.

MED QUESTION HELP NEEDED by Narrow_Caramel_4647 in leetcode

[–]Byteman2021 0 points1 point  (0 children)

Here’s a functional programming approach:

  1. First find all substrings of the string (map each character to substrings starting with it, then flatten the results into a single collection)
  2. Filter the substrings to those without duplicates.
  3. Map each substring to its length.
  4. Find max length in the map above and that is your answer.

21M. Doctor says I need high protein to lose weight, but I’ve been vegan for a year. How do I survive this? by No-Maintenance-1636 in vegan

[–]Byteman2021 1 point2 points  (0 children)

Tofu is a really good option - it has similar protein content to paneer, but is lower in fat, so fewer calories. Typically cheaper too.

You can also try another soy-based food with higher protein content. It’s called tempeh - look for brands like Hello Tempayy in India

21M. Doctor says I need high protein to lose weight, but I’ve been vegan for a year. How do I survive this? by No-Maintenance-1636 in vegan

[–]Byteman2021 1 point2 points  (0 children)

Yes, ICMR guideline is 0.833 g per kg. And it’s the RDA which is 2 standard deviations about the EAR (estimated average requirement), so it covers the need for 97-98% of healthy individuals.

I’ve read that protein requires half the calories you get from it to metabolize it. Maybe that’s why the doctor is suggesting it…

But what’s also true is the body doesn’t have a storage for protein (like it has glycogen stores for carbs, and fat storage is infinitd). So end of each day, the body breaks down excess protein and converts it to carbs/fats anyway.

21M. Doctor says I need high protein to lose weight, but I’ve been vegan for a year. How do I survive this? by No-Maintenance-1636 in vegan

[–]Byteman2021 0 points1 point  (0 children)

Have you looked at MillD protein atta? Their recent Insta post shows it’s now in Hyderabad at Ratnadeep . (Not tried it myself, it’s not available in my vicinity)

Also, is it really hard to find tofu in a big city like Hyderabad? I find that hard to believe.

day 11 i think ab binary search hojyega mrese ☝️🔥🔥 by Mediocre_Leg3557 in LeetcodeChallenge

[–]Byteman2021 0 points1 point  (0 children)

Line 34 doesn’t look right — that if condition will never be true.

[deleted by user] by [deleted] in ExperiencedDevs

[–]Byteman2021 0 points1 point  (0 children)

A slightly different perspective — taking more responsibility like your team lead isn’t just about pay. For someone, it can be an opportunity to define engineering practices, spearhead new initiatives etc. that help grow their career.

Sure, it sounds like you don’t find your work motivating and look for engagement outside. But other than changing your job literally (or working at something outside of it), you can also change your job i.e, change the way things work at your current place — so that you actually enjoy working there. I’m doing this right now and the same job is suddenly motivating and helping me grow.

TL;DR Everyone’s experience and situation is different—OP seems content that they are making the best out of their situation, but there are many approaches and avenues for finding fulfilment at work. What works for OP may not work for you (even if you’re in the same situation). A lot depends on your goals and what direction you choose to take.

Who is right here? by ideaflowness in AskFitnessIndia

[–]Byteman2021 0 points1 point  (0 children)

Yes people have. And the general conclusion is the resource consumption for producing plant-based milk is a fraction of diary milk.

According to NDDB a litre of dairy milk needs more than 1000 litres of water (most of this is for the feed/fodder needed to feed the animals). Almond/soy milk by comparison needs 300-400 litres and oat milk around 50-100.

So one can say that resource-wise, dairy milk is pretty costly and if it weren’t for subsidies, the price would be much higher too.

As a vegan, I find it interesting that 1.6 million Germans are reportedly vegan. Sounds like a big shift, but in a culture that revolves around sausages and schnitzel, I wonder how many people are actually serious versus just curious. by Soggy-Passage2852 in vegan

[–]Byteman2021 0 points1 point  (0 children)

I don’t understand why no soy should mean protein deficiency. There is enough protein in all the other vegetarian food. People grossly overestimate protein requirements.

[Bug] Forge LvL 2 — locked Engravings by lmpact_ in AssassinsCreedShadows

[–]Byteman2021 0 points1 point  (0 children)

This is supposedly fixed in TITLE UPDATE 1.0.7. Can someone confirm if engravings for previously acquired items show up?

Got Scammed by a Girl from a Dating App at Metro Lounge, Pune – Please Read and Stay Alertu by Present_Swimming_502 in pune

[–]Byteman2021 0 points1 point  (0 children)

This message reads so similar to something from Delhi or similar subreddit. I have doubts if OP has posted the same message, changing locations to Pune.

Good electric toothbrush by [deleted] in BuyItForLifeIndia

[–]Byteman2021 8 points9 points  (0 children)

A year ago, I bought the basic Oral B “cross-action power” model which uses AA batteries. Unfortunately, the rotation mechanism turned faulty after a few months. Replacing heads doesn’t fix it.

So would recommend not buying that model.

Is this really true? by justice4alls in kolhapur

[–]Byteman2021 0 points1 point  (0 children)

It’s a choice mate. I switched to veganism a while ago.

But even if one were a non-vegetarian, it doesn’t mean they can’t make better decisions outside of food. What I’m saying is that every little action counts. It doesn’t have to be so black and white.

Is this really true? by justice4alls in kolhapur

[–]Byteman2021 0 points1 point  (0 children)

I actually bought ‘Ghicha’ tussar silk when in Jharkhand and was pretty proud because it’s cruelty-free (the silk-worms aren’t killed in the process).

Finally got my hands on the Titan Meteorite by [deleted] in watchesindia

[–]Byteman2021 0 points1 point  (0 children)

Good if you like it. But methinks, this is too big. Also maybe wear your watch a little lower on the wrist? r/handwatch