Javascript Intermediate Certification Hackerrank Latest #01

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • HackerRank All skills certifications
    Github Link
    github.com/tks...
    - github.com/tks...
    - github.com/tks...
    - github.com/tks...
    I am covering all basics and intermediate level certifications from Hackerrank, our focus will be on how to approach for the problem and how to pass all tests before submitting problem.
    hackerrank javascript basic and intermediate certification
    hackerrank SQL basic and intermediate certification
    hackerrank REST APIs basic and intermediate certification
    hackerrank React basic and intermediate certification
    hackerrank Angular basic and intermediate certification
    hackerrank Node JS basic and intermediate certification
    hackerrank Python basic and intermediate certification
    Notes: tests keeps changing so don't expect that when you are attempting you will see the same question

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

  • @CaptainSloose
    @CaptainSloose ปีที่แล้ว

    Well done ... i was screaming at the screen "YOU ARENT SPECIFYING THE INDEX!! Unless i am stupid and this guy knows some crazy shit i dont" ....until you figured it out at 24:10...
    thanks for these videos

  • @ershad489
    @ershad489 ปีที่แล้ว +2

    how did you know that it was using axios?

  • @saranguru6100
    @saranguru6100 2 ปีที่แล้ว +1

    Awesome dude and Thank you too

    • @tkssharma
      @tkssharma  2 ปีที่แล้ว

      Thank you too

  • @kamisettylokesh3156
    @kamisettylokesh3156 2 ปีที่แล้ว

    In 1st challenge, At line 31, You destructed the object (i.e., assigned the data property in that object to a variable called data) .Now that data variable is an array . But in line 32, Why u used if( data.data & data.data.length!=0) instead of if(data && data.length!=0) ?. Please anyone clarify me

    • @tkssharma
      @tkssharma  2 ปีที่แล้ว

      my solution worked ... its like in axios call you have to get data using response.data

    • @kamisettylokesh3156
      @kamisettylokesh3156 ปีที่แล้ว

      @@tkssharma Can't we do the same solution using fetch function in javascript, If so can you pls share the solution snippet when using fetch method.. Thanks

    • @CaptainSloose
      @CaptainSloose ปีที่แล้ว

      @@kamisettylokesh3156 why use fetch when you can use axios? why dont YOU write the snippet using fetch?

  • @TrelloTV
    @TrelloTV 2 ปีที่แล้ว +1

    Did anyone get stuck with the output??? I was able to console.log the user total and get the right answer but nothing ever output to the actual log..so i was stuck with the right answers everytime with a weird "~ no response on stdout ~" error

    • @SachinYadav-yx1rc
      @SachinYadav-yx1rc ปีที่แล้ว

      You forgot the await keyword before axios.get 🙂

  • @veerpratapsinghji
    @veerpratapsinghji ปีที่แล้ว

    Sir code ko description me dal Dena chahiye na easy ho jata

    • @tkssharma
      @tkssharma  ปีที่แล้ว

      hackerrank blocked my github repo ..can share on google drive

    • @veerpratapsinghji
      @veerpratapsinghji ปีที่แล้ว

      @@tkssharma sir link plz

  • @mr.gentlemen01
    @mr.gentlemen01 ปีที่แล้ว

    Only 4 test case passed .

    • @tkssharma
      @tkssharma  ปีที่แล้ว

      live tests keeps changing

  • @reydez84
    @reydez84 2 ปีที่แล้ว

    noice, i dont know if its smart to look at these after i tryed myself and failed =(

    • @tkssharma
      @tkssharma  2 ปีที่แล้ว

      they keep changing tests and problem

    • @kikevanegazz325
      @kikevanegazz325 2 ปีที่แล้ว

      class ParkingLot {
      // Add the methods here
      parkingSlots = [];
      constructor(slots){
      for(let k = 0; k < slots; k++){
      this.parkingSlots.push({
      occupied: false,
      slot: k,
      carId: null
      })
      }
      }
      park(carId){
      let parked = false;
      for(let i=0; i < this.parkingSlots.length; i++){
      if(!this.parkingSlots[i].occupied){
      this.parkingSlots[i].occupied = true;
      this.parkingSlots[i].carId = carId
      parked = true;
      break;
      }
      }
      return parked;
      }
      getSlots(){
      return this.parkingSlots.map(i => {
      if(i.carId){
      return i.carId;
      }
      return null;
      })
      }
      remove(carId){
      let available = false;
      for(let i=0; i < this.parkingSlots.length; i++){
      if(this.parkingSlots[i].occupied && this.parkingSlots[i].carId === carId){
      this.parkingSlots[i].occupied = false;
      this.parkingSlots[i].carId = null;
      available = true;
      }
      }
      return available;
      }
      }

  • @Sajeeb365
    @Sajeeb365 2 ปีที่แล้ว +1

    bro ,source code please!

    • @tkssharma
      @tkssharma  2 ปีที่แล้ว

      github.com/tkssharma/hackerrank-full-stack/tree/master/Full%20Stack%20Certifications

    • @federod2001
      @federod2001 2 ปีที่แล้ว +1

      @@tkssharma link not working