- 博客(5)
- 收藏
- 关注
原创 Android播放声音
首先在res文件夹下创建raw文件夹(其他也应该可以吧)private MediaPlayer mPlayer1; mPlayer1 = MediaPlayer.create(MainActivity.this, R.raw.one); //下面这一句放到需要播放的地方就行了 mPlayer2.start();
2015-10-23 00:08:22 569
原创 leetcode 2 Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link
2015-10-20 23:57:42 276
原创 leetcode 1 Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, whe
2015-10-09 22:26:13 255
原创 leetcode 258 Add Digits
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has on
2015-10-09 14:18:07 256
原创 leetcode 290 Word Pattern
Given a pattern and a string str, find if str follows the same pattern. Examples: pattern = "abba", str = "dog cat cat dog" should return true.pattern = "abba", str = "dog cat cat fish"
2015-10-09 12:53:16 218
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人