A
lettcode.png
public:
bool judgeCircle(string move) {
int x = 0;
int y = 0;
for (int i=0;i<move.length();i++)
{
if(move[i]=='U')
{
y++;
}
else if (move[i] == 'D')
{
y--;
}
else if(move[i]=='R')
{
x++;
}
else if(move[i]=='L')
{
x--;
}
}
if(x==0&&y==0)
{
return true;
}
else
{
return false;
}
}
};
R
如何在變革階段的模型下改變你的習慣
變革階段的模型是一個心理的模型,將人形成習慣的過程分為6個階段
前期考察,下定決心,做好準備,開始實踐,繼續(xù)堅持,形成習慣
這個模型的缺陷很明顯,在于你該如何樹立一個合理的目標,同時在進行過程中怎么判斷自己的進程。
T
[數(shù)據(jù)結構有關排序](https://blog.csdn.net/EllieYaYa/article/details/83894429)
