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

  • WebSocket in Java
  • Design Patterns – Command Pattern
  • Design Patterns – Decorator Pattern
  • Design Patterns – Iterator Pattern
  • Design Pattern – Repository Design Pattern

Categories

  • Algorithm
  • Android
  • Architecture
  • BlockChain
  • C/C++
  • Cloud
  • Design
  • DevOps
  • Flutter
  • Git
  • Go
  • Java
  • JavaScript
  • Kotlin
  • Mac
  • Machine Learning
  • Networking
  • OS
  • Python
  • Security
  • Server
  • Spring
  • Tool
  • Unity
  • Unreal
  • Vim
  • Windows
  • WordPress

Tags

  • Algorithm
  • AndroidStudio
  • Android Studio
  • Array
  • AWS
  • BackTracking
  • Binary Search
  • Bit Manipulation
  • BST
  • Detached HEAD
  • Docker
  • DynamicProgramming
  • Express
  • Express.js
  • Firebase
  • Flutter
  • git
  • GitHub
  • Google Cloud
  • HashMap
  • Integer
  • Java
  • JavaScript
  • Kotlin
  • Kubernetes
  • LaserDefender
  • LeetCode
  • LinkedList
  • List
  • Mac
  • Node.js
  • OOD
  • OperatingSystem
  • Recursion
  • Server
  • SideProject
  • Sorting
  • Spring
  • Spring Boot
  • String
  • Tree
  • Unity
  • VPS
  • Wechat
  • Windows
March 2023
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Feb    

Meta

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