Skip to content

This repository contains my solutions to various LeetCode problems.

Notifications You must be signed in to change notification settings

KavinduPiyumantha/Leetcode-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode-Solutions

This repository contains my solutions to various LeetCode problems.

Table of Contents

Getting Started

LeetCode is a platform for practicing and improving your coding skills by solving algorithmic problems. This repository contains my solutions to various LeetCode problems, along with explanations and code snippets to help you understand my approach.

Dependencies

The solutions in this repository are written in Python and require no additional dependencies.

Running the Code

To run the code in this repository, simply clone the repository to your local machine and run the individual Python files for each problem.

Solution Examples

Here are a few examples of my solutions to LeetCode problems:

Two Sum

class Solution:
    def twoSum(self, nums: List[int], target: int) -> List[int]:
    
        for i in range(len(nums)):
            for j in range((i+1),len(nums)):
                if((nums[i]+ nums[j]) == target):   
                    return [i,j]
        return []

External Resources

I used a variety of external resources to help me solve problems on LeetCode, including:

LeetCode Profile

To see more of my solutions and progress on LeetCode, check out my LeetCode profile.

Conclusion

LeetCode has been a great platform for practicing and improving my coding skills, and I hope that my solutions can be helpful to others in the community. If you have any questions or feedback, feel free to reach out or leave a comment on a specific problem solution.

About

This repository contains my solutions to various LeetCode problems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages