Commit Graph

1464 Commits

Author SHA1 Message Date
Alexander Pantyukhin
02c01047a7
feat: add Longest Chunked Palindrome Decomposition (#1184)
* add leetcode Longest Chunked Palindrome Decomposition

* Update leetcode/src/1147.c

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

* Update 1147.c

fix review

Co-authored-by: David Leal <halfpacho@gmail.com>
2023-01-18 14:34:19 -06:00
Alexander Pantyukhin
108fbede16
feat: add Longest Square Streak in an Array (#1185)
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-01-18 14:06:45 -06:00
Alexander Pantyukhin
1b6fe6ea17
feat: add Minimum Falling Path Sum (#1182)
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-01-18 13:54:30 -06:00
Alexander Pantyukhin
36d1b265a7
feat: add Redundant Connection (#1181)
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-01-18 13:15:47 -06:00
Alexander Pantyukhin
78d083fd84
feat: add Maximum Difference Between Node and Ancestor (#1180)
* add leetcode Maximum Difference Between Node and Ancestor

* chore: fix Markdown ordering

Co-authored-by: David Leal <halfpacho@gmail.com>
2023-01-18 13:15:20 -06:00
Alexander Pantyukhin
8cbb76a02b
feat: add Number of Laser Beams in a Bank (#1174)
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-01-18 13:13:06 -06:00
ms3939
3014b7352d
feat: improve the Singly Link List implementation (#1092)
* Update singly_link_list_deletion.c

Delete function is updated to delete at any required position (not only first)

* Update singly_link_list_deletion.c

The code is changed as per the suggestions. Please lat me know if there are any changes to be done
Thank you

* Update singly_link_list_deletion.c

The code is changed as per the suggestions. Please let me know if there are any changes to be done
Thank you..

* Update singly_link_list_deletion.c

I added inserting at any input location . Please let me know if changes need to be done

* Update singly_link_list_deletion.c

* Update singly_link_list_deletion.c

I updated self tests for both insert and delete functions properly. Please let me know if any changes need to be done
Thank you

* Update singly_link_list_deletion.c

As per your suggestions I updated the code. Please let me know if any changes need to be done..

* chore: apply suggestions from code review

Co-authored-by: David Leal <halfpacho@gmail.com>
2023-01-05 17:28:08 -06:00
Alexander Pantyukhin
1a5b5f522f
feat: add LeetCode folder labeler (#1191)
* add labeler for Leetcode changes folder

* Update labeler.yml

add end line

Co-authored-by: David Leal <halfpacho@gmail.com>
2023-01-05 17:24:30 -06:00
Saad H
60310deb9e
feat: add process_scheduling_algorithms to CMake (#1193)
* Update CMakeLists.txt

* Create CMakeLists.txt

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-28 14:35:41 -06:00
Alexander Pantyukhin
b8a8807585
feat: add Minimum Average Difference (#1171)
* add leetcode Minimum Average Difference

* updating DIRECTORY.md

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2022-12-27 11:45:39 -06:00
Alexander Pantyukhin
bed955ed40
feat: add Max Increase to Keep City Skyline (#1173)
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-27 01:21:10 -06:00
itskurtz
a4e7b7bc4b
feat: add LCS algorithm (#1164)
* feat: add lcs dynamic programming algorithm

* updating DIRECTORY.md

* updating DIRECTORY.md

* fix: fix unused parameters in lcs algorithm

* fix: lcs algorithm typo removed unused parameter in test

* Update dynamic_programming/lcs.c

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

* Update dynamic_programming/lcs.c

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

* Update dynamic_programming/lcs.c

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

* fix: comments accoring to guidelines in lcs algorithm

* fix: doxygen standards

* chore: apply suggestions from code review

* updating DIRECTORY.md

Co-authored-by: Scott Evans <scotty@kurtz.waterfall>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2022-12-23 19:46:51 -06:00
Defective Detective
56b72da9fb
chore: move various misc folder... (#1177)
...algorithms to the `math` folder.

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-22 11:26:50 -06:00
Alexander Pantyukhin
0618d4d007
feat: add H-Index LeetCode problem (#1188)
* add leetcode H-Index

* Update leetcode/src/274.c

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

* Update 274.c

fix review notes.

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
2022-12-21 22:42:07 -06:00
Taj
cafd06725c
feat: Use the new filename_formatter workflow (#1190)
* updating DIRECTORY.md

* using script action for filename formatting

Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2022-12-21 22:39:23 -06:00
David Leal
ad24ee1273
chore: use latest CMake subfolder name 2022-12-21 09:04:33 -06:00
David Leal
3be7198f03
docs: add guide on integrating CMake (#1163)
* updating DIRECTORY.md

* docs: add guide on integrating CMake

* chore: apply suggestions from code review

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
2022-12-21 08:54:33 -06:00
Alexander Pantyukhin
7aae73495f
feat: add Lowest Common Ancestor of a Binary Tree (#1155)
* add leetcode Lowest Common Ancestor of a Binary Tree

* Update leetcode/src/236.c

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

* fix function nam

* update struct name.

* add comments

* Update leetcode/src/236.c

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-21 08:46:34 -06:00
Alexander Pantyukhin
9f1591fbd2
feat: add Sudoku Solver LeetCode (#1162)
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-21 08:44:43 -06:00
Alexander Pantyukhin
0169283f55
feat: add Number of Ways to Select Buildings (#1140)
* add Number of Ways to Select Buildings

* Update 2222.c

add new line at the end

* Rename README.md to DIRECTORY.md

* Update leetcode/src/2222.c

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

* fix review notes

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
2022-12-18 21:34:24 -06:00
David Leal
af0ffcbd42
feat: improve the Awesome Workflow (#1186)
* feat: improve the Awesome Workflow

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

* updating DIRECTORY.md

* chore: remove/add a few spaces

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2022-12-17 19:27:04 -06:00
Alexander Pantyukhin
50349e065e
feat: add Word Search LeetCode problem (#1160)
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-16 20:28:51 -06:00
Alexander Pantyukhin
496e012c70
feat: add Kth Smallest Element in a BST (#1157)
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-16 20:24:33 -06:00
Alexander Pantyukhin
bf94aff668
feat: add Determine if String Halves Are Alike LeetCode (#1168)
* add leetcode Determine if String Halves Are Alike

* fix variable  name

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-16 15:43:25 -06:00
Alexander Pantyukhin
1d07d142d0
feat: add Number of Ways to Split Array LeetCode (#1165)
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-16 15:42:57 -06:00
Alexander Pantyukhin
8992d267ac
feat: add Longest Valid Parentheses LeetCode problem (#1166)
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-16 15:37:54 -06:00
David Leal
1d4ccc39a9
chore: remove LGTM and fix...
...CodeQL badge.
2022-12-16 15:22:46 -06:00
David Leal
c45b6faa24
docs: remove unneeded Markdown header 2022-12-16 15:21:52 -06:00
David Leal
b85a6220a9
chore: use actions/checkout@v3 2022-12-16 14:40:29 -06:00
Taj
c97a33a6c2
fix: Awesome Workflow issues (#1176)
* Delete codeql_analysis.yml

* fixing workflows
2022-12-16 13:53:06 -06:00
Alexander Pantyukhin
2ee92040f3
feat: add Maximum Erasure Value LeetCode problem (#1137)
* add leetcode Maximum Erasure Value

* Update 1695.c

add new line at the end

* Rename README.md to DIRECTORY.md

* chore: apply suggestions from code review

* Update DIRECTORY.md

* Update leetcode/DIRECTORY.md

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
2022-12-01 23:18:59 -06:00
Alexander Pantyukhin
b37bf7f6b9
feat: add Trim a Binary Search Tree LeetCode problem (#1156) 2022-12-01 23:11:58 -06:00
Alexander Pantyukhin
794ec129ae
feat: add Minimum Number of Operations to... (#1146)
...Move All Balls to Each Box LeetCode problem.

* add Minimum Number of Operations to Move All Balls to Each Box leetcode

* chore: apply suggestions from code review

* Update leetcode/src/1769.c

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
2022-12-01 23:03:24 -06:00
Focus
0f5f241a1d
feat: add Celsius to Fahrenheit conversion (#1129)
* feat: added celcius_to_fahrenheit.c

* docs: added comment to 1st test

* updating DIRECTORY.md

* fix: changed spelling of 'celcius' to 'celsius'

* updating DIRECTORY.md

* Update conversions/celsius_to_fahrenheit.c

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

* Update conversions/celsius_to_fahrenheit.c

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

* chore: apply suggestions from code review

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-01 23:01:16 -06:00
Alexander Pantyukhin
bb11a35227
feat: add Maximize the Confusion LeetCode problem (#1150)
* add Maximize the Confusion of an Exam leetcode

* Update leetcode/src/2024.c

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

* Update 2024.c

fix build

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
2022-12-01 22:55:36 -06:00
Focus
6b2697e244
feat: conversion from roman to decimal numbers (#1104)
* feat: added roman_numerals_to_decimal.c

* added newline at end of file

* updating DIRECTORY.md

* Update conversions/roman_numerals_to_decimal.c

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

* Update conversions/roman_numerals_to_decimal.c

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

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-01 14:59:15 -06:00
Alexander Pantyukhin
435b4994ce
feat: add Validate Binary Search Tree (#1153)
* add Validate Binary Search Tree

* improve condition
2022-11-25 18:54:41 -06:00
Alexander Pantyukhin
defd82dda1
feat: add Minimum Deletions LeetCode problem (#1138)
* add Minimum Deletions to Make String Balanced

* Update 1653.c

add new line at the end

* Rename README.md to DIRECTORY.md

* chore: apply suggestions from code review

* Update leetcode/src/1653.c

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

* Update leetcode/src/1653.c

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

* Update leetcode/src/1653.c

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

* Update 1653.c

remove redundant define

* Update leetcode/src/1653.c

Co-authored-by: John Law <johnlaw.po@gmail.com>

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
Co-authored-by: John Law <johnlaw.po@gmail.com>
2022-11-25 17:38:33 -06:00
Alexander Pantyukhin
8d28f1d36f
feat: add Online Stock Span (#1142)
* add Online Stock Span

* free obj

* Update leetcode/src/901.c

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

* Rename README.md to DIRECTORY.md

* merge conflicts

* chore: apply suggestions from code review

* chore: apply suggestions from code review

* Update leetcode/src/901.c

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
2022-11-25 12:57:19 -06:00
Alexander Pantyukhin
077517d6ae
feat: add Sum of Even Numbers LeetCode problem (#1145)
* add Sum of Even Numbers After Queries leetcode task

* chore: apply suggestions from code review

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-11-25 12:35:54 -06:00
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
David Leal
2f8fc8ca99
fix: use FreeGlut newest GitHub link (#1159)
* updating DIRECTORY.md

* fix: update FreeGlut link

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-11-24 19:43:44 -06:00
Yaduttam Pareek
9a3d934705
chore(fix): specify the player's turn in naval_battle.c (#1158) 2022-11-24 19:09:35 -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
David Leal
ace1c69509
fix: LeetCode guide link 2022-11-17 12:27:30 -06:00
Aryan Raj
136dee84e7
feat: add non_preemptive_priority_scheduling in Process Scheduling Algorithm (#968)
* Added NonPreemptivePriorityScheduling

* updating DIRECTORY.md

* Added documentation and tests

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

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

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

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

* Left out documentation and suggested changes

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

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

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

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

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

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

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

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

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

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

* test case added with assert.h

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

* typedef | Snake Case naming

* chore: apply suggestions from code review

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
2022-11-17 12:19:16 -06:00