---
# System prepended metadata

title: Archana Patel

---

ARCHANA PATEL
https://drive.google.com/file/d/1dOr0ot470QuilJZnWOnQOEHDK3jZl31E/view

 - seemed as if not much interested
 - very slow and basic level experience only
 - poor in logic building
 - solved only 1 qn, that also not impressive

1) add digits

```
/**
 * @param {number} num
 * @return {number}
 */

var addDigits = function(num) {
  let arr=  String(num).split("")
  let sum=0;
  for(let i=0;i<arr.length;i++){
     sum+= Number(arr[i]);

  }
  console.log(String(sum).split('').length)
  if(String(sum).split('').length==1){
    //   console.log(sum)
      return sum
  }
  return addDigits(sum) 


};
```

2) plus one
 - didnt solve

```
/**
 * @param {number[]} digits
 * @return {number[]}
 */
var plusOne = function(digits) {
let arr=[];
let length=digits.length
//   digits.map((ele,i)=>{
//      if(i==length-1){
//          if(ele+1==10){
             
//          }
//      }
     
//     arr.push( ele);
     
//  })


for(let i=0;i<digits.length;i++){
    if(i==digits.length-1){
        if( digits[i]+1 ==10){
            for(let digits.length;)
        }
        
    }
}
  return arr 
};
```