leetcode brush Title records day024:20 and 118

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

[character conversion related] recent question brushing training -- autumn move in 2021

0 Introduction 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 #in ...

Posted on Mon, 11 Oct 2021 19:09:29 -0400 by Txtlocal

Swordfinger offer--The first character in a string/stream that occurs only once (+3 similar solution questions)

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

Understanding String Constant Pool from the Byte Code Perspective

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

⭐ Mid Autumn Festival meeting advanced C language ⭐ String function and memory function [recommended collection]

catalogue preface 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