Solving MakeMyTrip Frontend Interview Question | Count Numbers | JavaScript

Поділитися
Вставка
  • Опубліковано 25 вер 2024
  • In this video, we will solve a front-end interview question from top companies like MakeMyTrip. We will implement a function that returns the count of numbers inside an array.
    Question link: devtools.tech/...
    Book A Mock Interview Session: topmate.io/yom...
    Support Us: devtools.tech/...
    Try now using the links below
    devtools.tech/...
    devtools.tech/...
    You can support our channel via:
    rzp.io/l/suppo...
    devtoolstech.g...
    www.buymeacoff...
    ************************************************************
    Devtools Tech is a UA-cam channel started as a collaborative effort among like-minded engineers to provide high-quality programming tutorials for free. We firmly believe in knowledge sharing and easy access to quality content for everyone. Hence, this channel is an effort to give back to the community and a step toward our belief -- "We rise by lifting others".
    Interview questions: devtools.tech/...
    Interview resources: devtools.tech/...
    Hidden Gem: devtools.tech/...
    Team Members:
    Yomesh Gupta
    Portfolio: yomeshgupta.com
    LinkedIn: / yomeshgupta
    Twitter: / yomeshgupta
    #javascript #makemytrip #interviewquestions #frontend #web #devtoolstech #code #programming #development #code
    ***********************************************************

КОМЕНТАРІ • 15

  • @DevtoolsTech
    @DevtoolsTech  5 місяців тому

    Try question here: devtools.tech/questions/s/write-a-function-to-return-the-count-of-numbers-in-an-array-or-makemytrip-frontend-interview-question---qid---cjzjsfJUP0zHb2lgPJVy
    Other useful links:
    topmate.io/yomeshgupta
    devtools.tech/questions/all
    devtools.tech/lists/all

  • @anujtiwari7218
    @anujtiwari7218 4 місяці тому

    Tried a question got an approach .The way you write a code it is worth learning . Thanks sir ..

  • @trivedi2690
    @trivedi2690 5 місяців тому

    hi bhaiya do you have 30 min in this week would love to book a topmate session regarding a switch .

    • @DevtoolsTech
      @DevtoolsTech  5 місяців тому

      Yes sure. Please book through topmate.io/yomeshgupta

  • @1-_-I
    @1-_-I 5 місяців тому

    Hey bro, how to tackle hacker Rank front end challenges, is there any other site where we can practice?

    • @DevtoolsTech
      @DevtoolsTech  5 місяців тому

      I haven't tried other platforms honestly in terms of solving more questions. Only one I can recommend is devtools.tech only.

    • @1-_-I
      @1-_-I 5 місяців тому

      @@DevtoolsTech haha nice bhai, ofcourse devTools is there

    • @DevtoolsTech
      @DevtoolsTech  5 місяців тому

      Learnersbucket you can try too!

  • @allpeace1
    @allpeace1 5 місяців тому

    More Video on Interview ques, Thanks in advance

  • @trivedi2690
    @trivedi2690 5 місяців тому

    const isNumber =(nums )=>{
    let count=0
    for (let items of nums){
    if(typeof(items)=== "number"){
    count++;
    }
    if(Array.isArray(items)){
    count+= isNumber(items)
    }
    }
    return count;
    }
    const res=isNumber(input)
    console.log(res)

  • @gantavyasaraswat2130
    @gantavyasaraswat2130 4 місяці тому

    Simple solution without using Recursion
    function countNumbers(collection) {
    let count = 0;
    let newArr = collection.flat(Infinity);
    for(let i =0;i

    • @DevtoolsTech
      @DevtoolsTech  4 місяці тому

      Yes, it is one of the ways do it. Thanks for sharing!

  • @manojpathak2500
    @manojpathak2500 8 днів тому

    const countNumbers = (arr) => {
    return arr.reduce((totalCount, el) => {
    if (typeof el === 'number') totalCount++;
    else if (Array.isArray(el)) totalCount += countNumbers(el);
    return totalCount;
    }, 0);
    };