qeatzy

2015年7月16日

hdu 1232, disjoint set, linked list vs. rooted tree, a minor but substantial optimization for path c 分类: hdoj 2015-07-16 17:13 116人阅读 评论(0) 收藏

摘要: three version are provided. disjoint set, linked list version with weighted-union heuristic, rooted tree version with rank by union and path c... 阅读全文

posted @ 2015-07-16 17:13 qeatzy 阅读(173) 评论(0) 推荐(0) 编辑

hdu 1082, stack emulation, and how to remove redundancy 分类: hdoj 2015-07-16 02:24 86人阅读 评论(0) 收藏

摘要: use fgets, and remove the potential ‘\n’ in the string’s last postion.(main point) remove redundancy there must be a stack, at first sight, y... 阅读全文

posted @ 2015-07-16 02:24 qeatzy 阅读(155) 评论(0) 推荐(0) 编辑

导航