先来一道简化版: 关联点 2? 给出一棵二叉树,每个点有点权 𝑣𝑖? 如果 𝑏 在 𝑎 的左(右)子树中,且 𝑎 到 𝑏 的距离为 𝑣𝑎,则称 𝑏为 𝑎 的左(右)关联点? 求每个点的左、右关联点个数? 𝑛 ≤ 10^6 子树内距离根为x深度的点有多少个 不能爆搜。 但是,可以 ...
分类:
其他好文 时间:
2018-10-06 20:31:44
阅读次数:
131
1.去重distinct , group by 2.去空格 replace ltrim rtrim 3.表表关联语句 where条件关联、左/右关联 ...
分类:
数据库 时间:
2017-02-14 13:28:25
阅读次数:
190
selecttp.technic_product_code,tp.technic_product_name,mp.marketproduct_code,mp.marketproduct_namefrommarketproduct_infomp,technic_product_infotpwheremp.id_technic_product_info=tp.id_technic_product_info(+)1)+写在那个表上,表示这个表允许为空,+写在右边,表示..
分类:
数据库 时间:
2014-12-29 12:18:29
阅读次数:
183