[Animated] LeetCode 191 Number of 1 Bits | Blind 75

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ม.ค. 2025

ความคิดเห็น • 8

  • @CodeInMotion-IO
    @CodeInMotion-IO  หลายเดือนก่อน +1

    Stay tuned for more binary problems on the Blind 75!

  • @WhatNameHere
    @WhatNameHere หลายเดือนก่อน

    Great explanation and video, keep bringing more

    • @CodeInMotion-IO
      @CodeInMotion-IO  หลายเดือนก่อน

      Thanks, will do!

    • @WhatNameHere
      @WhatNameHere หลายเดือนก่อน

      @ how can i connect with you?

  • @michaelharrington5860
    @michaelharrington5860 หลายเดือนก่อน

    JavaScript Solution:
    const hammingWeight = (n) => {
    let count = 0;
    while (n !== 0) {
    count += n & 1;
    n = n >>> 1;
    }
    return count;
    }

    • @CodeInMotion-IO
      @CodeInMotion-IO  หลายเดือนก่อน

      Keep them coming :)

    • @michaelharrington5860
      @michaelharrington5860 หลายเดือนก่อน

      @@CodeInMotion-IO What should be my strategy with practicing these? Should I just do the Blind 75 over and over again during the job search until I can code the solutions for these at will? I was thinking about throwing them into a question bank and drawing as many as I can each day until the bank is empty, then repopulate it and repeat. Is this a good strategy? Also, as far as language and framework specific topics, how should I prepare? I'm most comfortable coding in JavaScript, but I have experience with Java as well. I find myself stressing because there is just so much information that I feel could be asked. Do non FAANG companies typically have really tough interviews as well? Apologies for the bombardment of questions

    • @CodeInMotion-IO
      @CodeInMotion-IO  หลายเดือนก่อน

      @@michaelharrington5860 Hey Michael, I would spend a couple of hours learning python since it is much less verbose than java/js and can help you code out solutions using less lines of code which is helpful under the stress of an interview. Then, brush up on data structures and their time complexities (arrays, linked list, heaps, graphs, etc). Then I would understand common leetcode patterns (see my video for this). Then go into the blind 75 and use it to practice python to master it. After the blind 75, make sure you can re-do them confidently and move onto system design if you're interviewing for a senior role.