Summary of Interface Fluency Learning

Recognize that you are still garbage After deleting all the previous articles and closing the blog, I feel that some articles I wrote before are too rubbish, so I will review them for my own amusement. It's a good thing to think of your own dishes. At least you know that you need to continue to learn, and at least you have the motivation to con ...

Added by shturm681 on Tue, 16 Jul 2019 20:49:35 +0300

javascript implementation (bubble, fast, select, insert, dichotomous insert) algorithm

Bubble sort Bubble sorting is an exchange sort, whose basic idea is to compare the keywords of adjacent records between two pairs, and swap them if they are in reverse order until there are no records in reverse order.It repeatedly visits the columns to be sorted, compares two elements at a time, and exchanges them if they are in the wrong orde ...

Added by Fluoresce on Mon, 15 Jul 2019 20:32:28 +0300

C++ Copy Control and Resource Management, Simple Implementation of Intelligent Pointer

C++ Notes on Copy Control and Resource Management, and introduces the concept of some C++ smart pointers, and then implements an intelligent pointer based on reference counting. There will be special research on C++ intelligent pointer. Typically, classes that manage extraclass resources must define copy control members. To define these member ...

Added by parag on Sun, 14 Jul 2019 00:01:58 +0300

Blue Bridge Cup

The idea of the game of taking a ball is clear, that is, to traverse all possible situations of two people, and finally to see the number of odd balls in two hands.Depth-first search can be used when traversing But direct depth-first searches are definitely not possible, because if you have 1,000 balls, you have three choices at a time, tota ...

Added by RottenBananas on Sat, 13 Jul 2019 20:14:27 +0300

Custom Control Details (4): Paint Brush Path Effect

Paint, the "pen" used to draw graphics We know some basic uses of Paint before: paint.setAntiAlias(true);//anti-aliasing paint.setColor(Color.RED); //setpc paint.setStyle(Style.FILL);//Setting Fill Style paint.setStrokeWidth(10);//Set Brush Width, Unit px paint.setShadowLayer(10, 15, 15, Color.GREEN);//Setting Shadows However, ...

Added by mwkdesign on Sat, 13 Jul 2019 03:52:39 +0300

Minimum number of k

For reprinting, please indicate the source: http://blog.csdn.net/ns_code/article/details/26966159 Title Description: Enter n integers and find out the smallest number of K. For example, if you input 8 digits: 4, 5, 1, 6, 2, 7, 3, 8, the smallest 4 digits are 1, 2, 3, 4. Input: each test The case consists of two lines: The first act ...

Added by BluntedbyNature on Sat, 13 Jul 2019 00:43:14 +0300

P3369 [Template] General Balance Tree (Treap/SBT)

Topic Description You need to write a data structure (referable title) to maintain some numbers, which need to provide the following operations: Insert x number Delete the number x (if there are more than one identical number, because only one is deleted) Query the ranking of x numbers (if there are multiple identical numbers, ...

Added by Jurik on Fri, 12 Jul 2019 21:26:20 +0300

Java Basic Tutorial - Inheritance

inherit One class can inherit from another class. Derived classes (subclasses) inherit the methods and data members of the parent class. Keyword: Subclass extends parent. public class inherit { public static void main(String[] args) { //Wang Sicong a = new Wang Sicong (); System.out.println(a.money); a.show(); } ...

Added by assgar on Fri, 12 Jul 2019 21:16:14 +0300

Wolf from Zero Programming - Create Simple Encryption Programs with Python (8)

This is the last one. The encryption applet has been finished, or you can pack it and take it away. This article lists several improvements for the purpose of: - Try to improve the user experience - DEBUG I. Fix the Bugs BUG due to different order of function parameters Previously, I was too excited to finish writing. Yesterday I to ...

Added by latino.ad7 on Fri, 12 Jul 2019 19:50:41 +0300

MVP mode of Android

MVP mode Android MVP Pattern Android MVP mode1 It's nothing new, and I've used this design pattern extensively in my own projects. When the project is more and more large and complex, and more and more R&D personnel are involved, the advantages of MVP model are fully demonstrated. Guide: MVP mode is a variant of MVC mode on An ...

Added by php_blob on Fri, 12 Jul 2019 02:37:32 +0300