原创 503. Next Greater Element II

Description: Given a circular array (the next element of the last element is the first element of the array), print t

原创 496. Next Greater Element I

Description: You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums

原创 vue+express部署阿里雲centos服務器

服務器選用:阿里雲CentOS  6.8 64位(大學生好像一年10塊噢,學生真好!) 項目整體:使用vue-cli構建前端項目,使用express框架處理前端對數據的查詢等,主要對數據庫操作。 在此記錄下遇到的坑。 一、使用XShell

原创 js 徹底理解回調函數(轉)

原文鏈接:https://blog.csdn.net/baidu_32262373/article/details/54969696

原创 JSP爲什麼有的鏈接能點有的鏈接點不了

循環輸出上面了刪除和編輯鏈接,但是隻有輸出的第一個鏈接能點。【解決方案】給這個鏈接設置z-index,應該是不知由於什麼原因導致鏈接被壓在下面了。

原创 343. Integer Break(第十四周)

Description: Given a positive integer n, break it into the sum of at least two positive integers and maximize the pro

原创 Add to List 474. Ones and Zeroes(第十五週)

Description: In the computer world, use restricted resource you have to generate maximum benefit is what we always wa

原创 494. Target Sum(第十一週)

Description: You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols 

原创 516. Longest Palindromic Subsequence(第十七週)

Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s

原创 NP課後習題8.3

假設圖G的最小頂點覆蓋,可以構成一個HITTING SET,那麼設(v1,v2),(v3,v4)…… 是G的的各條邊,記爲S1,S2……。通過二分式的詢問可以找到一個和Si都相交的最小集合H,這正好是G的

原创 329. Longest Increasing Path in a Matrix(第七週)

Description: Given an integer matrix, find the length of the longest increasing path. From each cell, you can either

原创 410. Split Array Largest Sum(第十週)

Description: Given an array which consists of non-negative integers and an integer m, you can split the array into m 

原创 515. Find Largest Value in Each Tree Row(第六週)

You need to find the largest value in each row of a binary tree. Example: Input: 1 / \ 3

原创 215. Kth Largest Element in an Array(第三週)

Description: Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted

原创 376. Wiggle Subsequence(第十三週)

Description: A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly