LeetCode 192
01 Title Description
Write a bash script to count a text file words The frequency of each word in txt. For simplicity, you can assume:
1. words.txt includes only lowercase letters and ''.
2. Each word consists of only lowercase letters.
3. Words are separated by one or more space characters.
02 (word ...
Posted by phpbeginner on Tue, 05 Apr 2022 07:02:51 +0300
Daily
leetcode
1047. Delete all adjacent duplicates in the string
describe
Given a string consisting of lowercase letters, {S, the duplicate deletion operation will select two adjacent and identical letters and delete them.
Repeat the duplicate deletion operation on S until the deletion cannot continue.
Returns the final string after all dedup ...
Posted by cyrixware on Mon, 04 Apr 2022 08:22:49 +0300
Traditional artistic ability 😎
Xiaobian is a freshman with double non undergraduate courses. I won't repeat it. You are welcome to give advice (QQ: 1319365055) Previous blogs Point me! Point me! Please search blogger [know the blue of the sky] Joe Joe's gitee code base (grey man) Welcome to visit, click me!
🎉🎉 Non Keban transcoding com ...
Posted by khaldryck on Mon, 04 Apr 2022 07:37:10 +0300
I need to wait for my roommate before dinner and write down the process of solving this problem.
Sum of three
Post a picture first
Violent solution
the violence here is reflected in two aspects: one is to find three numbers in the cycle of violence, and the other is to judge whether the current solution is already concentrated.
D ...
Posted by Mikester on Sun, 03 Apr 2022 07:21:29 +0300
212. Word search II
Title Description
Given an m x n two-dimensional character grid board and a word (string) list words, find all the words that appear in the two-dimensional grid and dictionary at the same time.
Words must be formed alphabetically by letters in adjacent cells, where "adjacent" cells are those horizontally or vert ...
Posted by MrBiz on Sun, 03 Apr 2022 04:24:21 +0300
Arrays and strings
1, One dimensional array
1. Find the central index of the array
Title Description: An integer array nums, write a method that can return the "central subscript" of the array The central subscript of the array is a subscript of the array. The sum of all elements on the left is equal to the sum of all elemen ...
Posted by lostincoding on Sat, 02 Apr 2022 04:22:49 +0300
731. My schedule II
Implement a MyCalendar class to store your schedule. If the time to be added does not result in triple bookings, you can store the new schedule.
MyCalendar has a book(int start, int end) method. It means adding a schedule within the time from start to end. Note that the time here is a semi open interval, i.e. [start, end]. ...
Posted by jeet_0077 on Sat, 02 Apr 2022 04:19:17 +0300
Learn algorithm, brush force buckle, refueling roll, enter the big factory!
Title Description
Force button title link
Given an integer array nums and an integer target value target, please find the two integers with and as the target value target in the array and return their array subscripts.
You can assume that each input will correspond ...
Posted by shoutdots on Sat, 02 Apr 2022 00:36:56 +0300
sketchy description
heap is not an STL container component. It is a hero behind the scenes and plays the assistant of priority queue.priority queue allows users to push any element into the container in any order, but it must be accessed from the element with the highest priority.
Why use heap as the underlying mechanism of priority queue?
I ...
Posted by stuart7398 on Fri, 01 Apr 2022 11:52:15 +0300
subject
22. Bracket generation
Medium difficulty
The number n represents the logarithm of the generated parentheses. Please design a function to generate all possible and effective combinations of parentheses.
Example 1:
Input: n = 3
Output:["((()))","(()())","(())()","()(())","()()()"]
Example 2:
Input: n = 1
Output:["()"]
Ti ...
Posted by namasteaz on Fri, 01 Apr 2022 00:10:51 +0300