散分3000给会数据结构的朋友
在专题开发的数据结构与算法
我将提30个问题(我基本上都会,只是和大家讨论一下)
结果和过程都不最重要的,
重要的交流
请大家谈一下自己的想法

解决方案 »

  1.   

    我还将继续加一些经典题目
    http://expert.csdn.net/Expert/topic/1665/1665238.xml?temp=.4339411
    http://expert.csdn.net/Expert/topic/1660/1660610.xml?temp=.8918573
    http://expert.csdn.net/Expert/topic/1660/1660589.xml?temp=.5400507
    http://expert.csdn.net/Expert/topic/1660/1660644.xml?temp=.8139459
    http://expert.csdn.net/Expert/topic/1660/1660621.xml?temp=.3790399
    http://expert.csdn.net/Expert/topic/1660/1660629.xml?temp=.225506
      

  2.   

    这是我的算法,效率不高,你有更好的算法?希望和你一同讨论!!!
      For i = 1 To 1000
            For j = 2 To i - 1
                k = i Mod j
                If k = 0 Then
                    Flag = True
                    Exit For
                Else
                    Flag = False
                End If
            Next j
            
            If Not Flag Then Text1.Text = Text1.Text & "," & i
            Flag = False
        Next i
      

  3.   

    题来了
    http://expert.csdn.net/Expert/topic/1670/1670045.xml?temp=.6428034
    http://expert.csdn.net/Expert/topic/1670/1670039.xml?temp=2.628726E-02
    http://expert.csdn.net/Expert/topic/1670/1670030.xml?temp=.8434564
    http://expert.csdn.net/Expert/topic/1670/1670027.xml?temp=.4054987
    http://expert.csdn.net/Expert/topic/1668/1668115.xml?temp=.424267
      

  4.   

    http://expert.csdn.net/Expert/topic/1709/1709090.xml?temp=.3251612
    http://expert.csdn.net/Expert/topic/1709/1709089.xml?temp=.7445948
    http://expert.csdn.net/Expert/topic/1709/1709084.xml?temp=.6629602
    http://expert.csdn.net/Expert/topic/1709/1709079.xml?temp=.9519007
    http://expert.csdn.net/Expert/topic/1709/1709075.xml?temp=.339657
    http://expert.csdn.net/Expert/topic/1709/1709073.xml?temp=.4869043http://expert.csdn.net/Expert/topic/1709/1709070.xml?temp=.2593347
    http://expert.csdn.net/Expert/topic/1709/1709065.xml?temp=.450802
    http://expert.csdn.net/Expert/topic/1709/1709060.xml?temp=.5252344
    http://expert.csdn.net/Expert/topic/1709/1709057.xml?temp=.5473291
    http://expert.csdn.net/Expert/topic/1709/1709055.xml?temp=.3439905
    http://expert.csdn.net/Expert/topic/1709/1709054.xml?temp=.7311975
    http://expert.csdn.net/Expert/topic/1709/1709045.xml?temp=.4977686
    http://expert.csdn.net/Expert/topic/1709/1709044.xml?temp=.2779199