Skip to content

Instantly share code, notes, and snippets.

Aliaksandr Astashenkau dfsq

Block or report user

Report or block dfsq

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dfsq
dfsq / merge-sorted-arrays
Last active Aug 29, 2015
Merge two sorted arrays
View merge-sorted-arrays
function mergeArrays(arr1, arr2) {
var out = [],
i = 0,
j = 0,
length = arr1.length;
while (arr2[j] < arr1[0]) {
out.push(arr2[j++]);
}
You can’t perform that action at this time.