Community Profile

photo

Tim David


Last seen: ongeveer een jaar ago Active since 2021

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Content Feed

View by

Question


Changing array elements relative to it's size and position in the array
If I have an array such as: R = [0, 0, 4, 0, 1, 0, 0, 0, 0, 6]; I want to code it so that all elements are checked and if the ...

ongeveer een jaar ago | 1 answer | 0

1

answer

Question


What is a more efficient method of increasing non-zero entries by one
I'm trying to write an array of length 10 where some entries are zero and some are non-zero. I want to increase all the non-zero...

ongeveer een jaar ago | 1 answer | 0

1

answer

Question


How to shift entries in a vector by the value of the number in that entry?
For example, if i have a vector T = [0, 0, 4, 0, 7, 0, 0, 5, 0, 9] How would i go about moving every entry to the right by t...

meer dan een jaar ago | 2 answers | 0

2

answers