Problem :
You are given an m x n integer matrix matrix with the following two pr...
今天來講第12題
題目
題目翻譯
使用羅馬數字來表示整數
解題思路
初始化結果字串:
定義一個空字串 str,用來儲存轉換結果的羅馬數字。
處理數...
Given an integer array nums, return the maximum result of nums[i] XOR nums[j], w...
111. Minimum Depth of Binary Tree
題目要求我們找到二元樹的最小深度。
而最小深度的定義是:從根節點到最近葉子節點的最短路徑上的...
今天也繼續加油、繼續刷刷刷~題目1:創建列表並打印
-列表是一組有序的元素,可以存放各種數據-我們可以創建一個列表,然後用 print() 函數把它顯示出來
舉...
The product difference between two pairs (a, b) and (c, d) is defined as (a * b)...