Skip to content
Yu's Blog

Yu's Blog

Welcome to my blog

Tag: Recursion

Posted on September 2, 2019September 16, 2019

Convert Sorted Array to Binary Search Tree

This is NO.108 problem in leetcode. The description of this problem is: Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ …

Continue reading “Convert Sorted Array to Binary Search Tree”

Posted on August 28, 2019August 28, 2019

Symmetric Tree – recursion and iteration

This is No.101 problem in leetcode. The question is: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). 1.Recursion: Recursion occurs when a thing is defined in terms of itself or of its type. In this problem, I will solve it in recursion first. The thought is …

Continue reading “Symmetric Tree – recursion and iteration”

CONTACT ME

My GitHub
My LinkedIn

Recent Posts

  • Spring – AOP
  • Spring – IoC
  • When ImageView doesn’t display in emulator in Android Studio
  • How To Customize Spring Project Launch Banner
  • Intent In Android Studio

Categories

  • Algorithm
  • Android
  • Architecture
  • AWS
  • Docker
  • Git
  • Go
  • Java
  • JavaScript
  • Kotlin
  • LambdaCalculus
  • Mac
  • Networking
  • OS
  • Server
  • Tool
  • Uncategorized
  • Unity
  • WordPress

Tags

  • AndroidStudio
  • ArchitecturalSupport
  • Array
  • AWS
  • BFS
  • Binary Search
  • Bit Manipulation
  • BST
  • Calculator
  • Comparator
  • DFS
  • DynamicProgramming
  • Express
  • git
  • GitHub
  • HashMap
  • Integer
  • ISA
  • Iteration
  • Java
  • JavaScript
  • Kotlin
  • LaserDefender
  • Latency
  • LeetCode
  • LinkedList
  • List
  • Mac
  • Node.js
  • OperatingSystem
  • Performance
  • php
  • Pipelining
  • Process
  • Recursion
  • SideProject
  • Sorting
  • Spring
  • String
  • Threads
  • Throughput
  • Tree
  • Unity
  • Wechat
  • Wordpres
March 2021
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  
« Feb    

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org