240 发简信
IP属地:北京
  • 数组中的逆序对

    在数组中的两个数字,如果前面一个数字大于后面的数字,则这两个数字组成一个逆序对。输入一个数组,求出这个数组中的逆序对的总数P。并将P对10000...

  • 数组中元素出现次数超过一半

    题目描述数组中有一个数字出现的次数超过数组长度的一半,请找出这个数字。例如输入一个长度为9的数组{1,2,3,2,2,2,5,4,2}。由于数字...

  • 39. Combination Sum

    Given a set of candidate numbers (C) (without duplicates) and a target n...

  • javascript初探LeetCode之9.Palindrome Number

    题目 Determine whether an integer is a palindrome. Do this without extra s...

  • vue中使用express+fetch获取本地json文件

    自己在做个vue小demo的时候,想模拟从服务器获取json数据的过程,一开始的想法是使用fetch直接获取本地的json文件,无论是insta...

  • javascript初探LeetCode之7.Reverse Integer

    题目 Reverse digits of an integer.The input is assumed to be a 32-bit sign...

  • javascript初探LeetCode之5.Longest Palindromic Substring

    题目 Given a string s, find the longest palindromic substring in s. You ma...

  • javascript初探LeetCode之4.Median of Two Sorted Arrays

    题目 There are two sorted arrays nums1 and nums2 of size m and n respectiv...

  • javascript初探LeetCode之3.Longest Substring Without Repeating Characters

    题目 Given a string, find the length of the longest substring without repe...