
Pattern Lock
In android smartphone, you can use "pattern lock".
Pattern lock use 9 dots(3x3)...
#include <stdio.h>
#include <stdlib.h>
int Max(int* A,int n)
{
if (n==1)
return A[0];
else
#include <iostream>
using namespace std;
#define MAX 10
int n,m;
int A[MAX]; //mang luu loai tien
int result[MAX];
class Solution {
public:
bool isValidBST(TreeNode* root) {
if (root)
{
if (!root->left&&!root->right)
using namespace std;
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
int singleNumber(int* nums, int numsSize) {
int x=nums[0],i;
for (i=1;i<numsSize;i++)
x = x^nums[i];
Leave a comment: