[string special session] can only use library functions? The interviewer asked me to go out and turn left

⭐ Introduction ⭐ ️ Hello, everyone. I'm an executive. Today we bring you a set of special training on string processing. No matter you are studying or working, you must have a lot of contact with string. If you deal with string at ordinary times, you must use library functions directly. After all, there are many library functions for strings. ...

Added by Ferdog on Sun, 02 Jan 2022 23:25:28 +0200

[Leetcode]5970. Maximum number of employees attending the meeting

[Title Description] Force bucklehttps://leetcode-cn.com/problems/maximum-employees-to-be-invited-to-a-meeting/ A company is going to organize a meeting with n# employees on the invitation list. The company has prepared a round table for any number of employees. Employee numbers are 0} to n - 1. Each employee has an employee who likes , and ...

Added by dhope on Sun, 02 Jan 2022 20:42:01 +0200

[case of algorithm thousands of questions] daily LeetCode punch in - 99. 1

📢 preface 🚀 Algorithm problem 🚀 🌲 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 a state of learning every day, let's work together to become the great God of algorithm ...

Added by ade1982 on Sun, 02 Jan 2022 19:13:58 +0200

LeetCode brush notes sorting algorithm merge sorting

Introduction to merge sort Algorithm idea: The core idea of merge sort is to use divide and conquer strategy to classify the sort task of the whole array into two sub problems, the first half sort and the second half sort, and then integrate the two ordered parts to complete the overall sort. That is, the array is divided into several subsequ ...

Added by cursed on Sun, 02 Jan 2022 18:51:09 +0200

Game play Analysis series

511. Game play analysis I Activity table: +--------------+---------+ | Column Name | Type | +--------------+---------+ | player_id | int | | device_id | int | | event_date | date | | games_played | int | +--------------+---------+ The primary key of the table is (player_id, event_date). This table shows the behavi ...

Added by mcmuney on Sun, 02 Jan 2022 03:46:49 +0200

LeetCode 82. Remove Duplicates from Sorted List II - Linked List series question 11

Given the head of a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. Return the linked list sorted as well. Example 1: Input: head = [1,2,3,3,4,4,5] Output: [1,2,5] Example 2: Input: head = [1,1,1,2,3] Output: [2,3] Constraints: The number of nodes in the lis ...

Added by Viruthagiri on Sun, 02 Jan 2022 03:06:29 +0200

105 construct binary tree from preorder and inorder traversal sequences & & 106 construct binary tree from inorder and postorder traversal sequences (recursion + hash)

introduction These two questions are mainly to investigate the mastery of binary tree traversal, that is, the original binary tree is derived from the front order and middle order, and the original binary tree is derived from the back order and middle order. Let's talk about the derivation process first; Preorder and middle order Know the preo ...

Added by iarp on Sat, 01 Jan 2022 04:29:54 +0200

Java daily question -- > sword finger Offer II 034 Are alien languages sorted

subject This is [034, modified phrase] on LeetCode. The difficulty is [simple] Some alien languages also use English lowercase letters, but the order may be different. The order of the alphabet is the arrangement of lowercase letters. Given a set of words written in an alien language and the order of its alphabet, it returns true only wh ...

Added by Quest on Fri, 31 Dec 2021 05:33:26 +0200

Data structure -- LeetCode special exercise Day3

350. Intersection of two arrays II Given two arrays, write a function to calculate their intersection. Example 1: Input: nums1 = [1,2,2,1], nums2 = [2,2] Output: [2,2] Example 2: Input: nums1 = [4,9,5], nums2 = [9,4,9,8,4] Output: [4,9]   explain: The number of occurrences of each element in the output result shall be consistent with the m ...

Added by LoStEdeN on Fri, 31 Dec 2021 03:22:10 +0200

leetcode brush notes (continuously updated...)

1. Algorithm 1.1 dynamic planning 1.1. 1 simple topic 53. Maximum subsequence sum Given an integer array nums, find a continuous sub array with the largest sum (the sub array contains at least one element) and return its maximum sum. Method 1 /* Use f(i) to represent the "maximum sum of continuous subarrays" ending with the ...

Added by mfos on Thu, 30 Dec 2021 17:35:53 +0200