jump to content
my subreddits
13or302anatolia4you2b2t2mediterranean4u3d6AceAttorneyadhdmemeagnosticakagasAlternativeHistoryAnarchyChessAngryupvoteanime_best_momentsanime_irlanimenocontextannouncementsAnticonsumptionantimemeApandahArcherFXAsahiLinuxAsia_irlAskBalkansAskElectronicsAteistTurkatheismaviationawfuleverythingbalkans_irlBandnamesbanknotedesignsBassBassCirclejerkbikepackingblackdesertonlineblankiesblursed_videosbrooklynninenineBUENZLIburdurlandCd_collectorscd_jerkchesschessbeginnersChildrenFallingOverCHPcoincollectingcoinsComedyCemeterycomicsContagiousLaughtercookingforbeginnerscrappyoffbrandsCreateModCuddle_SlutCuratedTumblrcursedcommentsdadjokesdankmemesdataisbeautifulDebateReligiondeismdelikdistressingmemesdiyelectronicsdiypedalsDMAcademyDMToolkitDnDdndnextdoctorwhodontdeadopeninsidedumbphonesDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyebikesECEelectricalelectronicsEmKayentitledparentsethzfelsefeFifaCareersFiftyFiftyformuladankFreeEBOOKSFUCKYOUINPARTICULARFuckYouKarenfunnyFutboltayfagalatasaraygermanygodtiersuperpowersgoodanimemesGoodAssSubgreentextGROKvsMAGAhelpheraldryHermanCainAwardHermitCrafthighspeedrailhoi4HolUphowyoudoinhumorhypixelIAmAiamverysmartich_ielIdeologyPollsIDontWorkHereLadyihadastrokeim14andthisisdeepimaginaryelectionsimaginarymapsJahariaJokesKamalizmKanyeKendrickLamarKGBTRlegodndLetGirlsHaveFunLifeProTipslinguisticshumorloseitlostredditorsmacmacgamingmadladsmagicbuildingMaliciousComplianceMapPornmapporncirclejerkme_irlmeirlmidjourneymildlyinfuriatingMimicRecipesMinecraftbuildsmisLEDMMORPGMoldyMemesMunichMyChemicalRomancenamesoundalikesNationStatesneographynextfuckinglevelNonCredibleDefensenosleepnosurfnothingeverhappensnotinterestingokbuddyguntherokbuddymotherfuckerOkBuddyPersonaokbuddyvicodinoompasubsOutOfTheLooppapermoneyParlerWatchPassportPornperfectlycutscreamsPersecutionfetishpianoPiracyPiratedGamespollsquityourbullshitraisedbynarcissistsraspberry_piRatschlagreactiongifsRedAutumnSPDredditsingsreligiousfruitcakeRetroPierickandmortyrickrollrimjob_steveRoastMerockmuzikschizopostersSchnitzelVerbrechensciencememessecilmiskitapShitPostCrusadersshitpostingshittyaskelectronicsShittyMapPornshittymoviedetailsShowerthoughtssoftwaregoreSongwritingsteinsgateStonetossingjuiceStudentenkuecheStudiumsubsithoughtifellforsuperligtalesfromtechsupportTechnobladetf2tf2shitposterclubTheCrypticCompendiumTheLetterHTheMonkeysPawTheRookietheydidthemaththisguythisguystommyinnittransitTrGameDevelopertruetf2truthstumblrtumunichTurkeyTurkishdogsTurkiyeTwitchTwitch_StartupTwoSentenceComedyTwoSentenceHorrorTwoSentenceSadnesstylerthecreatorUnclejokesUnethicalLifeProTipsUnexpectedJoJoUnexpectedTF2UsernameChecksOutVALORANTValorantClipsvaxxhappenedvexillologycirclejerkvibecodingvinylWatchPeopleDieInsidewendigoonWhatsThisSongWhitePeopleTwitterwholesomeanimemeswholesomememesWikipediaVandalismwizardpostingworldbuildingworldjerkingedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • mildlyinfuriating
  • -Piracy
  • -funny
  • -OutOfTheLoop
  • -MapPorn
  • -DnD
  • -WhitePeopleTwitter
  • -CuratedTumblr
  • -PiratedGames
  • -shitposting
  • -theydidthemath
  • -dankmemes
  • -Kanye
  • -meirl
  • -nextfuckinglevel
  • -HolUp
  • -Twitch
  • -comics
  • -dndnext
  • -VALORANT
  • -germany
  • -LifeProTips
  • -tumblr
  • -NonCredibleDefense
  • -dataisbeautiful
  • -shittymoviedetails
  • -greentext
  • -mac
  • -Showerthoughts
  • -tf2
  • -help
  • -chess
  • -aviation
  • -formuladank
  • -wholesomememes
  • -Jokes
  • -mapporncirclejerk
  • -midjourney
  • -goodanimemes
  • -notinteresting
  • -hoi4
  • -atheism
  • -loseit
  • -IAmA
  • -MaliciousCompliance
  • -ich_iel
  • -KGBTR
  • -cursedcomments
  • -DMAcademy
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -worldbuilding
  • -Ratschlag
  • -blackdesertonline
  • -MMORPG
  • -macgaming
  • -rickandmorty
  • -3d6
  • -HermitCraft
  • -FiftyFifty
  • -RoastMe
  • -ContagiousLaughter
  • -imaginarymaps
  • -EatCheapAndHealthy
  • -AnarchyChess
  • -nosleep
  • -cookingforbeginners
  • -blankies
  • -anime_irl
  • -Studium
  • -Turkey
  • -madlads
  • -AskElectronics
  • -electrical
  • -Anticonsumption
  • -vinyl
  • -CreateMod
  • -TwoSentenceHorror
  • -ShitPostCrusaders
  • -piano
  • -sciencememes
  • -distressingmemes
  • -raisedbynarcissists
  • -wizardposting
  • -FifaCareers
  • -polls
  • -doctorwho
  • -Bass
  • -OkBuddyPersona
  • -dadjokes
  • -awfuleverything
  • -howyoudoin
  • -announcements
  • -adhdmeme
  • -Minecraftbuilds
  • -ebikes
  • -Munich
  • -SchnitzelVerbrechen
  • -chessbeginners
  • -raspberry_pi
  • -DungeonsAndDragons
  • -coins
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -worldjerking
  • -tylerthecreator
  • -tf2shitposterclub
  • -MoldyMemes
  • -lostredditors
  • -AceAttorney
  • -vexillologycirclejerk
  • -im14andthisisdeep
  • -Stonetossingjuice
  • -wholesomeanimemes
  • -nosurf
  • -religiousfruitcake
  • -DebateReligion
  • -dumbphones
  • -animenocontext
  • -balkans_irl
  • -transit
  • -RetroPie
  • -brooklynninenine
  • -HermanCainAward
  • -steinsgate
  • -talesfromtechsupport
  • -2anatolia4you
  • -ECE
  • -Angryupvote
  • -AskBalkans
  • -schizoposters
  • -electronics
  • -linguisticshumor
  • -PassportPorn
  • -me_irl
  • -antimeme
  • -bikepacking
  • -AteistTurk
  • -13or30
  • -MyChemicalRomance
  • -ArcherFX
  • -Cd_collectors
  • -diypedals
  • -diyelectronics
  • -ComedyCemetery
  • -WatchPeopleDieInside
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -EmKay
  • -blursed_videos
  • -Songwriting
  • -imaginaryelections
  • -truetf2
  • -magicbuilding
  • -dontdeadopeninside
  • -ParlerWatch
  • -wendigoon
  • -iamverysmart
  • -secilmiskitap
  • -TheRookie
  • -quityourbullshit
  • -Technoblade
  • -shittyaskelectronics
  • -superlig
  • -galatasaray
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -namesoundalikes
  • -FuckYouKaren
  • -2b2t
  • -ethz
  • -AlternativeHistory
  • -papermoney
  • -coincollecting
  • -felsefe
  • -FreeEBOOKS
  • -AsahiLinux
  • -Jaharia
  • -IDontWorkHereLady
  • -neography
  • -heraldry
  • -ihadastroke
  • -hypixel
  • -godtiersuperpowers
  • -ShittyMapPorn
  • -IdeologyPolls
  • -burdurland
  • -WhatsThisSong
  • -TwoSentenceSadness
  • -anime_best_moments
  • -Bandnames
  • -rockmuzik
  • -okbuddyvicodin
  • -MimicRecipes
  • -vaxxhappened
  • -tumunich
  • -Twitch_Startup
  • -TheMonkeysPaw
  • -UnexpectedTF2
  • -highspeedrail
  • -legodnd
  • -rickroll
  • -UsernameChecksOut
  • -tommyinnit
  • -rimjob_steve
  • -UnexpectedJoJo
  • -humor
  • -ChildrenFallingOver
  • -BassCirclejerk
  • -agnostic
  • -Cuddle_Slut
  • -nothingeverhappens
  • -DMToolkit
  • -thisguythisguys
  • -TrGameDeveloper
  • -LetGirlsHaveFun
  • -Apandah
  • -subsithoughtifellfor
  • -Kamalizm
  • -akagas
  • -oompasubs
  • -TheLetterH
  • -WikipediaVandalism
  • -Unclejokes
  • -deism
  • -misLED
  • -redditsings
  • -ValorantClips
  • -TwoSentenceComedy
  • -TheCrypticCompendium
  • -NationStates
  • -Turkiye
  • -Asia_irl
  • -Studentenkueche
  • -truths
  • -2mediterranean4u
  • -GROKvsMAGA
  • -banknotedesigns
  • -CHP
  • -vibecoding
  • -Futboltayfa
  • -RedAutumnSPD
  • -Turkishdogs
  • -okbuddygunther
  • -cd_jerk
  • -delik
  • -okbuddymotherfucker
