Best technique to learn data structures and algorithms

what is the best way to implement the data structures and algorithms into programming?