Tag:Reverse order

  • How to optimize EF paging

    Time:2020-12-5

    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 […]

  • Leetcode002 sum of two numbers medium

    Time:2020-11-30

    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 […]

  • Distance to understand the regular look around, you only need this article

    Time:2020-10-29

    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 […]

  • Add twonumbers sum JavaScript solution

    Time:2020-10-21

    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. […]

  • Answers of front end interview day: March 17, 2020

    Time:2020-9-29

    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 […]

  • Leetcode 107. Hierarchical traversal of binary tree II | Python

    Time:2020-9-26

    107. Level traversal of binary trees II subject Source: leetcode https://leetcode-cn.com/problems/binary-tree-level-order-traversal-ii Given a binary tree, it returns the bottom-up 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 […]

  • C practical exercise topic 29

    Time:2020-9-23

    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 […]

  • C practical exercises topic 40

    Time:2020-9-3

    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 […]

  • Sorted sets in redis syntax analysis

    Time:2020-8-14

    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” […]

  • Django learning notes

    Time:2020-7-27

    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 plug-in: Django simple captcha https://django-simple-captcha… redis windows:https://github.com/ServiceSta… Redis Python […]

  • Reverse linked list (Python 3)

    Time:2020-7-24

    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 pop-up is just the reverse order of the node values of the linked […]

  • This byte jumps the interview question, lets innumerable programmer be mad for it

    Time:2020-7-22

    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 […]