原创 31 Search in a Binary Search Tree

關注 每天一道編程題 專欄,一起學習進步。 題目 Given the root node of a binary search tree (BST) and a value. You need to find the node

原创 30 Peak Index in a Mountain Array

關注 每天一道編程題 專欄,一起學習進步。 題目 Let’s call an array A a mountain if the following properties hold: A.length >= 3 There e

原创 29 DI String Match

題目 Given a string S that only contains “I” (increase) or “D” (decrease), let N = S.length. Return any permutation A

原创 25 Squares of a Sorted Array

題目 Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also

原创 Java學習筆記-全棧-web開發-21-SpringBoot使用Javaweb三大組件

Javaweb三大組件1. Filter2. listener3. servlet4. 配置三大組件5. WebMvcConfigurer攔截器(Interceptor)和過濾器(Filter)的區別 1. Filter im

原创 02 解壓編碼列表

題目 給你一個以行程長度編碼壓縮的整數列表 nums 。 考慮每相鄰兩個元素 [a, b] = [nums[2*i], nums[2*i+1]] (其中 i >= 0 ),每一對都表示解壓後有 a 個值爲 b 的元素。 請你返回解

原创 13 Cells with Odd Values in a Matrix

題目 Given n and m which are the dimensions of a matrix initialized by zeros and given an array indices where indices

原创 Java學習筆記-全棧-web開發-22-後端程序員用的前端框架——layUI

layUI0. 前言1. 入手2. 開始使用3. 重點 官網 0. 前言 其實先學Vue、elementUI,還是先學jQuery,糾結過一陣子。 畢竟,很多人都說jQuery過時了。 jQuery能做到的,Vue都可以做到。

原创 08 Split a String in Balanced Strings

題目 Balanced strings are those who have equal quantity of ‘L’ and ‘R’ characters. Given a balanced string s split it

原创 01-Springboot博客項目

本系列是對李仁密老師的視頻的學習記錄 前端頁面設計與實現部分不會在此展示,直接上後端部分。 項目源碼和教程可以點擊上面鏈接進行學習 碼雲地址:項目源碼 項目搭建1. 創建項目2. 配置項目3. 定製日誌4. 關聯靜態頁面5.

原创 12 Range Sum of BST

題目 Given the root node of a binary search tree, return the sum of values of all nodes with value between L and R (i

原创 05 Subtract the Product and Sum of Digits of an Integer

題目 Given an integer number n, return the difference between the product of its digits and the sum of its digits. Ex

原创 Java lambda&Stream

lambda&Stream1. lambda1.1 函數式接口1.2 表達式編寫方法2. Stream2.1 Stream介紹2.2 流的三種操作2.2.1 生成流2.2.2 中間操作2.2.3 終值操作2.3 流的執行順序2.4

原创 Java學習筆記-全棧-web開發-19-SpringBoot入門項目創建與整合

SpringBoot1. SpringBoot簡介2. 常用starter3. 搭建springboot項目(重點)3.1 數據庫準備3.2 創建spring Initialize項目3.3 更改配置文件類型3.4 整合log4j

原创 11 To lower case

題目 Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. Exam