troubleshooting Question

Array Comparison

Avatar of Dattu
DattuFlag for United States of America asked on
.NET ProgrammingXML
12 Comments1 Solution265 ViewsLast Modified:
I have an array which consists of elemtents like 111,111,121,121,121,33,33,5,5,5,5
I need to compare each one of those. I have used aray.sort to sort them one by one.
Now, I need to compare each one of them and know how many times each times each one of them is appearing like
111=2 times
121=3
33=2
5=4 times
XML Format
<111>
<occurence=1>
<occurence=2>
</111>
<121>
<occurence=1>
<occurence=2>
<occurence=3>
</121>
<33>
<occurence=1>
<occurence=2>
</33>
<5>
<occurence=1>
<occurence=2>
<occurence=3>
<occurence=4>
</5>

Open in new window

ASKER CERTIFIED SOLUTION
technofile

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros