Tag：Reverse order

Time：2020125
public static class QueryableExtension { public static IQueryable Paged(this IQueryable query, Expression> expression, OrderByType orderByType = OrderByType.Desc,int currentPage = 1, int pageSize = 5,int pageCount = 0) { if (currentPage < 1) { currentPage = 1; } var Skip = (currentPage – 1) * pageSize; var Take = pageSize; OrderByType byType = orderByType; var MaxPageIndex […]

Time：20201130
Title: give twoNon emptyThe linked list of is used to represent twoNonnegativeThe integer of. Among them, their respective digits are in accordance withReverse orderAnd they can only store one digit per node. If we add these two numbers together, we will return a new linked list to represent their sum. You can assume that except […]

Time：20201029
Last article《The principle of regular expression matching prime number》After writing, some students left a message to me about regular expressionLook aroundI don’t really understand; I hope I can explain the content of the look around part. Well, the purpose of this article is to help you understand what is look around, what is the role […]

Time：20201021
Leetcode problem 2: adding two numbers Subject address https://leetcode.com/problems… Title Description Give twoNon emptyIs used to represent two nonnegative integers. Among them, their respective digits are in accordance withReverse orderAnd each node of them can only storeOneNumbers. If we add these two numbers together, we will return a new linked list to represent their sum. […]

Time：2020929
Today’s knowledge points (March 11, 2020) [63. [wechat applet] example code of track playback realized by wechat applet]（ https://github.com/webVueBlog… [62（ https://github.com/webVueBlog… [61. [HTML] when map tag is used in HTML, how to accurately locate coords value in area? ] https://github.com/webVueBlog… 60. JS how to judge whether the text content is wrapped? [59. [CSS] what is […]

Time：2020926
107. Level traversal of binary trees II subject Source: leetcode https://leetcodecn.com/problems/binarytreelevelordertraversalii Given a binary tree, it returns the bottomup hierarchical traversal of its node values. (that is, traverse from left to right layer by layer from leaf node to root node) For example: Given the binary tree [3,9,20, null, null, 15,7], 3 / \ 9 […]

Time：2020923
Title:To give a positive integer with no more than 5 digits, the requirements are as follows: 1. Find the number of digits; 2. Print out the numbers in reverse order. Program analysis:Learn to break down each digit, as explained below. example: #include int main( ) { long a,b,c,d,e,x; Printf (“please input 5 digits)”; scanf(“%ld”,&x); A […]

Time：202093
Title:Output an array in reverse order. Program analysis:Exchange the first with the last. example: #include #define N 10 int main() { int a[N]={0,1,2,3,4,5,6,7,8,9}; int i,t; Printf (“the original array is:; for(i=0;i The output results of the above examples are as follows: The original array is: 0 1 2 3 4 5 6 7 8 9 […]

Time：2020814
Set is K1 V1 V2 V3, Zset is K1 Score1 V1 score v2 1、 Increase 127.0.0.1:6379 > zadd zset01 60 V1 70 V2 // 60, 70 stands for score (integer) 2 2、 Delete 127.0.0.1:6379 > zrem zset01 V1 // delete v1 (integer) 1 3、 Reform 127.0.0.1:6379> zrange zset01 0 1 withscores 1) “v0” 2) “50” […]

Time：2020727
Environmental Science: DataBase：mysql5.7 community MySQL download address: https://dev.mysql.com/downloa… Development language: Python 3.7.3 64bit Download MySQL driver: https://www.lfd.uci.edu/~gohl… Admin background Optimization: Django xadmin Django installation: PIP install Django = = 2.2 – I https://pypi.douban.com/simple Image installation: https://pypi.douban.com/simple PIP install Django = = 2.2 – I https://pypi.douban.com/simple Captcha plugin: Django simple captcha https://djangosimplecaptcha… redis windows：https://github.com/ServiceSta… Redis Python […]

Time：2020724
Question raised: reverse a single linked list Solution: the first thought is to use the stack to store the first traversal value of the linked list. Then traverse the linked list again, pop up the elements of the stack (the order of popup is just the reverse order of the node values of the linked […]

Time：2020722
A few days ago, a friend went to an interview. The interviewer asked him a list related algorithm problem, but he didn’t do it for a while, so he came to ask me. He felt that the problem was not bad. Let’s talk about it. subject This is actually a variant of the linked list […]