Join Our Discord & Whatsapp Community! 🎉 🔗 discord.gg/bbJXxFcauK 🔗 chat.whatsapp.com/BTlYJt2pCxj1m3H4aJZOGX Whether you're preparing for a job interview or just passionate about coding, you'll find valuable resources, discussions, and support from like-minded individuals. See you there!
Bhaiya If i create a int temp[ ][ ] =new int[m][n] .The space complexity would be O(m*n) and what about time complexity..Will it be (m*n) even if I don't traverse as it is initialized with 0
Join Our Discord & Whatsapp Community! 🎉
🔗 discord.gg/bbJXxFcauK
🔗 chat.whatsapp.com/BTlYJt2pCxj1m3H4aJZOGX
Whether you're preparing for a job interview or just passionate about coding, you'll find valuable resources, discussions, and support from like-minded individuals.
See you there!
Osm
Thanks ❤️
single video for this question on yt(Great Job Brother)
Thanks bhai! ❤️
Bhaiya If i create a int temp[ ][ ] =new int[m][n] .The space complexity would be O(m*n) and what about time complexity..Will it be (m*n) even if I don't traverse as it is initialized with 0
Yes it will be m.n even if you dont traverse it. Because it initialises that much amount of space and put zeroes in it :)
@LeetCodeIO-Anuj Okk thanks..