RailsGirl 国内有吗?没见过
If you want to learn more, you can visit here https://github.com/ruby/ruby/blob/master/array.c.
[ 1, 1, 3, 5 ] & [ 3, 2, 1 ] #=> [ 1, 3 ]
[ 'a', 'b', 'b', 'z' ] & [ 'a', 'b', 'c' ] #=> [ 'a', 'b' ]
Set Intersection — Returns a new array containing unique elements common to the two arrays. The order is preserved from the original array.
It compares elements using their hash and eql? methods for efficiency.
算法导论是作为提升算法的一本必读书,很经典,不懂算法的程序员不是好程序员
cool
已报名