All Questions
2 questions
-4
votes
1
answer
70
views
algorithm of insert and merge integer to the nested array
I couldn't find the simple and readable way to solve it.
the operations on single element array like [6] in javascript is horrible...
Question
originArray is a sorted, non-overlapping array.
and ...
3
votes
4
answers
295
views
run for random numbers and keep state [duplicate]
I use the following code to get random value from specifed range
var provideRanges = function(){
var aa = [];
_.times(3, function(i) {
console.log(i);
let num = _.random(10, 20)
...