Vradhit
Vradhit
RReactiflux
Created by Vradhit on 8/2/2022 in #help-js
Vradhit – 11-46 Aug 2
Oh ok thanks for understanding me this concept
12 replies
RReactiflux
Created by Vradhit on 8/2/2022 in #help-js
Vradhit – 11-46 Aug 2
Ok so initialising with 0 and then pushing the new element will it over rite correct that 0 inside it
12 replies
RReactiflux
Created by Vradhit on 8/2/2022 in #help-js
Vradhit – 11-46 Aug 2
What is the difference of declaring empty array over this 0?
12 replies
RReactiflux
Created by Vradhit on 8/2/2022 in #help-js
Vradhit – 11-46 Aug 2
Ok thanks for the info
12 replies
RReactiflux
Created by Vradhit on 8/2/2022 in #help-js
Vradhit – 11-46 Aug 2
Ok we can also specify using fill method also right?
12 replies
RReactiflux
Created by Vradhit on 7/30/2022 in #help-js
Vradhit – 14-13 Jul 30
for loop
9 replies
RReactiflux
Created by Vradhit on 7/30/2022 in #help-js
Vradhit – 14-13 Jul 30
actually that internally backtrack works
9 replies
RReactiflux
Created by Vradhit on 7/30/2022 in #help-js
Vradhit – 14-13 Jul 30
/** * @param {number[]} nums * @return {number[][]} */
var permute = function(nums) {


let res = [];
let temp = [];
backtrack(nums,temp,0);
return res;

function backtrack(nums,temp,start)
{
if(start===nums.length){
res.push([...temp])
return;

}

for(let i=start;i<nums.length;i++){

temp.push(nums[i]);
backtrack(nums,temp,i+1);
temp.pop();

}



}


};
var permute = function(nums) {


let res = [];
let temp = [];
backtrack(nums,temp,0);
return res;

function backtrack(nums,temp,start)
{
if(start===nums.length){
res.push([...temp])
return;

}

for(let i=start;i<nums.length;i++){

temp.push(nums[i]);
backtrack(nums,temp,i+1);
temp.pop();

}



}


};
9 replies
RReactiflux
Created by Vradhit on 7/30/2022 in #help-js
Vradhit – 14-13 Jul 30
Wrong Answer Runtime: 91 ms Your input [1,2,3] Output [[1,2,3],[1,3],[2,3],[3]] Expected [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
9 replies
RReactiflux
Created by Vradhit on 7/30/2022 in #help-js
Vradhit – 14-13 Jul 30
now the error is not there but i am not getting permuation results
9 replies
RReactiflux
Created by Vradhit on 7/30/2022 in #help-js
Vradhit – 14-13 Jul 30
I changed i to start
9 replies
RReactiflux
Created by Vradhit on 6/20/2022 in #help-js
Vradhit – 13-33 Jun 20
C an anyone please tell me how can we do this?
5 replies
RReactiflux
Created by Vradhit on 6/20/2022 in #help-js
Vradhit – 13-33 Jun 20
I told to whitelist the URL. Such that it should deny the request for unauthorized host?
5 replies
RReactiflux
Created by Vradhit on 6/20/2022 in #help-js
Vradhit – 13-33 Jun 20
So I have got a pen test report when there is a host bing.com in request header it is redirecting to http://bing.com/file
5 replies
RReactiflux
Created by Vradhit on 6/20/2022 in #help-js
Vradhit – 13-33 Jun 20
I have one pen test issue on host header positioning
5 replies