Python: Microsoft Interview Question By Daily Developing - 12 June 2022 8 5 FacebookTwitterPinterestWhatsApp Python: Microsoft Interview Question In this video, we will be solving an interview question that was asked by Microsoft. source RELATED ARTICLESMORE FROM AUTHOR Devops Automation Overview of how Ansible module connects to Docker API ARTIFICIAL INTELLIGENCE How to get access to Google Bard AI ChatGPT competitor Devops Automation The Beginners Guide to Running Docker Containers on AWS 5 COMMENTS oh I solved it :function ss(arr, key) { let subArrs = [] for(i=0;i<arr.length;i++) { let subArr = [] for(j=0;j<key;j++) if(arr[i+key-1]!= undefined) subArr.push(arr[i+j]) subArr.sort((a, b) => a – b); if(subArr.length === key) subArrs.push(subArr) } return subArrs } Log in to leave a comment Thank you It was very interesting Log in to leave a comment Good job dude Log in to leave a comment Thanks for making these videos:)) they are very helpful Log in to leave a comment I always waiting for your teaching videos and classes. Thank you for dedicating your time and energy into this. Log in to leave a comment LEAVE A REPLY Cancel replyLog in to leave a comment
oh I solved it :function ss(arr, key) { let subArrs = [] for(i=0;i<arr.length;i++) { let subArr = [] for(j=0;j<key;j++) if(arr[i+key-1]!= undefined) subArr.push(arr[i+j]) subArr.sort((a, b) => a – b); if(subArr.length === key) subArrs.push(subArr) } return subArrs } Log in to leave a comment
I always waiting for your teaching videos and classes. Thank you for dedicating your time and energy into this. Log in to leave a comment
oh I solved it :
function ss(arr, key) {
let subArrs = []
for(i=0;i<arr.length;i++) {
let subArr = []
for(j=0;j<key;j++) if(arr[i+key-1]!= undefined) subArr.push(arr[i+j])
subArr.sort((a, b) => a – b);
if(subArr.length === key) subArrs.push(subArr)
}
return subArrs
}
Thank you It was very interesting
Good job dude
Thanks for making these videos:)) they are very helpful
I always waiting for your teaching videos and classes. Thank you for dedicating your time and energy into this.