hdu 3954 Level up · line tree

Title Solution Meaning: a row of n level 1 heroes will upgrade their experience of fighting monsters. They will tell you the experience value required by each level. If you can't upgrade the experience value, you will be given two operations: W l r e for each wave of monsters, send heroes in the [l, ...

Posted by jgetner on Fri, 21 Feb 2020 05:42:15 -0800

set notes of Chou Hanpai

Similar digital advanced set jw big guy's: set the naked question. First, each array is de duplicated and then thrown into the set. The answer is the number of elements reduced after de duplication / the number of elements in the set. You can use unique for de duplication. However, this problem feels ...

Posted by juniorbisono on Tue, 18 Feb 2020 05:06:40 -0800

HHU winter holiday training 4

A - Neon Sign Meaning: the complete graph of n points. The colors of each vertex and other vertex edges are blue and red. The number of triangles with the same color on three sides is required. Considering that violence O(n^3) can T, so I tried to find a counter solution (if the colors on both sides a ...

Posted by greencoin on Mon, 17 Feb 2020 00:54:37 -0800

The best location of book information table based on chain storage structure

The best location of book information table based on chain storage structure describe   Define a linked list containing book information (book number, book name, price), read in the corresponding book data to complete the creation of the book information table, and then search for the books in the ...

Posted by aquayle on Sun, 16 Feb 2020 04:07:07 -0800

Luogu P1742 minimum circle cover

Problem surface Given N points, let's draw the smallest circle that contains all the points. Analysis This problem is actually to find out a circle determined by three points, which can contain all other points. There is a close relationship with three points in a circle. First, three points in a ci ...

Posted by lachild on Sat, 15 Feb 2020 20:04:58 -0800

Water wave animation of iOS animation

In order to provide a good interactive effect for users, many app s usually add animation effect to achieve the goal. A good animation effect will often play the role of masterstroke. Today, we will realize the water wave animation in IOS. First on the renderings: It's a little complicated to see many effects of realizing w ...

Posted by Stinger51 on Sat, 15 Feb 2020 08:47:17 -0800

React Navigation 5.0 Series 1: Use of StackNavigator

Presumably the reader's friends are Official announcement: Major updates to ReactNative Navigation Library This article learns that React Navigation, the official route navigation library recommended by React Native, has been updated to the 5th edition. It also learns about specific improvements and changes. Interested friends can read this art ...

Posted by OMorchoe on Fri, 14 Feb 2020 22:13:01 -0800

Click a button, if the phone has an app installed, open the app directly, otherwise jump to the application market to download the app

Recently, we are making such a function. When the front-end webpage clicks the button, if the user's mobile phone has the app installed, the app will be opened directly; otherwise, it will jump to the application market to download. The code is as follows: <!DOCTYPE html> <html> <head> <meta charset="ut ...

Posted by friendlylad on Thu, 13 Feb 2020 13:31:32 -0800

Elegant design pattern - object oriented basis

How to understand object-oriented Abstract is the prerequisite of encapsulation, inheritance and polymorphism. Reasonable abstraction comes from reasonable analysis and understanding of business topics. Reasonable abstraction should be self consistent and easy to understand about the relationship betwee ...

Posted by realmxofxnoise on Wed, 12 Feb 2020 21:23:25 -0800

app evokes the perfect solution and prevents browser's default pop-up behavior

https://stackoverflow.com/questions/10237031/how-to-open-a-native-ios-app-from-a-web-app var frame = document.createElement('iframe'); frame.src = 'myapp://?params=...'; frame.style.display = 'none'; document.body.appendChild(frame); setTimeout(function() { document.body.removeChild(frame); }, 4); The above pl ...

Posted by aktell on Wed, 12 Feb 2020 08:49:09 -0800