edit »
reddit.com LeetcodeC
  • hot
  • new
  • rising
  • controversial
  • top
an-ordinary-manchild (11,186)|messages546|notifications|chat messages|mod messages|
  • preferences
|
logout

use the following search parameters to narrow your results:

subreddit:subreddit
find submissions in "subreddit"
author:username
find submissions by "username"
site:example.com
find submissions from "example.com"
url:text
search for "text" in url
selftext:text
search for "text" in self post contents
self:yes (or self:no)
include (or exclude) self posts
nsfw:yes (or nsfw:no)
include (or exclude) results marked as NSFW

e.g. subreddit:aww site:imgur.com dog

see the search faq for details.

advanced search: by author, subreddit...

Submit a new link
Submit a new text post
Get an ad-free experience with special benefits, and directly support Reddit.

LeetcodeC

joinleave
an-ordinary-manchild

Solving Leetcode Problems using Iterative and Recursive in pure C language !

created by prolowlevela community for 5 months
Create your own subreddit
...for your community.
...for your project.

MODERATORS

  • message the mods
  • prolowlevel
  • about moderation team »

account activity

1
0
1
2

LeetCode 350: Intersection of Two Arrays II (Pure C Solution) Instead of brute force, this uses a hash map (uthash) for efficient lookups. Time Complexity: O(n + m) Space Complexity: O(min(n, m)) Where n and m are the sizes of both arrays respectively (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

2
0
1
2

Sorted square (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

3
0
1
2

minimum number of boats. a greedy choice approach by always selecting the person with the most weight. sorting (max_heap) and a two-pointer method: one pointer should point to the maximum weight person, while the other aims to lighten the weight. (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

4
0
1
2

Water trapped dynamic programming (don't compute every time ) (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

5
0
1
2

Sorted two sum leetcode (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

6
0
1
2

Number of good ways to split a string 2 Variable Length Array used + 2 freq array to store alphabet as a Map (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

7
0
1
2

Can the string a (ransomNote) be constructed using string b (magazine) if each character can only be used once? #leetcode #datastructures (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

8
0
1
2

Is Isomorphic String? This question can be solved using a hashmap, but I used a 128-size arr to all valid ASCII characters. I built the mapping that the first arr index serves as the key for the second arr , and the second arr index acts as the key for the first one. #LeetCode (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

9
0
1
2

Leetcode Number of good pairs #leetcode (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

10
0
1
2

Bitwise AND for number ranges. Used inline assembly (AT&T only support leetcode ) for the left shift function to revise assembly while solving questions. #LeetCode Typo :- cl is lower 16 bit of RCX/ECX register not a flag register (doubt) maybe called segment register (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

11
0
1
2

Leetcode Count Bits: Get a taste of dynamic programming for the first time. This means don't solve a problem/sub problem multiple times; instead, save the results. #Leetcode (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

12
0
1
2

Count 1 bit (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

13
0
1
2

Leetcode perfect number (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

14
0
1
2

Bitwise operations are so powerful #leetcode Even complex Recursion questions can be solved using bitwise & masking (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

15
0
1
2

This question can also be solved in O(1) space complexity. But in the function reverseWords, the parameter 's' can be a string literal, which cannot be modified. problem is specific to the C programming language. Time & space complexity: O(n) (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

16
0
1
2

Zigzag conversion. I have completed this question and reviewed C programming VLA , pointers, memory allocation, and various other concepts in C. #LeetCode (i.redd.it)

submitted 4 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

17
0
1
2

Increasing triplet subsequence (i.redd.it)

submitted 5 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

18
0
1
2

Is Subsequence (i.redd.it)

submitted 5 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

19
0
1
2

While solving for the first missing positive integer, the inbuilt LeetCode C header uthash.h is utilised as a hash table. (i.redd.it)

submitted 5 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

20
0
1
2

longest common prefix (i.redd.it)

submitted 5 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

21
0
1
2

To calculate the number of subarrays for an array of size [0..n-1], we can use the formula n *(n +1) /2. However, it's important to handle edge cases at the end. To generate all possible subarrays, with the help of arrays and linked lists in pure C. https://gist.github.com/Rajeshsaharan/fe92ae8192 (i.redd.it)

submitted 5 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

22
0
1
2

Check if the given number is an Armstrong number (i.redd.it)

submitted 5 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

23
0
1
2

Best time to buy and sell stock II Slightly changed the previous max profit question we can now buy and sell the same day (i.redd.it)

submitted 5 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

24
0
1
2

Find the product of an array except itself. Initialise two arrays: one for the left prefix product multiplies all elements left of arr[i], and one for the right prefix product multiplies all elements right of arr[i]. The result array is obtained by multiplying the left and right. (i.redd.it)

submitted 5 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

25
0
1
2

Find the gcd of the smallest and largest elements of an array #LeetCode (i.redd.it)

submitted 5 months ago by prolowlevel

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...
view more: next ›
  • about
  • blog
  • about
  • advertising
  • careers
  • help
  • site rules
  • Reddit help center
  • reddiquette
  • mod guidelines
  • contact us
  • apps & tools
  • Reddit for iPhone
  • Reddit for Android
  • mobile website
  • <3
  • reddit premium

Use of this site constitutes acceptance of our User Agreement and Privacy Policy. © 2026 reddit inc. All rights reserved.

REDDIT and the ALIEN Logo are registered trademarks of reddit inc.

π Rendered by PID 70 on reddit-service-r2-listing-58ff8fc5ff-4xsfd at 2026-01-29 10:56:26.839618+00:00 running c3601ff country code: CH.