zoukankan      html  css  js  c++  java
  • 模板

     MarkDown格式//////////////////////////////////////////////////////////////////////////

    ####题目来源
    [LeetCode ]( )
    ####自我感觉难度/真实难度:         
     写题时间时长:  hours
    ####题意:
    
     
    
    ####分析:
    
     
    ####自己的代码:
    ```
    
    ```
    代码效率/结果:
    ####优秀代码:
        
    ```python
    
    class Solution:
        def combinationSum(self, can: List[int], tar: int) -> List[List[int]]:
            res=[]
            l=len(can)
            
            def dfs(targ,index,path):
                if targ<0:
                    return
                if targ==0:
                    res.append(path)
                    return
                for i in range(index,l):
                    if targ<can[i]:
                        continue
                    dfs(targ-can[i],i,path+[can[i]])
            dfs(tar,0,[])
            return res
           
    ```
    代码效率/结果:
    Runtime: 56 ms, faster than 99.16% of Python3 online submissions for Combination Sum.
    Memory Usage: 13.2 MB, less than 43.13% of Python3 online submissions for Combination Sum.
    
    ####自己优化后的代码:
    ```
    
    ```
    &nbsp;
    ---
    
    ####反思改进策略:
    1. 。<font color=    #4169E1 size=4 face="楷体">**总**</font>
    1. 。<font color=    #4169E1 size=4 face="楷体">**思**</font>
    1. 
    1. 
    论文阅读/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    论文标题:

    来源/作者机构情况:

     

    解决问题/主要思想贡献:

     

    成果/优点:

     

    缺点:

     

    反思改进/灵感:

    #############################################################

    论文主要内容与关键点:

    1.

    2.

    3.

    4.

    5.

    6.

    代码实现:

     文字版代码review/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    题目来源:

     自我感觉难度/真实难度:             写题时间时长:

     题意:

     分析:

     自己的代码:

    代码效率/结果:

     优秀代码:

    代码效率/结果:

     自己优化后的代码:

     反思改进策略:

     LeetCode刷题记录///////////////////

           时间        复习时间  
     2019年6月3号    LeetCode 39. Combination Sum    2019年7月2号  
                        
           
                       
                    
           
           
           
           
           
                           
           
           
           
  • 相关阅读:
    机器学习知识总结---5、生成对抗网络的难点是什么
    博弈论---11、博弈论总结
    博弈论---10、零和博弈、正和博弈
    SSH Protocol
    log4net MaxSizeRollBackups
    Initializing a static field vs. returning a value in static property get?
    NLog Internal Logging
    NLog WriteToTargets method
    NLog rolling file
    Custom date and time format strings
  • 原文地址:https://www.cnblogs.com/captain-dl/p/10162774.html
Copyright © 2011-2022 走看看