原创 58 Balance a Binary Search Tree

題目 Given a binary search tree, return a balanced binary search tree with the same node values. A binary search tree

原创 55 Construct Binary Search Tree from Preorder Traversal

題目 Return the root node of a binary search tree that matches the given preorder traversal. (Recall that a binary se

原创 複雜sql記錄

靈感來了也記不住,在這裏記錄一下一些sql查詢,方便以後複製粘貼 往角色爲st_admin的用戶的user_msg表中插入一條記錄。 難點:角色爲st_admin的用戶個數不定 <insert id="sendMsgToRol

原创 47 Find a Corresponding Node of a Binary Tree in a Clone of That Tree

題目 Given two binary trees original and cloned and given a reference to a node target in the original tree. The clon

原创 43 Max Increase to Keep City Skyline

題目 In a 2 dimensional array grid, each value grid[i][j] represents the height of a building located there. We are a

原创 40 How Many Numbers Are Smaller Than the Current Number

題目 Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for

原创 【計算機系統概論】

計算機系統概論1. 概論1.1 問題引入1.2 計算機系統基本組成與基本功能 1. 概論 1.1 問題引入 等我學完了再回來解釋 1.2 計算機系統基本組成與基本功能 馮諾依曼機 核心思想:存儲程序

原创 39 Sum of Nodes with Even-Valued Grandparent

爲啥沒有38? 因爲38沒過審。 今天點了十張圖,登陸上了。 題目 Given a binary tree, return the sum of values of nodes with even-valued grandpare

原创 37 Number of Steps to Reduce a Number to Zero

題目 Given a non-negative integer num, return the number of steps to reduce it to zero. If the current number is even

原创 33 N-ary Tree Postorder Traversal

題目 Given an n-ary tree, return the postorder traversal of its nodes’ values. Nary-Tree input serialization is repre

原创 Java學習筆記-全棧-web開發-24-Vue

Vue1. 開發環境 VSCode2. vue介紹2.1 vue與原生js(或jquery)的優勢2.2 MVVM3. 常用指令{{}} v-text v-htmltitle屬性 v-bind v-on數據雙向綁定 v-mod

原创 Java學習筆記-全棧-web開發-23-Shiro框架

Shiro1. 功能簡介2. Shiro架構對外部而言:對內部而言3. HelloWorld官方HelloWorld個人入坑步驟(springboot)MD5加密4. 與Web集成ShiroFilter工作原理部分細節Shiro默

原创 【數據庫系統概論】

只記錄了個人覺得的重點和難點知識,大部分是摘抄ppt,部分會給出自己的解答和擴展。 持續更新中 數據庫系統概論1. 緒論1.1 數據庫系統概述1.2 數據模型概念模型1.3 數據庫系統的結構1.4 數據庫系統的組成問

原创 32 Number of Recent Calls

題目 Write a class RecentCounter to count recent requests. It has only one method: ping(int t), where t represents so

原创 【軟件工程】

本文用於記錄軟件工程學習筆記,包含多個學習課程,目前處於每日更新狀態。 如果前面的筆記包含後面的課程內容,那麼後面的筆記將不會重複記錄。 預計包含: 軟件工程——劉強(目前處於) 傳統軟件工程—— 孫豔春 軟件工程專業導論——徐