1 Replies - 488 Views - Last Post: 16 October 2016 - 11:10 AM

#1 uniqCoder  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 67
  • Joined: 13-March 16

print diagonal elements in a matrix - challenge

Posted 16 October 2016 - 11:09 AM

This is a very beginner level question.

Just print the diagonal elements in a given matrix....but it should be the best efficient one.

I was doing it in a very inefficient way until I got an instinct to do it better.

Just post your solutions And I will post mine too.

The runtime.complexity of my program is O(n)
Is This A Good Question/Topic? 0
  • +

Replies To: print diagonal elements in a matrix - challenge

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 13401
  • View blog
  • Posts: 53,486
  • Joined: 12-June 08

Re: print diagonal elements in a matrix - challenge

Posted 16 October 2016 - 11:10 AM

This really isn't a challenge. It reads like homework fishing.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1