Common string function implementations~Own your own "library"

Common string function implementation! Have your own "library"! Reviewing a few commonly used strings, I think of a more interesting way to review them, which is to write these commonly used string functions by myself. Although it's common for big guys, it's a happy feeling for me to see my.h file included by #include. Today we'll s ...

Added by mikeq on Sat, 04 Dec 2021 02:44:38 +0200

Do you know when to calculate attributes with Vue?

Absrtact: when we deal with complex logic, we should use computational attributes. This article is shared from Huawei cloud community< Do you have an in-depth understanding of calculated attributes and know when to calculate attributes with Vue? >, author: honest man. Calculation properties Sometimes, we put too much logic into the templa ...

Added by everisk on Wed, 01 Dec 2021 08:24:08 +0200

LeetCode-131 split palindrome string

Split palindrome stringTitle Description: give you a string s. please divide s into some substrings so that each substring is a palindrome string. Returns s all possible segmentation schemes.A palindrome string is a string that reads the same forward and reverse.See LeetCode's official website for an example.Source: LeetCode Link: https://leet ...

Added by flashicon on Sun, 28 Nov 2021 03:44:42 +0200

Note: data structure - Chapter 4

Chapter IV string 4.1 string A String is a finite sequence of zero or more characters For example: S = "Hello World!"; Double quotation marks (Java, C) are used in some places; Use single quotation marks where necessary (Python) Substring - composed of any consecutive characters; Main string - a string containing substrings Em ...

Added by Michan on Wed, 10 Nov 2021 19:02:20 +0200

Trap of strings - remember incorrect understanding of string size comparison

​ This paper records a small experience of the author who was pitted by string in the process of doing the title (actually his own dish, a blog by the way). I hope to help a little white like me understand some aspect of string better. root of all evils Xiao Ming decided to apply for a new QQ number. The system randomly generated several number ...

Added by mrjam on Sun, 31 Oct 2021 18:45:05 +0200

In order to get her started with Python in 10 minutes, I stayed up late and wrote 7 cases and this article

preface Recently, I systematically studied the basic knowledge of python once, and thought of whether there was a way to master knowledge quickly. The general normal logic is to practice cases while reading basic knowledge, which is a process from thick to thin. But now the pace is so fast, especially Internet companies. Excluding the time to ...

Added by cillosis on Fri, 22 Oct 2021 14:34:20 +0300

Algorithmic Notes Reading Record DAY_18

CHAPTER_6 C++STL correlation 6.3 string In the c language, we use char arrays to store strings, which can be cumbersome. Therefore, adding a string type to STL makes it easier for us to manipulate strings. To use a string, you need to add a header file #include <string>. string's usage is recorded in Algorithmic Notes P202-P209. Mo ...

Added by Quevas on Sun, 03 Oct 2021 23:10:09 +0300

String ----- 6. String conversion integer (atoi)

Day 11: string to integer (atoi) Title Link: https://leetcode-cn.com/leetbook/read/top-interview-questions-easy/xnoilh/ Title: Please implement a myAtoi(string s) function to convert the string into a 32-bit signed integer (similar to the atoi function in C/C + +). The algorithm of the function myAtoi(string s) is as follows: Read in the s ...

Added by getmizanur on Thu, 30 Sep 2021 01:47:45 +0300

C language - detailed explanation of common character functions + simulation implementation

  Today is September 21, 2021. First of all, I wish you a Happy Mid Autumn Festival! May we all be blessed with longevity. Though far apart, we are still able to share the beauty of the moon together.. It's another full moon. I wish you all a reunion with the people you love and the people who love you on the Mid Autumn Festival~ Let's mo ...

Added by rash on Tue, 21 Sep 2021 11:32:32 +0300