Preface:Beginners after learning the makefile knowledge, full of confidence, the inner feel that should be good to learn not only to master the language of the writing, but also to learn the corresponding tools to adjust the development efficiency.
In the design of university courses, Lex (lexical analyzer generator) and YACC (syntax analyzer generator) were once compiled. Writing such tool software is not easy. This article records the main idea of programming at that time, mainly the idea of
Parts and Problems
Description
Given integers A1, A2,... an, judge whether several numbers can be selected from them to make their sum exactly K.
Input
First, input n to indicate the number of numbers.
Next,
From: http://blog.csdn.net/svitter
The original article may be because the number of words is too long and there is a problem when editing it. Instead, I had to write a new article for the time being.
What I learned today is search.I. Wide search 1.
This article implements the binary tree storage implementation. At first, we decided to design a class treenode of the Binary Tree node type like the queue and stack, and then construct a binary tree class processing node generation and traversal,
Concept:
A single data stream composed of one or more pes with a common time benchmark is called a program stream ).
ES is a data stream directly from the encoder. It can be a collectively referred to as an encoded video data stream, audio data
Java uses colletcions. Reverse () in reverse order ();/*** Definition for binary tree * Public class treenode {* int val; * treenode left; * treenode right; * treenode (int x) {val = x ;} *} */public class solution {public list zigzaglevelorder
1: log on to the web site in the browser and log on to the system.
2: Get the cookie information of the browser and use the program to start data capturing.
The problem is how to read the cookie information of the browser. You can use the win api
Sort list
Sort a linked list inO(NLogN) Time using constant space complexity.
Algorithm idea:
The time complexity is O (nlogn) sorting algorithms, such as fast sorting, Merge Sorting, and heap sorting. The fast sorting needs to be traversed
If it is difficult, it is difficult to divide the stage.
This is another question that segments the value range space.
Because RP has positive and negative values, the entire array is translated to the right in 10000 units of length.
L and R are the
C-ubiquitous religions
Time limit:5000 MSMemory limit:65536 KB
64-bit integer Io format:% I64d, % i64uJava class name:MainDescriptionthere are so large different religions in the world today that it is difficult to keep track of them all. You are
Real Time Streaming Protocol or RTSP (Real-Time Streaming Protocol) is an application layer protocol jointly proposed by real network and Netscape to effectively transmit streaming media data over an IP network. RTSP provides an extensible framework
++ A = 8; ++ A can be used as the left value, and a ++ = 8; errors cannot be used as the left value.
# Include Void main ()/* main function */{Int A, B, C, D;A = 5;B = 5;C = (a ++) + (A ++ );D = (++ B) + (++ B );Printf ("A = % d, B = % d, c = %
1. Brackets matching
# Include "stdafx. H "# include" stdio. H "# include" string. H "# define maxsize 100int main (INT argc, char * argv []) {char exp [maxsize]; char stack [maxsize]; int Top =-1; int I, len; scanf ("% s", exp); Len = strlen (exp);
Mr. Wolf learns originality and welcomes criticism and correction.
Code first
# Include "stdafx. H "# include # include "iostream" # include "Gl/glut. H "# include" math. H "# define windowswidth 500 # define windowsheight 500 using namespace STD;
Question link: http://acm.hnu.cn/online? Action = problem & type = show & id = 12830> courseid = 268
Solution: This question applies the features of Young's matrix. Select the maximum value of the last row to the first positive position of the row,
First question after going home ~~
Pure BFS + priority_queue
When such a problem occurs, it takes more than 1 minute to create a queue with priority.
Just like a tank battle in Nanyang
Do not forget to overwrite Operator During priority queue
Manacher Algorithm
First, we all know what it is called a back-to-text string. This algorithm is used to solve the length of the longest back-to-text substring in a string. This algorithm can calculate the maximum number of times that each character
I. Learning reason:
Recently, a friend needs to complete a crawling software. In general, python is a familiar language and has a wide range of capture and parsing modules, so you can choose it.
This is far from the focus. The background program is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service