HOT100 -- Find the median of two positive ordinal groups (JS implementation)
The dual pointer method is used to solve the problem. A pointer to array 1. A pointer to array 2. Compare the size of the elements to which the two Pointers point, adding the smaller one to the sorted array, until one of the elements is done, adding the remaining elements to the sorted array
LeetCode HOT 100 Solution (Easy level)
Selected from 100 LeetCode topics, this article is easy level only, suitable for beginners of algorithms and data structures and those who want to improve quickly and efficiently.
August Leetcode array (piece of) | more challenges
Hello everyone, I have become a member of the problem brushing army, this Leetcode array is divided into three chapters, this article is the middle part, there are the first and the second part, I hope to help you.
Small element K] [LeetCode disorderly array | punch brush
Small element] [LeetCode disorderly array K | brush brush clock in question have been habit, recently saw the nuggets held the brush topic activity, have come to attend! This topic is question 12. I have to say the nuggets theme is beautiful! Praise. This article is participating in the nuggets team online activities, click to check
LeetCode 153: Find the minimum value in the rotation sort array
Given an array of length N, it is arranged in ascending order and rotated 1 to n times to obtain the input array. For example, the original array nums = [0,1,2,4,5,6,7] might be changed to: if rotated four times, yes
Leetcode 997. Find the Town Judge (Python)
Leetcode 997. Find the Town Judge (Python
Leetcode 693. Binary Number with Alternating Bits (Python)
Leetcode 693. Binary Number with Alternating Bits (Python)
Bubble sort and insert sort
Bubble sort and insert sort # bubble sort The space complexity is O(1). 2. Stable sorting algorithm. When there are two adjacent elements of equal size, we do not swap. 3
Double pointer leetcode
Given an array of integers in ascending order numbers, find two numbers that add up to the target number. 2. We use two Pointers, left and right, to point to the beginning and end of the array, respectively.
LeetCode (1)
Given an array of integers (nums) and an integer target value (target), find the target value (tar) in the array