Programming language C / C + +_ wcsupr_ S function - unicode string lowercase to uppercase - Introduction to zero basics of C language
Programming language C / C + +_ wcsupr_ S function - unicode string lowercase to uppercase - Introduction to zero basics of C language
catalogue
I_ wcsupr_ Introduction to s functionII_ wcsupr_s function practice3, Attention problem3, Guess you like it
Zero foundation C/C + + learning route recommendation: C/C + + Learning directory ...
Posted by DapperDanMan on Mon, 22 Nov 2021 22:03:55 -0800
BFS record path (learning record)
After learning BFS some time ago, I was very happy to find that oj had some problems to do! But the recording path baffled me again. Hurry to learn. This article is a review of BFS and its recording path methods.
Let's take an example: 1086 maze problem 1220 Look for homework 1654 Treasure House
Take 1654 as an example:
1654 Treasure H ...
Posted by shoombooltala on Mon, 22 Nov 2021 13:08:12 -0800
199. Right view of binary tree
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right) {} ...
Posted by sxiix on Sat, 20 Nov 2021 19:28:59 -0800
Programmer's interesting algorithm Q20: suffering facade magic square
1. Problem description
There is a famous scenic spot in Spain called the holy family hall. The "crucifixion Facade" mainly depicts the scene of Jesus from "the last supper" to "Ascension". There is also a magic cube array as shown in the figure below, which is famou ...
Posted by space1 on Sat, 20 Nov 2021 14:45:52 -0800
Violence recursion to dynamic programming
Steps:
1) Find out what variable parameters can represent a recursive state, that is, once the parameters are determined, the return value is determined
2) All combinations of variable parameters are mapped into a table. One variable parameter is a one-dimensional table, and two variable parameters are
Is a two-dimensional table
3) The fina ...
Posted by poscribes on Fri, 19 Nov 2021 16:06:52 -0800
Bellman Ford algorithm and example java code template
matters needing attention:
If there is a negative weight loop in the diagram, there is not necessarily the shortest circuit. Because if the infinite loop in the negative weight loop finally comes out, the shortest path is negative infinity.
For example, the following figure:
But what we said above is that if there is a negative weight loop ...
Posted by sqishy on Fri, 19 Nov 2021 02:39:43 -0800
Introduction to Niuke algorithm competition notes 1
2021-10-20: I opened a new pit yesterday. I felt OK after watching the previous episodes. I regretted why I didn't follow it earlier. I felt that my knowledge system was too scattered before. It seemed that the class ended in November or December. She said that she could reach the level of icpc bronze medal. I believe it for the time being. I h ...
Posted by Dia:NL on Wed, 17 Nov 2021 05:10:22 -0800
1200_ Statistical issues
subject
Description
The page numbers of a book are encoded sequentially from natural number 1 until natural number n. The page numbers of a book are arranged according to common practice. Each page number does not contain an extra leading number of 0. For example, page 6 is represented by number 6, not 06 or 006. The number counting problem r ...
Posted by FatalError on Fri, 12 Nov 2021 09:14:30 -0800
Maximum sub segment sum
Maximum sub segment sum
Problem: given the sequence a[1],a[2],a[3],..., a[n] composed of N integers (possibly negative numbers), find the maximum value of the sum of sub segments of the sequence such as a[i]+a[i+1] +... + a[j]. When all the given integers are negative, the sub segment sum is defined as 0. According to this definition, the optim ...
Posted by spiffy577 on Tue, 09 Nov 2021 01:54:08 -0800
leetcode299 - brush the question file every day
You are playing balls and cows with your friends. The rules of the game are as follows:
Write a secret number and ask your friend to guess what the number is. Every time a friend guesses, you will give him a hint containing the following information:
Guess how many digits in the number belong to the number and the exact position (called " ...
Posted by stenk on Mon, 08 Nov 2021 12:41:16 -0800