Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by william2341

  1. W

    JavaScript sum similar keys from string array

    Hi I have this form of string array ["v:2", "a:3", "v:5", "s:4"] I need to sum similar keys also sort keys and output in this form a:3, s:4, v:7 how I can do that ?
  2. W

    Python Storing new value to array

    Hi I am new to Python and I saw this two sum algorithm solution class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: prevMap = {} for i, n in enumerate(nums): diff = target - n if diff in prevMap...
Back
Top Bottom