11 2022 档案

摘要:Intersection of Two Linked Lists Given the heads of two singly linked-lists headA and headB, return the node at which the two lists intersect. If the 阅读全文
posted @ 2022-11-30 21:33 iyiluo 阅读(14) 评论(0) 推荐(0) 编辑
摘要:Minimum Depth of Binary Tree Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the ro 阅读全文
posted @ 2022-11-30 21:33 iyiluo 阅读(12) 评论(0) 推荐(0) 编辑
摘要:Count Largest Group You are given an integer n. Each number from 1 to n is grouped according to the sum of its digits. Return the number of groups tha 阅读全文
posted @ 2022-11-29 21:46 iyiluo 阅读(18) 评论(0) 推荐(0) 编辑
摘要:Reverse Only Letters Given a string s, reverse the string according to the following rules: All the characters that are not English letters remain in 阅读全文
posted @ 2022-11-29 21:46 iyiluo 阅读(9) 评论(0) 推荐(0) 编辑
摘要:Pascal's Triangle II Given an integer rowIndex, return the rowIndexth (0-indexed) row of the Pascal's triangle. In Pascal's triangle, each number is t 阅读全文
posted @ 2022-11-29 21:46 iyiluo 阅读(11) 评论(0) 推荐(0) 编辑
摘要:Path Sum Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all the values 阅读全文
posted @ 2022-11-29 21:45 iyiluo 阅读(12) 评论(0) 推荐(0) 编辑
摘要:Maximum Product of Three Numbers Given an integer array nums, find three numbers whose product is maximum and return the maximum product. Example 1: I 阅读全文
posted @ 2022-11-29 21:45 iyiluo 阅读(13) 评论(0) 推荐(0) 编辑
摘要:Check Distances Between Same Letters You are given a 0-indexed string s consisting of only lowercase English letters, where each letter in s appears e 阅读全文
posted @ 2022-11-29 21:45 iyiluo 阅读(12) 评论(0) 推荐(0) 编辑
摘要:leetcode-1175-easy Return the number of permutations of 1 to n so that prime numbers are at prime indices (1-indexed.) (Recall that an integer is prim 阅读全文
posted @ 2022-11-26 20:31 iyiluo 阅读(22) 评论(0) 推荐(0) 编辑
摘要:Unique Email Addresses Every valid email consists of a local name and a domain name, separated by the '@' sign. Besides lowercase letters, the email m 阅读全文
posted @ 2022-11-26 20:30 iyiluo 阅读(11) 评论(0) 推荐(0) 编辑
摘要:Rotate String Given two strings s and goal, return true if and only if s can become goal after some number of shifts on s. A shift on s consists of mo 阅读全文
posted @ 2022-11-26 20:30 iyiluo 阅读(11) 评论(0) 推荐(0) 编辑
摘要:Replace Elements with Greatest Element on Right Side Given an array arr, replace every element in that array with the greatest element among the eleme 阅读全文
posted @ 2022-11-26 20:30 iyiluo 阅读(17) 评论(0) 推荐(0) 编辑
摘要:Balanced Binary Tree Given a binary tree, determine if it is height-balanced. Example 1: Input: root = [3,9,20,null,null,15,7] Output: true Example 2: 阅读全文
posted @ 2022-11-26 20:29 iyiluo 阅读(15) 评论(0) 推荐(0) 编辑
摘要:Count Binary Substrings Given a binary string s, return the number of non-empty substrings that have the same number of 0's and 1's, and all the 0's a 阅读全文
posted @ 2022-11-26 20:29 iyiluo 阅读(13) 评论(0) 推荐(0) 编辑
摘要:License Key Formatting You are given a license key represented as a string s that consists of only alphanumeric characters and dashes. The string is s 阅读全文
posted @ 2022-11-21 22:08 iyiluo 阅读(14) 评论(0) 推荐(0) 编辑
摘要:frp 服务端部署 编写 docker-compose.yml 文件,这里设置成放开 7000-7010 的端口,可以根据需求自行修改 version: "3" services: frps: container_name: frps image: snowdreamtech/frps restar 阅读全文
posted @ 2022-11-21 22:08 iyiluo 阅读(99) 评论(0) 推荐(0) 编辑
摘要:问题场景 docker-compose.yml 被不小心删除了,但是容器还在 没有使用 docker-compose 管理的容器现在想迁移到 docker-compose 上 反向生成 docker-compose.yml 文件 使用 docker-autocompose 反向生成 用法 直接使用 阅读全文
posted @ 2022-11-21 22:07 iyiluo 阅读(253) 评论(0) 推荐(0) 编辑
摘要:Relative Ranks You are given an integer array score of size n, where score[i] is the score of the ith athlete in a competition. All the scores are gua 阅读全文
posted @ 2022-11-20 09:51 iyiluo 阅读(11) 评论(0) 推荐(0) 编辑
摘要:Lucky Numbers in a Matrix Given an m x n matrix of distinct numbers, return all lucky numbers in the matrix in any order. A lucky number is an element 阅读全文
posted @ 2022-11-20 09:51 iyiluo 阅读(12) 评论(0) 推荐(0) 编辑
摘要:Perfect Number A perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself. A divisor of an 阅读全文
posted @ 2022-11-20 09:51 iyiluo 阅读(13) 评论(0) 推荐(0) 编辑
摘要:Minimum Subsequence in No-Increasing Order Given the array nums, obtain a subsequence of the array whose sum of elements is strictly greater than the 阅读全文
posted @ 2022-11-20 09:50 iyiluo 阅读(11) 评论(0) 推荐(0) 编辑
摘要:集群环境 机器 A: 部署 xxl-job-admin 机器 B: 部署 xxl-job-executor 机器 A 的物理网卡 ip 地址为 x.x.x.x,机器 B 的物理网卡 ip 地址为 y.y.y.y 准备 修改执行器 yml 配置 xxl: job: admin: addresses: 阅读全文
posted @ 2022-11-15 17:45 iyiluo 阅读(1599) 评论(0) 推荐(0) 编辑
摘要:Fair Candy Swap Alice and Bob have a different total number of candies. You are given two integer arrays aliceSizes and bobSizes where aliceSizes[i] i 阅读全文
posted @ 2022-11-12 20:53 iyiluo 阅读(19) 评论(0) 推荐(0) 编辑
摘要:XOR Operation in an Array You are given an integer n and an integer start. Define an array nums where nums[i] = start + 2 * i (0-indexed) and n == num 阅读全文
posted @ 2022-11-12 20:27 iyiluo 阅读(8) 评论(0) 推荐(0) 编辑
摘要:Number of Valid Words in a Sentence A sentence consists of lowercase letters ('a' to 'z'), digits ('0' to '9'), hyphens ('-'), punctuation marks ('!', 阅读全文
posted @ 2022-11-12 13:36 iyiluo 阅读(23) 评论(0) 推荐(0) 编辑
摘要:Find Target Indices After Sorting Array You are given a 0-indexed integer array nums and a target element target. A target index is an index i such th 阅读全文
posted @ 2022-11-09 18:44 iyiluo 阅读(22) 评论(0) 推荐(0) 编辑
摘要:Thousand Separator Given an integer n, add a dot (".") as the thousands separator and return it in string format. Example 1: Input: n = 987 Output: "9 阅读全文
posted @ 2022-11-09 18:43 iyiluo 阅读(11) 评论(0) 推荐(0) 编辑
摘要:Increasing Decreasing String You are given a string s. Reorder the string using the following algorithm: Pick the smallest character from s and append 阅读全文
posted @ 2022-11-09 18:43 iyiluo 阅读(10) 评论(0) 推荐(0) 编辑
摘要:Binary Number with Alternating Bits Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have dif 阅读全文
posted @ 2022-11-09 18:43 iyiluo 阅读(17) 评论(0) 推荐(0) 编辑
摘要:问题场景 如下面所示,电脑 A 可以正常访问电脑 B,但是无法访问电脑 C。现在想通过端口转发工具,在电脑 B 上做端口映射,转发 tcp 或者 udp 流量到电脑 C 电脑A --> 电脑B --> 电脑C 准备工作 端口转发工具有很多,我这里用的是:hysteria,由于我需要连接的电脑是 Wi 阅读全文
posted @ 2022-11-08 20:18 iyiluo 阅读(3243) 评论(0) 推荐(0) 编辑
摘要:Most Common Word Given a string paragraph and a string array of the banned words banned, return the most frequent word that is not banned. It is guara 阅读全文
posted @ 2022-11-08 19:43 iyiluo 阅读(17) 评论(0) 推荐(0) 编辑
摘要:Count Equal and Divisible Pairs in an Array Given a 0-indexed integer array nums of length n and an integer k, return the number of pairs (i, j) where 阅读全文
posted @ 2022-11-08 19:43 iyiluo 阅读(18) 评论(0) 推荐(0) 编辑
摘要:Detect Capital We define the usage of capitals in a word to be right when one of the following cases holds: All letters in this word are capitals, lik 阅读全文
posted @ 2022-11-08 19:43 iyiluo 阅读(16) 评论(0) 推荐(0) 编辑
摘要:Check if Binary String Has at Most One Segment of Ones Given a binary string s without leading zeros, return true if s contains at most one contiguous 阅读全文
posted @ 2022-11-08 19:42 iyiluo 阅读(15) 评论(0) 推荐(0) 编辑
摘要:Array Partition Given an integer array nums of 2n integers, group these integers into n pairs (a1, b1), (a2, b2), ..., (an, bn) such that the sum of m 阅读全文
posted @ 2022-11-08 19:30 iyiluo 阅读(16) 评论(0) 推荐(0) 编辑
摘要:Maximum Population Year You are given a 2D integer array logs where each logs[i] = [birthi, deathi] indicates the birth and death years of the ith per 阅读全文
posted @ 2022-11-08 19:29 iyiluo 阅读(10) 评论(0) 推荐(0) 编辑
摘要:Count the Number of Consistent Strings You are given a string allowed consisting of distinct characters and an array of strings words. A string is con 阅读全文
posted @ 2022-11-08 19:29 iyiluo 阅读(15) 评论(0) 推荐(0) 编辑
摘要:Shift 2D Grid Given a 2D grid of size m x n and an integer k. You need to shift the grid k times. In one shift operation: Element at grid[i][j] moves 阅读全文
posted @ 2022-11-08 19:29 iyiluo 阅读(14) 评论(0) 推荐(0) 编辑
摘要:Merge Similar Items You are given two 2D integer arrays, items1 and items2, representing two sets of items. Each array items has the following propert 阅读全文
posted @ 2022-11-07 19:49 iyiluo 阅读(20) 评论(0) 推荐(0) 编辑
摘要:Element Appearing More Than 25% In Sorted Array Given an integer array sorted in non-decreasing order, there is exactly one integer in the array that 阅读全文
posted @ 2022-11-07 19:49 iyiluo 阅读(13) 评论(0) 推荐(0) 编辑
摘要:Maximum Number of Words Found in Sentences A sentence is a list of words that are separated by a single space with no leading or trailing spaces. You 阅读全文
posted @ 2022-11-07 19:48 iyiluo 阅读(24) 评论(0) 推荐(0) 编辑
摘要:Check if Number Has Equal Digit Count and Digit Value You are given a 0-indexed string num of length n consisting of digits. Return true if for every 阅读全文
posted @ 2022-11-04 19:10 iyiluo 阅读(21) 评论(0) 推荐(0) 编辑
摘要:Reach a Number You are standing at position 0 on an infinite number line. There is a destination at position target. You can make some number of moves 阅读全文
posted @ 2022-11-04 19:10 iyiluo 阅读(17) 评论(0) 推荐(0) 编辑
摘要:Minimum Difference Between Highest and Lowest of K Scores You are given a 0-indexed integer array nums, where nums[i] represents the score of the ith 阅读全文
posted @ 2022-11-04 19:07 iyiluo 阅读(14) 评论(0) 推荐(0) 编辑
摘要:Jewels and Stones You're given strings jewels representing the types of stones that are jewels, and stones representing the stones you have. Each char 阅读全文
posted @ 2022-11-04 19:07 iyiluo 阅读(13) 评论(0) 推荐(0) 编辑
摘要:Minimum Absolute Difference Given an array of distinct integers arr, find all pairs of elements with the minimum absolute difference of any two elemen 阅读全文
posted @ 2022-11-04 19:06 iyiluo 阅读(11) 评论(0) 推荐(0) 编辑
摘要:Robot Return to Origin There is a robot starting at the position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot 阅读全文
posted @ 2022-11-04 19:06 iyiluo 阅读(16) 评论(0) 推荐(0) 编辑
摘要:Reformat The String You are given an alphanumeric string s. (Alphanumeric string is a string consisting of lowercase English letters and digits). You 阅读全文
posted @ 2022-11-04 19:05 iyiluo 阅读(12) 评论(0) 推荐(0) 编辑
摘要:Detect Pattern of length M Repeated K or More Times Given an array of positive integers arr, find a pattern of length m that is repeated k or more tim 阅读全文
posted @ 2022-11-03 18:34 iyiluo 阅读(13) 评论(0) 推荐(0) 编辑
摘要:Maximum Repeating Substring For a string sequence, a string word is k-repeating if word concatenated k times is a substring of sequence. The word's ma 阅读全文
posted @ 2022-11-03 18:34 iyiluo 阅读(12) 评论(0) 推荐(0) 编辑
摘要:Find Winner on a Tic Tac Toe Game Tic-tac-toe is played by two players A and B on a 3 x 3 grid. The rules of Tic-Tac-Toe are: Players take turns placi 阅读全文
posted @ 2022-11-03 18:33 iyiluo 阅读(14) 评论(0) 推荐(0) 编辑
摘要:1-bit and 2-bit Characters We have two special characters: The first character can be represented by one bit 0. The second character can be represente 阅读全文
posted @ 2022-11-03 18:33 iyiluo 阅读(26) 评论(0) 推荐(0) 编辑
摘要:Binary Watch A binary watch has 4 LEDs on the top to represent the hours (0-11), and 6 LEDs on the bottom to represent the minutes (0-59). Each LED re 阅读全文
posted @ 2022-11-03 18:33 iyiluo 阅读(13) 评论(0) 推荐(0) 编辑
摘要:Rank Transform of an Array Given an array of integers arr, replace each element with its rank. The rank represents how large the element is. The rank 阅读全文
posted @ 2022-11-03 18:32 iyiluo 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Check if Word Equals Summation of Two Words The letter value of a letter is its position in the alphabet starting from 0 (i.e. 'a' -> 0, 'b' -> 1, 'c' 阅读全文
posted @ 2022-11-03 08:08 iyiluo 阅读(14) 评论(0) 推荐(0) 编辑
摘要:Reshape the Matrix In MATLAB, there is a handy function called reshape which can reshape an m x n matrix into a new one with a different size r x c ke 阅读全文
posted @ 2022-11-03 07:53 iyiluo 阅读(13) 评论(0) 推荐(0) 编辑
摘要:Remove Letter To Equalize Frequency You are given a 0-indexed string word, consisting of lowercase English letters. You need to select one index and r 阅读全文
posted @ 2022-11-01 22:10 iyiluo 阅读(23) 评论(0) 推荐(0) 编辑
摘要:Minimum Cost of Buying Candies With Discount A shop is selling candies at a discount. For every two candies sold, the shop gives a third candy for fre 阅读全文
posted @ 2022-11-01 20:22 iyiluo 阅读(12) 评论(0) 推荐(0) 编辑
摘要:N-th Tribonacci Number The Tribonacci sequence Tn is defined as follows: T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for n >= 0. Given n, retu 阅读全文
posted @ 2022-11-01 19:58 iyiluo 阅读(14) 评论(0) 推荐(0) 编辑
摘要:Binary Tree Paths Given the root of a binary tree, return all root-to-leaf paths in any order. A leaf is a node with no children. Example 1: Input: ro 阅读全文
posted @ 2022-11-01 19:58 iyiluo 阅读(17) 评论(0) 推荐(0) 编辑
摘要:Find N Unique Integers Sum up to Zero Given an integer n, return any array containing n unique integers such that they add up to 0. Example 1: Input: 阅读全文
posted @ 2022-11-01 19:57 iyiluo 阅读(15) 评论(0) 推荐(0) 编辑
摘要:Pascal's Triangle Given an integer numRows, return the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two num 阅读全文
posted @ 2022-11-01 19:57 iyiluo 阅读(10) 评论(0) 推荐(0) 编辑
摘要:Make Two Arrays Equal by Reversing Subarrays You are given two integer arrays of equal length target and arr. In one step, you can select any non-empt 阅读全文
posted @ 2022-11-01 19:57 iyiluo 阅读(15) 评论(0) 推荐(0) 编辑
摘要:windows 系统的远程桌面有很多,包括微软自带的 mstsc,不过 mstsc 只能在内网使用,在家庭版操作系统上默认无法使用。还有比较出名的 teamviewer、向日葵等,想要获得比较好的连接体验,一般都要花钱买付费服务。 搜索一番,发现有个比较好的开源远程桌面 rustdesk,官方提供服 阅读全文
posted @ 2022-11-01 14:50 iyiluo 阅读(1133) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示