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
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
how did you know that it was using axios?
Awesome dude and Thank you too
Thank you too
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
my solution worked ... its like in axios call you have to get data using response.data
@@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
@@kamisettylokesh3156 why use fetch when you can use axios? why dont YOU write the snippet using fetch?
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
You forgot the await keyword before axios.get 🙂
Sir code ko description me dal Dena chahiye na easy ho jata
hackerrank blocked my github repo ..can share on google drive
@@tkssharma sir link plz
Only 4 test case passed .
live tests keeps changing
noice, i dont know if its smart to look at these after i tryed myself and failed =(
they keep changing tests and problem
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;
}
}
bro ,source code please!
github.com/tkssharma/hackerrank-full-stack/tree/master/Full%20Stack%20Certifications
@@tkssharma link not working