---
title: "1051. Height Checker"
url: "https://laigary.com/interview/coding/1051-height-checker"
type: "note"
section: "coding"
date: "2023-11-05"
updated: "2023-11-05"
tags: ["Sorting"]
---

# 1051. Height Checker

[1051. Height Checker](https://leetcode.com/problems/height-checker/)

這個題目的解法非常直覺，但是這個題目是一個很好學習[泡沫排序 Bubble Sort](https://zh.wikipedia.org/wiki/%E5%86%92%E6%B3%A1%E6%8E%92%E5%BA%8F) 的題目，日常生活中按照身高排排站時，最常見的做法就是 Bubble Sort 。

所以這個題目需要花時間理解的其實只有我們如何理解 Bubble Sort 並實作出來。
