1 / 5

Doc DSA Roadmap_Day3

ud83dude80 Day 3 of our DSA Mastery Series! Stay ahead in your tech career with HeyCoach's expert insights. <br>

HeyCoach
Download Presentation

Doc DSA Roadmap_Day3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 30DAYS DSA ROADMAP Swipeformore>

  2. DAY3 Matíices Rotate Image Diťťiculty–Medium Youaiegivenannxn2Dmatiixiepiesenting an image, iotate the image by 90 degiees (clockwise). Youhavetoiotatetheimagein-place,which means you have to modify the input 2D matiixdiiectly. Example: Input:nums=[[1,2,3],[4,5,6],[7,8,9]] Output:[[7,4,1],[8,5,2],[9,6,3]] Píoblemlink

  3. Spiíal Matíix Diťťiculty–Medium Givenanmxnmatíix,íetuínallelementsof thematíixinspiíaloídeí. Example: Input:nums=[[1,2,3],[4,5,6],[7,8,9]] Output:[1,2,3,6,9,8,7,4,5] Píoblemlink

  4. Spiíal Matíix II Diťťiculty-Medium Givenapositiveintegeín,geneíateannxn matíixfilledwithelementsfíom1ton^2in spiíaloídeí. Example: Input:n=3 Output:[[1,2,3],[8,9,4],[7,6,5]] Píoblemlink

  5. Set Matíix Zeíoes Diťťiculty-Medium Givenanmxnintegeímatíixmatíix,ifan elementis0,setitsentiíeíowandcolumn to0's.Youmustdoitinplace. Example: Input:nums=[[1,1,1],[1,0,1],[1,1,1]] Output:[[1,0,1],[0,0,0],[1,0,1]] Píoblemlink

More Related