在 LeetCode 125 題「Valid Palindrome」中,我們需要判斷一個字串是否為迴文(Palindrome)。迴文的定義是,忽略大小寫字母和非...
今天來解 (YKL01(UVA10055)) Hashmat the brave warrior
蠻簡單的,題目主要在講兩隊士兵的人數要我們output兩隊之...
You are given a string s and a robot that currently holds an empty string t. App...
Top K Numbers介紹大綱:
《上篇》-介紹Binary Heap(二元堆積)的結構與特性-Binary Heap與陣列的關係
《中篇》-Binary...
Winter is coming! During the contest, your first job is to design a standard he...
104. Maximum Depth of Binary Tree
题目描述:
給定一個二元樹的根節點 root,返回其最大深度。
Example 1:
In...