20. Easy to use: 45% pass rate
Method 1: Origin: Failed Violence: For my own future review, there are all kinds of situations that I did not think of at first but follow up and corresponding responses
Principle: Normally judge if the current item and the next item are a bunch of parentheses, and add the response of the left parentheses group ...
Posted on Tue, 12 Oct 2021 15:49:40 -0400 by vronsky
Usually used in the process of brushing questions, there are many problems about character conversion. A comprehensive summary is made here in order to quickly solve and solve the problem in this way.
0.1 string and int convert to each other
0.1.1 converting string type to int type
Method 1: use the atoi () function
Posted on Mon, 11 Oct 2021 19:09:29 -0400 by Txtlocal
Title 1: Find the first character in the string that appears only once. If you enter "abaccdeff", output'b'.
We see that the first possible idea for this question is to start scanning each character in the string from the beginning. When a character is accessed, compare it with each subsequent character, and if no duplicate character ...
Posted on Sun, 03 Oct 2021 12:34:00 -0400 by gintjack
Serve directly in jdk1.8
Previously, I didn't understand string constant pools very well. I read some articles and sorted out some experiments by myself. The article mainly explained the questions of "How many objects will a piece of code create?" and "Does two string variables point to the same address?".
First String is ...
Posted on Tue, 21 Sep 2021 14:43:38 -0400 by SilveR316
Summary of string functions and memory functions (explained)
Introduction to string functions
strlen (string length calculation function)
Strcpy / strncpy (string copy function)
Strcat / strncat (string splicing function)
StrCmp / strncmp (string comparison function)
strstr (string lookup function)
strtok (string sl ...
Posted on Tue, 21 Sep 2021 03:42:33 -0400 by spaggle