Different approach than mod, Simple Python Solution for beginners
Intuition\nAt first glance, looking at the problem said to sum the digits of each number on the given list. hence i proceded with a different way than mod, prob
# Intuition\nAt first glance, looking at the problem said to sum the digits of each number on the given list. hence i proceded with a different way than mod, probably comparitively lesser lines of code but definitely a little lost on time complexity.\n\n# Approach\nConverting each number on the list to string, then taking the sum of the int conversion of each charachter of that string.\n\n# Complexity\n- Time complexity:\nO(N\u2217M)\n\n- Space complexity:\nO(1)\n\n# Code\n```python3 []\nclass Solution:\n    def minElement(self, nums: List[int]) -> int:\n        for i in range(0,len(nums)):\n            s=str(nums[i])\n            sum1=0\n            for j in s:\n                sum1+=int(j)\n            nums[i]=sum1\n        return min(nums)\n```
['Python', 'Python3']