umdreamer / leetcodeproblems

Solutions for LeetCode OJ
3 stars 9 forks source link

2023.6.1 Problem: 144. Binary Tree Preorder Traversal #28

Closed umdreamer closed 1 year ago

umdreamer commented 1 year ago
  1. Binary Tree Preorder Traversal Problem Link

Given the root of a binary tree, return the preorder traversal of its nodes' values.

Example 1: image

Input: root = [1,null,2,3]
Output: [1,2,3]

Example 2:

Input: root = []
Output: []

Example 3:

Input: root = [1]
Output: [1]

Constraints:

yeyuxq commented 1 year ago

image

bedauern commented 1 year ago
Snipaste_2023-06-01_15-45-15
wangshiqi7 commented 1 year ago
截屏2023-06-01 16 54 37
tangyexi commented 1 year ago
屏幕截图 2023-06-01 165847
liu-si-han commented 1 year ago
image
daowuwu commented 1 year ago

H $T`HSAO)@A0S$RY21J 44

zhjingyan commented 1 year ago

image

mafanjia commented 1 year ago

截屏144

promisewith7 commented 1 year ago

image

686xiaozhang commented 1 year ago

ii那天

PinkyLame commented 1 year ago

image

sjh397 commented 1 year ago

image

syr2212061031 commented 1 year ago

PPW%3D42RVFN0ND@YLHG3F8

1125766961 commented 1 year ago

image

xiaolu2002 commented 1 year ago

image

zxm-1235 commented 1 year ago

image

zyhzxy99 commented 1 year ago

NA JO2IPG}AF{SB}I_P(MQ

huangyumei1 commented 1 year ago

QQ图片20230601200439

12baoxingyu-6 commented 1 year ago
image
Lggg1234 commented 1 year ago

屏幕截图 2023-06-01 203855

cuixiao02 commented 1 year ago
截屏2023-06-01 20 41 34
123lrb commented 1 year ago

YB9Q5J_NZILAV6P`_RL)N63

liuhuanyu6 commented 1 year ago

image

FXL1006 commented 1 year ago
image
gusuning commented 1 year ago
屏幕截图 2023-06-01 210436
htywan commented 1 year ago

QQ截图20230601211018

ZWJ2212061008 commented 1 year ago

image

naqianqpg commented 1 year ago

KDT8GIA0 FORCHEQX21YFID

xkqwww commented 1 year ago

无标题

24zlx commented 1 year ago

联想截图_20230601224817

shylieisme commented 1 year ago

I0NF{MLC$ L(K2E VFQPS(D

zangfushuo commented 1 year ago
截屏2023-06-01 20 49 44
foxbou commented 1 year ago
image