没有合适的资源?快使用搜索试试~ 我知道了~
leetcode中国-More-than-Algorithms:使用C++和Python的刷新算法
共467个文件
cpp:361个
py:102个
md:1个
需积分: 5 0 下载量 123 浏览量
2021-06-29
21:15:41
上传
评论
收藏 377KB ZIP 举报
温馨提示
leetcode中国C++ 和 Python 中的 leetCodeOJ python中的注释 元组可以被认为是只读列表,并且速度更快 例外 assert 1 > 0 # same with c++ try : a = 1 + 2 a = b except NameError , e : print e >> name 'b' is not defined 构造函数和析构函数 class Point : def __init ( self , x = 0 , y = 0 ): self . x = x self . y = y def __del__ ( self ): class_name = self . __class__ . __name__ print class_name , "destroyed" 继承和多态 class Animal : def __init__ ( self , name = '' ): self . name = name def talk ( self ): pass class Cat ( Animal ): def talk ( self ):
资源推荐
资源详情
资源评论
收起资源包目录
leetcode中国-More-than-Algorithms:使用C++和Python的刷新算法 (467个子文件)
212_Word_Search_II.cpp 9KB
501_Find_Mode_In_Binary_Search_Tree.cpp 6KB
355_Design_Twitter.cpp 5KB
306_Additive_Number.cpp 4KB
329_Longest_Increasing_Path_in_a_Matrix.cpp 4KB
004_Median_of_Two_Sorted_Arrays.cpp 4KB
174_Dungeon_Game.cpp 4KB
373_Find_K_Pairs_with_Smallest_Sums.cpp 4KB
300_Longest_Increasing_Subsequence.cpp 4KB
211_Add_and_Search_Word_-_Data_structure_design.cpp 4KB
445_Add_Two_Numbers_2_Medium.cpp 4KB
282_Expression_Add_Operators.cpp 4KB
215_Kth_Largest_Element_in_an_Array.cpp 4KB
218_The_Skyline_Problem.cpp 3KB
473_Matchsticks_to_Square.cpp 3KB
381_Insert_Delete_GetRandom_-_Duplicates_allowed.cpp 3KB
025_Reverse_Nodes_in_k-Group.cpp 3KB
240_Search_a_2D_Matrix_II.cpp 3KB
385_Mini_Parser.cpp 3KB
494_Target_Sum.cpp 3KB
472_Concatenated_Words.cpp 3KB
147_Insertion_Sort_List.cpp 3KB
079_Word_Search.cpp 3KB
399_Evaluate_Division.cpp 3KB
380_Insert_Delete_GetRandom.cpp 3KB
310_Minimum_Height_Trees.cpp 3KB
312_Burst_Balloons.cpp 3KB
289_Game_of_Life.cpp 3KB
307_Range_Sum_Query_-_Mutable.cpp 3KB
315_Count_of_Smaller_Numbers_After_Self.cpp 3KB
417_Pacific_Atlantic_Water_Flow.cpp 3KB
241_Different_Ways_to_Add_Parentheses.cpp 3KB
220_Contains_Duplicate_III.cpp 3KB
151_Reverse_Words_in_a_String.cpp 3KB
508_Most_Frequent_SubTree_Sum.cpp 3KB
394_Decode_String.cpp 3KB
126_Word_Ladder_II.cpp 3KB
033_Search_in_Rotated_Sorted_Array.cpp 3KB
164_Maximum_Gap.cpp 3KB
207_Course_Schedule.cpp 3KB
402_Remove_K_Digits.cpp 3KB
018_4Sum.cpp 3KB
332_Reconstruct_Itinerary.cpp 3KB
68_Text_Justification.cpp 3KB
049_Group_Anagrams.cpp 3KB
206_Reverse_Linked_List.cpp 3KB
341_Flatten_Nested_List_Iterator.cpp 3KB
393_UTF-8_Validation.cpp 3KB
295_Find_Median_from_Data_Stream.cpp 2KB
140_Word_Break_II.cpp 2KB
143_Reorder_List.cpp 2KB
368_Largest_Divisible_Subset.cpp 2KB
419_Battleships_in_a_Board.cpp 2KB
378_Kth_Smallest_Element_in_a_Sorted_Matrix.cpp 2KB
376_Wiggle_Subsequence.cpp 2KB
133_Clone_Graph.cpp 2KB
400_Nth_Digit.cpp 2KB
416_Partition_Equal_Subset_Sum.cpp 2KB
273_Integer_to_English_Words.cpp 2KB
337_House_Robber_III.cpp 2KB
098_Validate_Binary_Search_Tree.cpp 2KB
227_Basic_Calculator_II.cpp 2KB
132_Palindrome_Partitioning_II.cpp 2KB
009_Palindrome_Number.cpp 2KB
475_Heaters.cpp 2KB
496_Next_Generator_Element_1.cpp 2KB
491_Increasing_Subsequences.cpp 2KB
459_Repeated_Substring_Pattern.cpp 2KB
301_Remove_Invalid_Parentheses.cpp 2KB
375_Guess_Number_Higher_or_Lower_II.cpp 2KB
138_Copy_List_with_Random_Pointer.cpp 2KB
284_Peeking_Iterator.cpp 2KB
000_basic.cpp 2KB
187_Repeated_DNA_Sequences.cpp 2KB
413_Arithmetic_Slices.cpp 2KB
239_Sliding_Window_Maximum.cpp 2KB
130_Surrounded_Regions.cpp 2KB
503_Next_Greater_Element_2.cpp 2KB
309_Best_Time_to_Buy_and_Sell_Stock_with_Cooldown.cpp 2KB
146_LRU_Cache.cpp 2KB
462_Minimum_Moves_to_Equal_Array_Elements_II.cpp 2KB
324_Wiggle_Sort_II.cpp 2KB
93_Restore_IP_Addresses.cpp 2KB
455_Assign_Cookies.cpp 2KB
392_Is_Subsequence.cpp 2KB
037_Sudoku_Solver.cpp 2KB
139_Word_Break.cpp 2KB
331_Verify_Preorder_Serialization_of_a_Binary_Tree.cpp 2KB
232_Implement_Queue_using_Stacks.cpp 2KB
008_String_to_Integer.cpp 2KB
188_Best_Time_to_Buy_and_Sell_Stock_IV.cpp 2KB
214_Shortest_Palindrome.cpp 2KB
390_Elimination_Game.cpp 2KB
495_Teemo_Attacking.cpp 2KB
438_Find_All_Anagrams_in_a_String.cpp 2KB
264_Ugly_Number_II.cpp 2KB
127_Word_Ladder.cpp 2KB
236_Lowest_Common_Ancestor_of_a_Binary_Tree.cpp 2KB
492_Construct_the_Rectangle.cpp 2KB
347_Top_K_Frequent_Elements.cpp 2KB
共 467 条
- 1
- 2
- 3
- 4
- 5
资源评论
weixin_38544625
- 粉丝: 5
- 资源: 871
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功