[Python series column] Part 15 functional programming in Python

Functional programming Function is a kind of encapsulation supported by Python built-in. We can decompose complex tasks into simple tasks by disassembling large pieces of code into functions and calling functions layer by layer. This decomposition can be called process oriented programming. Function is the basic unit of process oriented pr ...

Added by jpraj on Fri, 18 Feb 2022 11:35:13 +0200

C language character, character array, character pointer

definition (1) String A string is a string of characters composed of letters, numbers, underscores, spaces and other characters. It is a constant. (however, C language does not provide string data type, which is generally represented by character array) (2) Character array Each character array element is a single character array. initi ...

Added by RobReid on Sat, 12 Feb 2022 05:15:02 +0200

[Blue Lake special session] the 241st weekly match of Li Kou

I went to bed late last night. I went to bed at 4 o'clock and got up at 10 o'clock to play the game Question 1: 5759 Find the XOR sum of all subsets and then sum Title Link 5759. Find the XOR sum of all subsets and sum again Topic introduction Topic idea Directly find the number of subsets, and then XOR each subset, and finally su ...

Added by pavanpuligandla on Thu, 10 Feb 2022 22:59:49 +0200

Sword finger offer related exercises (3 ~ 10)

catalogue Title: Sword finger offer03: repeated numbers in the array Title: Sword finger offer04: search in two-dimensional array Title: Sword finger offer05: replace spaces Title: Sword finger offer06: print linked list node information from end to end Title: Sword finger offer07: reconstruction of binary tree (pre order + middle order) ...

Added by Fusioned on Thu, 10 Feb 2022 12:33:27 +0200

Split palindrome string

According to the problem solution summary of code Capriccio thinking This topic involves two key issues: 1. How to cut 2. Judge whether palindrome In fact, the cutting problem is similar to the combinatorial problem. So we need to use backtracking to cut strings. For example, for the string abcdef: Combinatorial problem: after selecting a ...

Added by turtlekid8 on Wed, 09 Feb 2022 19:26:00 +0200

Python basic 100 questions punch in Day2

Day2 Topic 4 Write a program to accept a series of comma separated numbers from the console and generate a list and a tuple containing each number. Suppose the following inputs are provided to the program: 34,67,55,33,12,98 The output should be: ['34', '67', '55', '33', '12', '98'] ('34', '67', '55', '33', '12', '98') code implementation ls ...

Added by jd307 on Tue, 01 Feb 2022 11:07:31 +0200

Read the Java String of the source code carefully (I)

Close reading of the source code is the column of appreciating the source code under the horse soldier education. The purpose of our appreciation of the source code is not to show off our skills, but to understand the author's design ideas and extract the essence, so as to write more excellent code. On the other hand, you can also give extra po ...

Added by mashamit on Mon, 31 Jan 2022 18:30:11 +0200

Application of ESP8266 based on punctual atom STM32F103ZET6

Application of ESP8266 based on punctual atom STM32F103ZET6 preface The ATK-ESP8266 WIFI module of punctual atom is used in this test. Directly use the firmware provided by the official and use the AT command to configure the module and use it. The module defaults to AT command status, and the analog baud rate is 115200 (8bit data bit, 1bit ...

Added by admun on Mon, 31 Jan 2022 17:08:37 +0200

Vi Python built-in functions

1. Mathematical operation function Introduction to built-in functions: Built in functions, which are built-in functions after Python installation All built-in function usage websites officially provided by Python: https://docs.python.org/zh-cn/3/library/functions.html Common mathematical operation functions: 1.abs() - find the absolute ...

Added by Virii on Mon, 31 Jan 2022 15:24:24 +0200

[JVM] StringTable - string constant pool

1. StringTable StringTable location of different JDK versions 1.1 basic characteristics of string String string, represented by a pair of "".The String class is declared as final and cannot be inheritedString: implements the Serializable interface: indicates that the string supports serialization, and implements the Comparable int ...

Added by prometheos on Mon, 31 Jan 2022 00:12:14 +0200