Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ysayaovong/add-two-integers
Collection of LeetCode questions to ace the coding interview!
https://github.com/ysayaovong/add-two-integers
Last synced: about 1 month ago
JSON representation
Collection of LeetCode questions to ace the coding interview!
- Host: GitHub
- URL: https://github.com/ysayaovong/add-two-integers
- Owner: YSayaovong
- Created: 2024-09-06T03:14:01.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-11T16:13:41.000Z (4 months ago)
- Last Synced: 2024-09-12T01:19:15.305Z (4 months ago)
- Language: HTML
- Homepage: https://github.com/YSayaovong/Add-Two-Integers
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Add Two Integers
This repository contains a solution to the LeetCode problem ["Add Two Integers"](https://leetcode.com/problems/add-two-integers/description/).
## Problem Description
You are given two integers, `num1` and `num2`. The task is to return the sum of `num1` and `num2`.
## Constraints:
-100 <= num1, num2 <= 100
## Approach:
This is a straightforward problem that requires adding two integers and returning their sum. We will write a simple function that takes two integer inputs, performs the addition, and returns the result.
### Example 1:
Input: num1 = 12, num2 = 5
Output: 17### Example 2:
Input: num1 = -10, num2 = 4
Output: -6