Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find the number of occurrences of each number present in a matrix.
#1
Not Solved
Can someone please give me the solution for below general programming question,

How to print the number of occurrences of each number presnt in a matrix.

For examble:

x =

22 23 23 23

23 24 25 22

22 23 23 25


for the above matrix, it should print like below,

Code:
"Number 22 occurred 3 time"
"Number 23 occurred 6 time"
"Number 24 occurred 1 time"
"Number 25 occurred 2 time"
Reply
#2
Not Solved
matrix is an array?
Thanks,
SUpputuri
Reply
#3
Not Solved
Yes it is a 2d array...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to know the object present in Webtable cell Shaik Mukthyar 1 3,377 11-29-2015, 12:16 AM
Last Post: Shaik Mukthyar
  Odd and Even Number Puzzle aka FizzBuzz Varshin 3 4,980 08-10-2015, 10:56 PM
Last Post: kotaramamohana
  Whether function can return number of links and their names in a web page kotaramamohana 3 4,252 12-07-2012, 08:40 PM
Last Post: elango87
  How to retrive the randomly number from the web page . ? njnirmal 10 8,668 10-08-2009, 11:50 AM
Last Post: basanth27
  Functionality Matrix newqtp 5 9,525 02-26-2009, 05:15 PM
Last Post: papu

Forum Jump:


Users browsing this thread: 1 Guest(s)