summaryrefslogtreecommitdiff
path: root/progs/a455.py
blob: 45278b71f1b8e76774fd8d8e5ae7f3c548124b82 (plain)
1
2
3
4
5
6
7
def is_undulating(n): 
	if (len(n) <= 2): 
		return False
	for i in range(2, len(n)): 
		if (n[i - 2] != n[i]): 
			return False
	return True