locked
Array RRS feed

  • Question

  • Help me out: From the array find the integer that occurs the maximum number of times. If there are more than one integer that occurs the same maximum number of times, then print both the numbers and the frequency of their occurrance.

    Regards Syed

    Thursday, April 18, 2013 5:39 AM

Answers

All replies

  • Can you tell us, what programm language you're using? Like: Visual Basic, Powershell,...

    The following is my signature:

    Powershell Programmer & Advanced Lua Programmer

    Location: Switzerland

    Beside that, whenever you see a reply, you think is helpful, click "Vote As Helpful"! And whenever you see a reply being an answer to the main question of the thread, click "Mark As Answer" (if you opened the thread).

    I published the URL's for the icons in my signature.

    Please contact me, before reporting me, thank you.

    [string](0..21|%{[char][int]([int]("{0:d}" -f 0x28)+('577076797174-87661607769657424-8687168065964').substring(($_*2),2))})-replace' '

    Thursday, April 18, 2013 6:39 AM
  • I am using C


    Regards Syed

    Thursday, April 18, 2013 6:44 AM
  • You should ask in the Visual C++ language forum.

    However, be prepared to show what you have tried so far, as well as what issues you have, etcetera.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer



    My Blog: http://unlockpowershell.wordpress.com
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})

    Thursday, April 18, 2013 1:47 PM