Commit Graph

139 Commits

Author SHA1 Message Date
Alexander Pantyukhin 99f06e97e7
feat: add Minimum Path Cost LeetCode problem (#1144) 2022-11-24 23:14:53 -06:00
Alexander Pantyukhin 7aba094afb
feat: add trapping rain water (#1132)
* add trapping rain water.

* add short description of algorithm

* substitute min/max with define

* fix directory DIRECTORY.md

* chore: apply suggestions from code review

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-11-24 23:14:01 -06:00
Alexander Pantyukhin a2b1983e57
feat: add Rectangle Area LeetCode problem (#1147) 2022-11-21 15:09:27 -06:00
Alexander Pantyukhin 0bcabd6897
feat: improve the Power of Two LeetCode problem (#1148) 2022-11-18 14:09:44 -06:00
Alexander Pantyukhin ea775e7a04
feat: add Number of Sub-arrays With Odd Sum (#1139)
* add Number of Sub-arrays With Odd Sum

* Update 1524.c

add new line at the end

* Rename README.md to DIRECTORY.md

* chore: apply suggestions from code review

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-11-18 14:09:11 -06:00
Alexander Pantyukhin dee9ac73cd
feat: add Check if Array Is Sorted and Rotated (#1141)
* add Check if Array Is Sorted and Rotated

* Update 1752.c

add new line

* Rename README.md to DIRECTORY.md

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-11-18 14:02:59 -06:00
Alexander Pantyukhin 856168384d
feat: add compliment of 10 integer (#1136)
* add complinent of 10  integer

* Update 1009.c

add new line at the end

* Rename README.md to DIRECTORY.md

change filename

* chore: apply suggestions from code review

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-11-15 18:27:22 -06:00
David Leal 21bd88215c
chore: remove redundant `\` 2022-11-14 15:56:23 -06:00
devarshitrivedi01 55b2045b19
chore: add Max Consecutive Ones in LeetCode folder (#982)
* Create 14.c

* Update README.md

* Update leetcode/src/14.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update DIRECTORY.md

* Update DIRECTORY.md

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-11-14 12:47:23 -06:00
Yashvardhan Singh 68bdbfb0a5
feat: add LeetCode problem 10 (#1033)
* updated readme

* Create 10.c

* Update README.md

* added documentation

* chore: apply suggestions from code review

* Update DIRECTORY.md

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-11-09 19:24:15 -06:00
David Leal 9101ccd27c
docs: add a guide for new LeetCode solutions (#1131)
* docs: add a guide for new LeetCode solutions

* updating DIRECTORY.md

* updating DIRECTORY.md

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-11-09 19:21:17 -06:00
mr-shivamgarg 0d5abe0a77
fix: add solution link to LeetCode problem 62 (#1128) 2022-11-09 13:34:14 -06:00
Aniket Dubey 25f3b63d5b
chore: add LeetCode problem 485 (#981)
* Create 485.c

added "485. Max Consecutive Ones" solution

* Update README.md

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-11-08 15:08:46 -06:00
Sindhu Inti a0f658311d
feat: leetcode Construct Binary Search Tree from Preorder Traversal solution (1008) (#1021)
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-11-04 19:15:30 -06:00
Sindhu Inti 9ab1bc981b
feat: LeetCode Next Greater Node In Linked List solution (1019) (#1022)
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-11-02 00:14:45 -06:00
utsavkhemka21 27145d7ce4
feat: add LeetCode problem 62 (#1062)
Co-authored-by: Utsav Khemka <utsav9125368000@gmail.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-10-28 20:30:13 -05:00
Adhiraj 0cd4f6b691
feat: add Leetcode problem 119 (#997)
* added 119

* added 119.c

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-10-28 18:47:45 -05:00
utsavkhemka21 1a6ed6bf1c
Add Leet Code Solution of 62 No Ques (#1061)
Co-authored-by: Utsav Khemka <utsav9125368000@gmail.com>
2022-10-22 15:35:58 +05:30
Sindhu Inti a8b42d0bb8
feat: leetcode Maximum Twin Sum of a Linked List solution (2130) (#988) 2022-10-09 12:32:15 +05:30
Adhiraj 82ca460a9c
feat: add LeetCode problem 118 (#996)
* added 118 to list

* added 118.c
2022-10-05 12:31:51 -05:00
Liu Yihua bd06a9f424
fix: typo in comments of leetcode-3 (#931)
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-01-11 11:28:27 -06:00
straight-into-the-wall 37534f4d8c
feat: leetcode zigzag solution (#897)
* perf: faster implementation of the TwoSum problem

* doc: fixed typos on comments

* updating DIRECTORY.md

* feat: leetcode ZigZag conversion solution

* doc: leetcode README added ZigZag conversion solution

* fix: clang-tidy linter corrections

* doc: fixed typo on leetcode README

* Update leetcode/src/6.c

@file does not want parameters

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update leetcode/src/6.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* fix: unsigned int and include comments

* fix: comments on includes. Doxygen file. static test function

* fix: add missing headers

* Delete 1.c

* Revert "Merge branch 'master' into leetcode/zigzag"

This reverts commit b46a6afd52.

* fix: revert 1.c

* updating DIRECTORY.md

* Empty commit to test the CI

* Update leetcode/src/6.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update leetcode/src/6.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* fix: missing main

* updating DIRECTORY.md

* doc: added missing comment

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-12-09 11:51:02 -06:00
github-actions 6f98288110 formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
github-actions 6eeeaf3337 formatting source-code for 2829b58c98 2020-05-29 20:25:52 +00:00
github-actions 0779a2b70d formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
batyil 94462f2fe6
Update 38.c 2019-10-31 07:11:22 +03:00
batyil bf124ed91e
Update README.md 2019-10-31 07:07:46 +03:00
batyil 63828a86c2
Adding LeetCode Problem 38 2019-10-31 07:01:08 +03:00
Hai Hoang Dang 683384d959
Merge pull request #490 from andre143/master
Adding leetcode Rotate Array (189.c)
2019-10-30 10:08:34 -07:00
Andre Lammers 7c0e52f794 Remove leetcode Count Primes (204.c) 2019-10-29 12:17:07 +01:00
Evandro Nakayama Mota ba36b992ec Add LeetCode 367 2019-10-28 21:35:05 -03:00
Evandro Nakayama Mota aaa8a3149b Add LeetCode 242 2019-10-28 17:30:18 -03:00
Evandro Nakayama Mota 8f0602c9f1 Add LeetCode 231 2019-10-28 17:06:18 -03:00
Hai Hoang Dang d2f3cfa6bc
Merge branch 'master' into leetcode-algorithm-problem11 2019-10-28 09:25:47 -07:00
Hai Hoang Dang f5000f2f96
Merge branch 'master' into master 2019-10-28 09:13:40 -07:00
Hai Hoang Dang 54827a871f
Merge branch 'master' into leetcode-9 2019-10-28 09:11:40 -07:00
Paul-Fugmann 9c346de3a3
Merge branch 'master' into master 2019-10-28 09:11:21 +01:00
Keval 138da16aaf leetcode 9 2019-10-27 21:57:49 +00:00
Keval af273adef0 readme for leetcode-7 2019-10-27 21:24:08 +00:00
Keval 95d7f25175 leetcode question 7 2019-10-27 21:22:09 +00:00
dedsinQ 2215758b3b - Adding Roman to Integer (13.c)
- Adding Divide Two Integers (29.c)
- Adding Plus One (66.c)
- Adding Bitwise AND of Numbers Range (201.c)
- Readme updated
2019-10-26 16:06:02 +02:00
Paul Fugmann cd679fd461 Add leetcode String to Integer (atoi) (8.c) and Integer to Roman (12.c) 2019-10-26 16:04:24 +02:00
Andre Lammers 2ec2f92284 Adding leetcode Rotate Array (189.c) and Count Primes (204.c) 2019-10-26 16:02:44 +02:00
Jai Agarwal 7b93a8fe37 added solution and modified README.md for problem 11 2019-10-25 21:50:03 +05:30
Shubham Patil 4a7480e303 Solution for Leedcode problem 2 and 21 2019-10-18 12:11:41 +05:30
Hai Hoang Dang 7059985c9c
Merge pull request #419 from shubhamdpatil/master
KMP algorithm implementation for string search
2019-10-17 03:42:00 -07:00
Shubham Patil 54613199a6 KMP algorithm implementation for string search 2019-10-16 10:24:25 +05:30
manu 67268aedc0
fixed typo 2019-10-15 22:22:13 +05:30
Hrishikesh Suresh 98ab38f170
Merge branch 'master' into problem_121 2019-10-12 09:09:51 +05:30
Hrishikesh S 6bcdac56e4 adding Kandane's algorithm as the solution 2019-10-12 09:05:36 +05:30
Hai Hoang Dang 9a1870f5e2
Merge pull request #400 from sauravkdubey/patch-1
README.md
2019-10-11 11:07:45 -07:00
Hai Hoang Dang bfb1992ec4
Merge pull request #401 from sauravkdubey/patch-2
647.c
2019-10-11 11:07:35 -07:00
Ashwek Swamy 6221cbe7da
Merge pull request #301 from 3ZadeSSG/master
Median of two sorted arrays No. 4
2019-10-11 22:39:51 +05:30
Saurav Kumar Dubey e5adce3a52
647.c
Palindromic substring using dynamic programming
2019-10-11 15:22:02 +05:30
Saurav Kumar Dubey eccc3c126f
update 2019-10-11 15:17:20 +05:30
hai dang 031ae5f1d2 Add some solution leetcode 2019-10-10 11:34:58 -07:00
Hrishikesh S 132c3c426d fixed tab size 2019-10-06 13:21:53 +05:30
Hrishikesh S dffe9459dd added solution & modified README.md for problem 121 2019-10-06 13:09:42 +05:30
Hai Hoang Dang f063b030f8
Merge pull request #339 from SaurusXI/master
Added commented solution to Leetcode problem 476
2019-10-05 10:43:42 -07:00
Tanyapohn Pathummasutr b1b24e69c9 Remove whitespace 2019-10-05 23:07:21 +07:00
Tanyapohn Pathummasutr cf6ff1344a Add an alternative way of recursion 2019-10-05 23:05:10 +07:00
SaurusXI d21e4b1d2f Added commented solution to Leetcode problem 476 2019-10-05 14:33:50 +05:30
Hai Hoang Dang c6f12642a1
Merge pull request #337 from CertifiedBlyndGuy/master
leetcode: Address readability of a few cases, and fix 283
2019-10-04 19:03:12 -07:00
Hai Hoang Dang 26ff845615
Merge pull request #336 from SaurusXI/master
Added commented solution to problem 461
2019-10-04 19:01:47 -07:00
RJ Trujillo d9b9bbd4f5 leetcode: Address readability of a few cases, and fix 283
The for loop utilized in 283 was improperly structured as 'start'
was no declared as the value to index.

Also, make the other cases more readable.

Signed-off-by: RJ Trujillo <certifiedblyndguy@gmail.com>
2019-10-04 17:24:30 -06:00
SaurusXI aaa2546afa Added commented solution to problem 461 2019-10-04 23:03:48 +05:30
Hai Hoang Dang 972d4fad7a
Merge pull request #327 from SaurusXI/master
Solution to leetcode Problem 190 and 191
2019-10-04 06:40:00 -07:00
SaurusXI 08f62bf397 Commented code to explain algorithms in 190 and 191 2019-10-04 17:04:24 +05:30
SaurusXI d2ad4b0109 Revert "Added Solution to leetcode Problem 191"
This reverts commit 5a6ed8e245.

To modify code to add comments

0
2019-10-04 16:49:19 +05:30
Hai Hoang Dang f9139347fe
Merge pull request #311 from rodrigoAMF/249-add-maximum-number-of-ballons
249 add maximum number of ballons
2019-10-03 16:20:32 -07:00
Rodrigo Franco b9941d3ee4 Update 1189 solution 2019-10-03 20:14:15 -03:00
SaurusXI 1f88545538 Added solution to Leetcode Problem 461 2019-10-04 01:41:52 +05:30
SaurusXI 5a6ed8e245 Added Solution to leetcode Problem 191 2019-10-04 01:22:52 +05:30
SaurusXI e8da4c7714 Added solution to leetcode problem 190 in C 2019-10-04 01:11:00 +05:30
SaurusXI 3a21e49ecd Added solution to leetcode problem 173 in C - found in leetcode/src/173.c 2019-10-03 23:42:16 +05:30
Rodrigo Franco acba511d69 Update leetcode README 2019-10-02 23:11:54 -03:00
Rodrigo Franco 30e0034cdc Add solution to 1189 leetcode 2019-10-02 23:08:04 -03:00
jonohein 6a384f4043
Update more leetcode solution
Fixed a couple which were out of order and added #1 which was missing.
2019-10-02 11:31:28 -07:00
Manu Gond 2102114161 fix with readme 2019-10-02 14:39:17 +05:30
Manu Gond 5f87bcd5d4 added median of two sorted arrays 2019-10-02 14:37:54 +05:30
hai dang 30bfcef198 Update more leetcode solution 2019-09-26 08:29:31 -07:00
dang hai d0d4a999c1 Add more solution on leetcode 2019-09-18 10:14:10 -07:00
dang hai b75256229a Add some solution for leetcode 2019-09-03 08:52:24 -07:00
dang hai 9a75c4e850 Add more solution for leetcode 2019-08-24 10:08:45 -07:00
harshraj22 93cb21ea99 updated README 2019-08-20 10:53:25 +05:30
harshraj22 d45ffafcf5 added solution to Leetcode problem 771.Jewels and Stones 2019-08-16 23:01:00 +05:30
dang hai de63c24503 Add more algorithm solutions for leetcode 2019-08-13 11:38:41 -07:00
dang hai b2154ae8d1 Update README.md 2019-08-07 17:22:06 -07:00
dang hai 593d76a235 Initial commit for Leetcode algorithm 2019-08-07 17:00:30 -07:00