没有合适的资源?快使用搜索试试~ 我知道了~
leetcode2sumc-CTCI:CTCI
共56个文件
py:54个
md:1个
gitignore:1个
需积分: 6 0 下载量 80 浏览量
2021-06-30
17:48:32
上传
评论
收藏 40KB ZIP 举报
温馨提示
leetcode 2 和 c CTCI 回溯总结: 组合和、子集、排列、回文) 组合和 def combinationSum ( self , candidates , target ): def backtrack ( tmp , start , end , target ): if target == 0 : ans . append ( tmp [:]) elif target > 0 : for i in range ( start , end ): tmp . append ( candidates [ i ]) backtrack ( tmp , i , end , target - candidates [ i ]) tmp . pop () ans = [] candidates . sort ( reverse = True ) backtrack ([], 0 , len ( candidates ), target ) return ans 组合和II def combinationSum2 ( self , candidates , target ): def
资源推荐
资源详情
资源评论
收起资源包目录
CTCI-master.zip (56个子文件)
CTCI-master
Sorting
mergesort.py 2KB
quick_sort.py 1KB
LeetCode
maximum_subarray.py 910B
palindrome_partitioning_131.py 1KB
house_robber.py 604B
binary_tree_level_order_traversal_ii_107.py 976B
longest_substring_without_repeating_characters.py 1KB
copy_list_with_random_pointer_138.py 1KB
permutation_sequence_60.py 1KB
unique_binary_search_tree.py 2KB
maximum_size_subarray_sum_equals_k_325.py 1KB
single_number_iii_260.py 802B
generate_parenthesis.py 1KB
move_zeroes.py 1012B
combinations.py 471B
k_closest_points_to_origin.py 2KB
rotting_oranges.py 3KB
meeting_rooms_ii.py 501B
word_search_79.py 3KB
symetric_tree_101.py 1KB
mininum_window_substring.py 1KB
word_break_139.py 1KB
sqrt_of_x.py 1KB
permutations_46.py 729B
3_sum.py 1KB
longest_common_subsequence.py 2KB
valid_soduku.py 4KB
valid_word_abbreviation.py 827B
rotten_oranges.py 2KB
permutationsII_47.py 1KB
kth_largest_element_in_array_79.py 1KB
vailidate_binary_search_tree_97.py 2KB
cut_off_trees_for_golf_event.py 3KB
string_to_integer.py 3KB
matrix_rotate_48.py 1KB
average_of_levels_in_binary_tree_637.py 810B
minimum_absolute_difference_bst.py 1KB
k_concatenation_maximum_sum.py 892B
subsets_78.py 1KB
allPathsFromSourceToTarget.py 1KB
top_k_frequent_elements.py 800B
Interview
hairSalonSimulation.py 12KB
Microsoft
longest_palindrome.py 1KB
question.py 1KB
GeneralApproachToBackTracking
coin_change.py 1KB
combination_sum.py 665B
subsets.py 581B
permutations.py 552B
Moderate
instersection_16.3.py 131B
smallest_difference_16.6.py 1KB
word_frequencies_16.2.py 490B
number_swapper_16.1.py 276B
subsort_16.16.py 2KB
README.md 6KB
.gitignore 9B
permutation_witout_dups_8_7.py 676B
共 56 条
- 1
资源评论
weixin_38593701
- 粉丝: 4
- 资源: 907
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Q1.py
- 企业政府灵智电子政务网站系统-lingzhi.rar
- Thinkphp内核开发Lsky Pro兰空图床网站源码.rar
- 基于FPGA(XC6SLX9)+SDRAM+AD7829多通道数据采集板硬件(原理图+PCB)工程文件.zip
- 阿里巴巴精准测试体系:基于代码链路分析的性能优化方案
- mmexport1714217773503.jpg
- 【图片网盘外链系统5.0】全新前端UI界面设计 支持图片违规检测网站自适应H5源码.rar
- jsp+sql的BBS论坛系统.zip
- 网盘外链PHP开发彩虹网盘外链程序源码.rar
- 2023年最新文件快递柜系统网站源码 保护用户隐私的匿名口令分享和临时文件分享功能.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功