Skip to content

Tag: arrays

How to speed up moveRows script

I use a script how move rows in other sheet and delete them if condition match. It works but sometimes it’s long. How can i speed up this please ? I try this but it’s not working. I think i can’t combine sh1.getRange(sh1.getLastRow()+1, 1,vals.lenght , vals[0].length).setValues(result) with sh0.deleteRows(i+1) or the problem is for (var i=vals.lenght-1;i>0;i–) ?? Answer I believe your

Recursion under a heap class

I am trying to solve the following problem. “Define a recursive method named inOrderTraverse under the Heap class to perform inorder traversal over the nodes in the heap.” In the above problem, Do I convert the heap array to BST to run In order Traversal or Can I perform In order traversal over a heap array using recursion? if so

Challenge: Sorting Arrays [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 months ago. Improve this question I need a little help, I made a code to read a sequence of numbers, store them in an array and then print the even