网站首页 站内搜索

搜索结果

查询Tags标签: hight,共有 8条记录
  • C++ 浅拷贝与深拷贝

    C++类中 会默认有一个拷贝函数 用于拷贝类的值 1 class Person {2 public:3 Person() {4 cout << "person的无参构造函数!" << endl;5 }6 Person(int age, int hight) {7 p_age = age;8 p_hight = new int(hig…

    2022/7/3 14:19:30 人评论 次浏览
  • [LeetCode] 110. Balanced Binary Tree

    Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as: a binary tree in which the left and right subtrees of every node differ in height by no more than 1. Example1: Input: root = [3,9,2…

    2022/1/9 6:07:33 人评论 次浏览
  • [LeetCode] 110. Balanced Binary Tree

    Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as: a binary tree in which the left and right subtrees of every node differ in height by no more than 1. Example1: Input: root = [3,9,2…

    2022/1/9 6:07:33 人评论 次浏览
  • python--每日练习题(三)

    #一、去除字符串里面的所有空格replace()方法把字符串中的old(旧字符串)替换成new(新字符串),如果指定第三个参数max str.replace(old,new[,max]) a = " welcome to my wolrd ! " print(a.replace(" ",""))#也可以用split()切割后合并 p…

    2021/8/19 20:35:46 人评论 次浏览
  • python--每日练习题(三)

    #一、去除字符串里面的所有空格replace()方法把字符串中的old(旧字符串)替换成new(新字符串),如果指定第三个参数max str.replace(old,new[,max]) a = " welcome to my wolrd ! " print(a.replace(" ",""))#也可以用split()切割后合并 p…

    2021/8/19 20:35:46 人评论 次浏览
  • 【数据结构与算法】平衡二叉查找树的功能实现

    #include <stdio.h> #include <stdlib.h> #include <stdbool.h>typedef struct TreeNode {int data;struct TreeNode* left;struct TreeNode* right;int hight; }TreeNode;TreeNode* create_node(int data) {TreeNode* node = malloc(sizeof(TreeNode))…

    2021/8/6 22:09:31 人评论 次浏览
  • 【数据结构与算法】平衡二叉查找树的功能实现

    #include <stdio.h> #include <stdlib.h> #include <stdbool.h>typedef struct TreeNode {int data;struct TreeNode* left;struct TreeNode* right;int hight; }TreeNode;TreeNode* create_node(int data) {TreeNode* node = malloc(sizeof(TreeNode))…

    2021/8/6 22:09:31 人评论 次浏览
  • JAVA实现图片等比缩放,图片截取功能--封装类

    import java.awt.Graphics2D;import java.awt.Rectangle;import java.awt.RenderingHints;import java.awt.geom.AffineTransform;import java.awt.image.BufferedImage;import java.awt.image.ColorModel;import java.awt.image.WritableRaster;import java.io.File;impo…

    2021/4/9 12:55:08 人评论 次浏览
扫一扫关注最新编程教程