Is there a simple way to assign all elements of a 2D array to a value(except 0) without loop ?
With bigger constraints using loop is just not an option.
Indian Computing Olympiad (ICO)
Need personalized 1-on-1 mentorship?
Upgrade to CommonLounge Plus for text-based one on one mentorship that includes code reviews, feedback on projects, career counseling and much more.
Find a mentor →
About the author
Taksh Pratap Singh
Add a comment
Create your free account
I have an account. Sign in instead
Your Full Name
Sign up with Facebook
By signing up, you agree to our
Popular Paths & Courses
Natural Language Processing
New Paths & Courses
UX & UI Design
How to Contribute
Upgrade to Pro
Help and FAQ
Privacy, Terms & Refunds
Get in touch
Church St, San Francisco, CA, USA
+1 844 318 7406
Copyright 2016-2019, Compose Labs Inc. All rights reserved.