Skip to content

Merna177/Leetcode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

198 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode-solutions

Solutions for leetcode/lintcode problems

Problems

Name Difficulty Link
Remove Duplication from sorted list Easy https://leetcode.com/problems/remove-duplicates-from-sorted-list/
Maximum subarray Easy https://leetcode.com/problems/maximum-subarray/
Valid Palindrome Easy https://leetcode.com/problems/valid-palindrome/
Largest Time for given digits Easy https://leetcode.com/problems/largest-time-for-given-digits/
= Is Subsequence Easy
Design Hashset Easy https://leetcode.com/problems/design-hashset/
Search In a Binary Search Tree Easy https://leetcode.com/problems/search-in-a-binary-search-tree/
Search Insert Position Easy https://leetcode.com/problems/search-insert-position/
Power Of Two Easy https://leetcode.com/problems/power-of-two/
Merge Two sorted Lists Easy https://leetcode.com/problems/merge-two-sorted-lists/
Remove Linked List Elements Easy https://leetcode.com/problems/remove-linked-list-elements/
subtree of another tree Easy https://leetcode.com/problems/subtree-of-another-tree/
Single Number Easy https://leetcode.com/problems/single-number/
Happy Number Easy https://leetcode.com/problems/happy-number/
Move Zeroes Easy https://leetcode.com/problems/move-zeroes/
Middle of the linkedlist Easy https://leetcode.com/problems/middle-of-the-linked-list/
Backspace String Compare Easy https://leetcode.com/problems/backspace-string-compare/
Min stack Easy https://leetcode.com/problems/min-stack/
Diameter of Binary Tree Easy https://leetcode.com/problems/diameter-of-binary-tree/
Last Stone Weight Easy https://leetcode.com/problems/last-stone-weight/
Insert Delete GetRandom in O(1) Medium https://leetcode.com/problems/insert-delete-getrandom-o1/
Binary Tree inorder Traverse Medium https://leetcode.com/problems/binary-tree-inorder-traversal/
Search Suggestions System Medium https://leetcode.com/problems/search-suggestions-system/
Search a 2D Matrix II Medium https://leetcode.com/problems/search-a-2d-matrix-ii/
Spireal Matrix II Medium https://leetcode.com/problems/spiral-matrix-ii/
Design a Stack With Increment Operation Medium https://leetcode.com/problems/design-a-stack-with-increment-operation/
Minimum Number of Steps to Make Two Strings Anagram Medium https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram/
Word Break Medium https://leetcode.com/problems/word-break/
Partition Labels Medium https://leetcode.com/problems/partition-labels/
Sort an Array Medium https://leetcode.com/problems/sort-an-array/
best time to buy & sell stock II Easy https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/
group Anagrams Medium https://leetcode.com/problems/group-anagrams/
Contiguous Array Medium https://leetcode.com/problems/contiguous-array/
Surrounded Regions Medium https://leetcode.com/problems/surrounded-regions/
Word Break II Hard https://leetcode.com/problems/word-break-ii/
Product of Array Except Self Medium https://leetcode.com/problems/product-of-array-except-self/
Sort Colors Medium https://leetcode.com/problems/sort-colors/
Number of islands Medium https://leetcode.com/problems/number-of-islands/
Minimum Path Sum Medium https://leetcode.com/problems/minimum-path-sum/
Search in Rotated Sorted Array Medium https://leetcode.com/problems/search-in-rotated-sorted-array/
Binary Search tree from preorder Traversal Medium https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/
Subarray sum equals k Medium https://leetcode.com/problems/subarray-sum-equals-k/
BitWise And of Numbers Range Medium https://leetcode.com/problems/bitwise-and-of-numbers-range/
LRU Cache Medium https://leetcode.com/problems/lru-cache/
Jump Game Medium https://leetcode.com/problems/jump-game/
Longest Common Subsequence Medium https://leetcode.com/problems/longest-common-subsequence/
Cheapest Flights Within K Stops Medium https://leetcode.com/problems/cheapest-flights-within-k-stops/
Maximal Square Medium https://leetcode.com/problems/maximal-square/
Binary Tree Maximum Path Sum Hard https://leetcode.com/problems/binary-tree-maximum-path-sum/
First Bad Version Easy https://leetcode.com/problems/first-bad-version/
jewels And Stones Easy https://leetcode.com/problems/jewels-and-stones/
Ransom Note Easy https://leetcode.com/problems/ransom-note/
Number Complement Easy https://leetcode.com/problems/number-complement/
First Unique Character in a String Easy https://leetcode.com/problems/first-unique-character-in-a-string/
Majority Element Easy https://leetcode.com/problems/majority-element/
Cousins in binary tree Easy https://leetcode.com/problems/cousins-in-binary-tree/
Check If it a Straight line Easy https://leetcode.com/problems/check-if-it-is-a-straight-line/
Valid Perfect Square Easy https://leetcode.com/problems/valid-perfect-square/
Find the town judge Easy https://leetcode.com/problems/find-the-town-judge/
Flood fill Easy https://leetcode.com/problems/flood-fill/
Single Element in a sorted Array Medium https://leetcode.com/problems/single-element-in-a-sorted-array/
Remove K Digits Medium https://leetcode.com/problems/remove-k-digits/
Implement Trie Medium https://leetcode.com/problems/implement-trie-prefix-tree/
Maximum Sum Circular Subarray Medium https://leetcode.com/problems/maximum-sum-circular-subarray/
Odd Even LinkedList Medium https://leetcode.com/problems/odd-even-linked-list/
Find All Anagrams in a string Medium https://leetcode.com/problems/find-all-anagrams-in-a-string/
Permutation in string Medium https://leetcode.com/problems/permutation-in-string/
Online Stock Span Medium https://leetcode.com/problems/online-stock-span/
Kth Smallest Element In a BST Medium https://leetcode.com/problems/kth-smallest-element-in-a-bst/
Count Square SubMatrices with all ones Medium https://leetcode.com/problems/count-square-submatrices-with-all-ones/
Sort Characters By Frequency Medium https://leetcode.com/problems/sort-characters-by-frequency/
Interval List Intersection Medium https://leetcode.com/problems/interval-list-intersections/
Uncrossed Lines Medium https://leetcode.com/problems/uncrossed-lines/
Possible Bipartition Medium https://leetcode.com/problems/possible-bipartition/
Counting Bits Medium https://leetcode.com/problems/counting-bits/
Course Schedule Medium https://leetcode.com/problems/course-schedule/
K Closest Points to origin Medium https://leetcode.com/problems/k-closest-points-to-origin/
Edit Distance Hard https://leetcode.com/problems/edit-distance/
Invert Binary Tree Easy https://leetcode.com/problems/invert-binary-tree/
Delete Node in a Linked List Easy https://leetcode.com/problems/delete-node-in-a-linked-list/
Two City Scheduling Easy https://leetcode.com/problems/two-city-scheduling/
Reverse String Easy https://leetcode.com/problems/reverse-string/
Random Pick With Weight Medium https://leetcode.com/problems/random-pick-with-weight/
Queue Reconstruction by Height Medium https://leetcode.com/problems/queue-reconstruction-by-height/

Sql

Name Difficulty Link
Update Salary Easy https://leetcode.com/problems/swap-salary/
Reformat Department table Easy https://leetcode.com/problems/reformat-department-table/
Not boring movies Easy https://leetcode.com/problems/not-boring-movies/
Duplicate Emails Easy https://leetcode.com/problems/duplicate-emails/
Combine Two Tables Easy https://leetcode.com/problems/combine-two-tables/
Employees Earning More Than Their Managers Easy https://leetcode.com/problems/employees-earning-more-than-their-managers/
Customers Who Never Order Easy https://leetcode.com/problems/customers-who-never-order/
Delete Duplicate Emails Easy https://leetcode.com/problems/delete-duplicate-emails/
Rising Temperature Easy https://leetcode.com/problems/rising-temperature/
Classes more than 5 students Easy https://leetcode.com/problems/classes-more-than-5-students/
Second Highest Salary Easy https://leetcode.com/problems/second-highest-salary/
Exchange Seats Medium https://leetcode.com/problems/exchange-seats/

About

Solutions for leetcode/lintcode problems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages