One-way list inversion

The inversion of one-way list is an interview question with very high frequency. I once suffered a loss on this question, but it doesn't matter. Let's study it. First of all, the one-way characteristics of linked list: 1. Only forward can a node be found. 2. The next node address of the last node (which we usually call the next pointer) is n ...

Posted by baranwalpk on Tue, 26 Mar 2019 12:12:29 -0700

android Learning - Tab Tab Tab Tab Tab with TabLayout and some problems encountered (1)

Use of TabLayout Foreword: Better to use, more convenient and more concise link:https://developer.android.google.cn/reference/android/support/design/widget/TabLayout.html 1. start 1.1 Add a reference to TabLayout compile 'com.android.support:design:25.1.0' 1.2 Adding TabLayout layout to xml <android.support.design.widget ...

Posted by qt4u on Mon, 25 Mar 2019 00:21:27 -0700

Material Design (View and Shadow Details)

Android L: Google has confirmed that Android L is Android Lollipop (5.0). Google has already launched Android L Developer Preview (developer preview) in advance to help developers understand Android features more quickly, and recently launched 64-bit simulator mirrors, and Nexus 6 and 9, the first Android L system to be lau ...

Posted by satant on Sun, 24 Mar 2019 10:57:29 -0700

Source Code Analysis of Android Doze Mode

Bionics of science and technology is ubiquitous and gives us inspiration. In order to prolong the battery life, google learned from the snake hibernation that in some cases mobile phones can also enter the hibernation-like situation, thus introducing today's theme, Doze mode, Doze Chinese is napping, napping certainly saves energy than activity ...

Posted by nigma on Sat, 23 Mar 2019 07:42:54 -0700

Request -- Make Node.js http requests super simple

Previously, we paid more attention to the front-end, but less attention to the back-end. However, I have always been interested in Node.js, and I went to CNODE exchange party in Ali last December. I hope to share some notes about learning Node.js through my blog here in the future. On the one hand, I summarized my learning experience, on the ...

Posted by Bootsman123 on Fri, 22 Mar 2019 11:54:52 -0700

Installation and preliminary use of Cocos 2DX

I. Preparations Download and install python Link: https://www.python.org/downloads/ Note: Configure the environment variables, you can. II. Installation of Cocos 2DX 1. Download and decompress Cocos 2DX Download link: http://www.cocos.com/download Unzip it (PS: The directory should not have Chinese). Running setup.py directly at this ...

Posted by Muses on Thu, 21 Mar 2019 21:45:51 -0700

Section 4 Common label sets && label classification

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> /* reset */ body,h1,h2,h3,h4,h5,h6,p,dl,dd,ul,ol,pre,form,input,textarea,th,td,select{margin:0;padding:0;} em{font-style:normal} li{list-style:none} a{text-decoration:none;} img{border:none; ...

Posted by ozPATT on Thu, 21 Mar 2019 18:00:53 -0700

Compatible Code for Unbinding Arbitrary Events with js Arbitrary Elements

hmtl code: <input type="button" value="Button" id="btn"/> <input type="button" value="The event of killing the first button" id="btn2"/> There are three kinds of kidnapping incidents:   Note: In what way events are bound, events should be unbound in the corresponding way 1. Unbundling events (ON s supported by IE, Goog ...

Posted by phpbaby2009 on Thu, 21 Mar 2019 11:00:52 -0700

Some tips in jQuery

In the process of using JQ, there are some tips: 1.is() method The set of matching elements is detected based on the selector, element, or jQuery object. If at least one of these elements matches a given parameter, it returns true. Some small applications are as follows: <ul> <li>list <strong>item 1</strong></li&gt ...

Posted by solon on Wed, 20 Mar 2019 21:12:27 -0700

Android builds MVVM architecture from scratch: ——ViewModel

The ViewModel class is designed to store and manage UI-related data in a perceptible lifecycle manner, and the data in the ViewModel will survive even if the activity configuration changes. What are the advantages of ViewModel? 1. Data persistence Before the destruction and reconstruction of activity, we can use the onSave I ...

Posted by delfa on Tue, 19 Mar 2019 20:33:27 -0700