Shortest complement

Title Description Source: LeetCode Give you a string licensePlate and a string array words. Please find and return the shortest complement word in words. A complement is a word that contains all the letters in the licensePlate. Of all the complements, the shortest one is the shortest one. When matching letters in the licensePlate: Ignore n ...

Added by scast on Fri, 10 Dec 2021 13:17:56 +0200

[LeetCode Title Refresh] Greedy algorithm

Greedy Algorithm Greedy algorithms or ideas use greedy strategies to ensure that each operation is locally optimal, so that the final result is globally optimal. 455 Distribute biscuits Title Description (Simple) Suppose you're a great parent and you want to give your children some cookies. However, each child can only give one cookie at mo ...

Added by junkie_doodle on Wed, 08 Dec 2021 23:13:11 +0200

[C language brush LeetCode] 1034. Boundary coloring (M)

[ Give you an integer matrix grid of size m x n, representing a grid. I'll give you three more integers   row, col, and color. Each value in the grid represents the color of the grid block at that location. Two grid blocks belong to the same connected component, and all the following conditions shall be met: The two grid blocks are the ...

Added by l053r on Wed, 08 Dec 2021 20:02:36 +0200

leetcode of algorithm interview in Dachang 22. Dictionary tree

leetcode of algorithm interview in Dachang 22. Dictionary tree Video Explanation (efficient learning): Click to learn catalog: 1. Introduction 2. Time and space complexity 3. Dynamic planning 4. Greed 5. Binary search 6. Depth first & breadth first 7. Double pointer 8. Sliding window 9. Bit operation 10. Recursion & divide and conquer 1 ...

Added by slicer123 on Wed, 08 Dec 2021 10:26:13 +0200

[LeetCode single linked list] circular linked list (141)

1. Title Give you a head node of the linked list to judge whether there are links in the linked list. If there is a node in the linked list that can be reached again by continuously tracking the next pointer, there is a ring in the linked list. In order to represent the rings in a given linked list, the evaluation system uses the inte ...

Added by feyd on Wed, 08 Dec 2021 04:17:46 +0200

leetcode essence of algorithm interview in Dachang 21. Tree

leetcode essence of algorithm interview in Dachang 21. Tree Video Explanation (efficient learning): Click to learn catalog: 1. Introduction 2. Time and space complexity 3. Dynamic planning 4. Greed 5. Binary search 6. Depth first & breadth first 7. Double pointer 8. Sliding window 9. Bit operation 10. Recursion & divide and ...

Added by leewad on Wed, 08 Dec 2021 00:32:52 +0200

leetcode 169: most elements

Title Description: Given an array of size n, find most of its elements. Most elements refer to elements that appear more than ⌊ n/2 ⌋ in the array. You can assume that the array is non empty and that there are always many elements in a given array. Example 1: Input: [3,2,3] Output: 3 2: Input: [2,2,1,1,1,2,2] Output: 2 Idea: Viol ...

Added by DeltaRho2K on Tue, 07 Dec 2021 18:55:28 +0200

[LeetCode] question 88: merge two ordered arrays

  Title: Give two ordered integer arrays nums1 and nums2, 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 order Note: the merged array should not be returned by the function, but stored in the array nums1. It is assum ...

Added by Tilemachos on Mon, 06 Dec 2021 04:33:30 +0200

LeetCode 269. Martian dictionary

There is an alien language that uses English letters. The alphabetical order of this language is different from that of English. Given a string list words, as the dictionary of the language, the strings in words have been sorted alphabetically in the new language. Please restore the known alphabetical order in this language according to the d ...

Added by Blaze(!) on Sun, 05 Dec 2021 07:19:56 +0200

A simple spring IOC container

Spring is a Java development framework. Its core content includes spring IOC, spring AOP and other components. It supports object inversion of control and automatic dependency injection Learning Spring is something every Java developer has to do. It's just the saying that reading thousands of books is better than walking thousands of miles. ...

Added by enterume on Thu, 02 Dec 2021 00:01:39 +0200