This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct ListNode{ | |
int data; | |
struct ListNode* next; | |
}ListNode; | |
ListNode* findKthToTail(ListNode* pHead,int k){ | |
ListNode* pFast=pHead,pSlow=pHead; | |
if(pHead == null || k<=0 || k> ListLength(pHead)) | |
return null; | |
if(pHead->next == null) | |
return pHead; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author: Lemon-XQ | |
* @date: 2017/12/10 | |
*/ | |
public class WheelView extends ScrollView { | |
public static final String TAG = WheelView.class.getSimpleName(); | |
public static class OnWheelViewListener { | |
public void onSelected(int selectedIndex, String item) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
main() | |
{ | |
int n; | |
int count=0; | |
cin>>n; | |
while(n!=1){ | |
if(n%2==0) |