2021年1月17日

摘要: 地址 https://leetcode-cn.com/problems/convert-sorted-array-to-binary-search-tree/ 将一个按照升序排列的有序数组,转换为一棵高度平衡二叉搜索树。 本题中,一个高度平衡二叉树是指一个二叉树每个节点 的左右两个子树的高度差的绝对 阅读全文
posted @ 2021-01-17 21:20 itdef 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 地址 https://vjudge.net/problem/POJ-3050 The cows play the child's game of hopscotch in a non-traditional way. Instead of a linear set of numbered boxes 阅读全文
posted @ 2021-01-17 12:42 itdef 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 地址 https://vjudge.net/problem/Aizu-0121 题目大意是 0~7 8个数字随机分布在两行中,我们可以上下左右交换0和它周边的数字来将8个数字组成最终形态 如图 最终形态 输入格式 一行输入0~7 8个数字 空格隔开 输出格式 每行输出上述数据 达到最终形态的步数 S 阅读全文
posted @ 2021-01-17 11:10 itdef 阅读(115) 评论(0) 推荐(0) 编辑

导航