原创 【leetcode】【203】Remove Linked List Elements

一、問題描述 Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> 2 --> 6 --> 3 -->

原创 【Android控件】Android RecyclerView 使用完全解析 體驗藝術般的控件

轉載請標明出處:  http://blog.csdn.net/lmj623565791/article/details/45059587;  本文出自:【張鴻洋的博客】 概述 RecyclerView出現已經有一段時間了,

原创 Java併發編程:線程池的使用

在前面的文章中,我們使用線程的時候就去創建一個線程,這樣實現起來非常簡便,但是就會有一個問題:   如果併發的線程數量很多,並且每個線程都是執行一個時間很短的任務就結束了,這樣頻繁創建線程就會大大降低系統的效率,因爲頻繁創建線程和銷燬線

原创 【leetcode】【226】Invert Binary Tree

一、問題描述 Invert a binary tree. 4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / \ 7 2 / \ / \

原创 【leetcode】【202】Happy Number

一、問題描述 Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following p

原创 【leetcode】【225】Implement Stack using Queues

一、問題描述 Implement the following operations of a stack using queues. push(x) -- Push element x onto stack.pop() -- Remo

原创 【leetcode】【206】Reverse Linked List

一、問題描述 Reverse a singly linked list. click to show more hints. Hint: A linked list can be reversed either iterative

原创 【leetcode】【205】Isomorphic Strings

一、問題描述 Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in 

原创 【leetcode】【219】Contains Duplicate II

一、問題描述 Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the ar

原创 【leetcode】【204】Count Primes

一、問題描述 Description: Count the number of prime numbers less than a non-negative number, n. Credits: Special thanks t

原创 【leetcode】【223】Rectangle Area

一、問題描述 Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bot

原创 【leetcode】【217】Contains Duplicate

一、問題描述 Given an array of integers, find if the array contains any duplicates. Your function should return true if any v

原创 Android ORMLite 框架的入門用法

轉載請標明出處:http://blog.csdn.net/lmj623565791/article/details/39121377 大家在Android項目中或多或少的都會使用數據庫,爲了提高我們的開發效率,當然少不了數據庫OR

原创 【leetcode】【228】Summary Ranges

一、問題描述 Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,

原创 【leetcode】【216】Combination Sum III

一、問題描述 Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 ca