leetcode
Title Description You are given two integer arrays nums1 and nums2 in non decreasing order, and two integers m and n representing the number of elements in nums1 and nums2 respectively. Please merge nums2 into nums1 so that the merged array is also arranged in non decreasing order. Title ExampUTF-8...
Posted by soulmedia on Mon, 27 Dec 2021 04:09:30 +1030
Leetcode.707. Design linked list https://leetcode-cn.com/problems/design-linked-list/ Design the implementation of linked list. You can choose to use single linked list or double linked list. A node in a single linked list should have two attributes: val and next. val is the value of the currenUTF-8...
Posted by redd on Tue, 28 Dec 2021 01:42:53 +1030
In order from simple to difficult, break through the hurdles in turn (the title number is the serial number of leetcode) Grade: simple Main JAVA Source: https://leetcode-cn.com/ catalogue 1. A number that appears only once (136) - bit operation 2. Majority elements (169) -- Boyer Moore voting aUTF-8...
Posted by zartzar on Tue, 28 Dec 2021 08:05:43 +1030
📢 preface 🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌲 Punching out an algorithm problem every day is not only a learning process, but also a sharing process 😜🌲 Tip: the problem-solving programming languages in this column are C# and Java🌲 To maintain UTF-8...
Posted by VFRoland on Tue, 28 Dec 2021 11:16:03 +1030
From forward and backward slash to hollow square triangle pattern BC66 backslash pattern describe KiKi learned the cycle, and teacher BoBo gave him a series of practice of printing patterns. The task is to print the backslash pattern composed of "*". Enter description Multiple groups of inputs,UTF-8...
Posted by jamesgrayking on Tue, 28 Dec 2021 22:52:14 +1030
140. Word splitting II Given a non empty string s and a dictionary wordDict containing a non empty word list, add spaces in the string to construct a sentence so that all the words in the sentence are in the dictionary. Return all these possible sentences. explain: Words in the dictionary can UTF-8...
Posted by monkeytooth on Thu, 30 Dec 2021 17:38:28 +1030
Sword finger Offer 40 Minimum number of k Enter the integer array arr to find the minimum number of k. For example, if you enter 8 numbers: 4, 5, 1, 6, 2, 7, 3 and 8, the minimum 4 numbers are 1, 2, 3 and 4. I got this question, the first reaction is a sort, and finally return to the first k. AUTF-8...
Posted by amity on Fri, 31 Dec 2021 05:00:16 +1030
Topic source 337. House raiding III Title details After robbing a street and a circle of houses last time, the thief found a new area that could be stolen. There is only one entrance to this area, which we call "root". In addition to the "root", each house has and only has a "father" house connUTF-8...
Posted by iamali on Fri, 31 Dec 2021 05:43:03 +1030
Search two-dimensional matrix II topic ideas and source code The topic of searching two-dimensional matrix II is shown in the figure below. This topic belongs to the type of array and bisection search, which mainly focuses on the use and understanding of two-dimensional array and bisection. In UTF-8...
Posted by mjdamato on Fri, 31 Dec 2021 11:53:20 +1030
Topic introduction Please design and implement a data structure that meets the LRU (least recently used) cache constraint. Implement LRUCache class: LRUCache(int capacity) initializes the LRU cache with a positive integer as capacityint get(int key) if the keyword key exists in the cache, the vUTF-8...
Posted by Arab Prince on Sat, 01 Jan 2022 15:10:33 +1030