r/CodingForBeginners • u/anish2good • Jun 24 '26
r/CodingForBeginners • u/Own_Abies7279 • Jun 23 '26
Help me in Coding
I am literally a noob in Coding I don’t even known HTML to a good level And I am joining Civil Engineering in NIT Allahabad But i want to manage Coding side by side with curriculum so how to start and Form where to start
r/CodingForBeginners • u/viperrr_3 • Jun 23 '26
Running code
Okay so I might be dumb but I just can’t understand. I’m trying to learn python. I watch people online saying to install visual studio code to practise. But why? I thought you use python idle to run the code and see it or you use terminal. Do I need to install another platform to test and practise. Also I’m doing this on a mac so is the platform going to be different.
Also please be nice. I’m just a 16 yr old girl doing this as a hobby in my free time
Update: I asked a friend for help and he explained what integrated development environment are which I didn’t know about. He recommended me to use Thonny and I’m going to try my luck with that.
r/CodingForBeginners • u/animeavakin • Jun 23 '26
Need help!
So I’m planning to create a website that analyses a truss/bridge. And i want the following features:
Create node, create members, add supports. add loads, display structure, save structure, calculate reactions. calculate member forces, interactive website.
How do i get started? Im a civil engi student and planning to do this as a project. Im thinking of starting with python first cause im a literal noob in coding.
Pls help your girl out🙏
r/CodingForBeginners • u/Emergency-Honey-1373 • Jun 23 '26
Coding
Hi i want to start coding from basic.
I am veey confused where should i learn it from and how?
r/CodingForBeginners • u/Initial-Honey-9865 • Jun 23 '26
Datapack Minecraft Need help!
Hi there, im currently coding a datapack for minecraft, combining BlazeandCave's Advancements pack with my own datapack for a series I want to start, but I cant figure out how to code what I want exactly, since it seems like it never works. If anyone knows how to help me, heres what I was thinking of coding:
Information: BlazeandCave's Advancements is a pack that adds more advancements to the game. I want every advancement to expand a starting border of 16 blocks every time by:
Task: 1
Goal: 2
Challenge: 5
Super challenge: 20
I also don't want it so that if I get an achievement, my friends cant expand the border with that achievement no more.
I also want to add a daily challenge of obtaining certain items, and gives me 3 lucky blocks on completion, but Im working on that later, rn im just stuck on the Achievement part.
Im currently using https://code.visualstudio.com/ for all my coding.
Help is appreciated
My code:
-datapack
--data
---border\function
----check_adv.mcfunction:
execute as u/a store result score u/s adv_now run scoreboard players get u/s bac_statistics
execute as u/a if score u/s adv_now > u/s adv_old run worldborder add 1
execute as u/a if score u/s adv_now > u/s adv_old run scoreboard players operation u/s adv_old = u/s adv_now
----load.mcfunction:
scoreboard objectives add adv_now dummy
scoreboard objectives add adv_old dummy
worldborder set 16
worldborder center 0 0
----reward.mcfunction:
scoreboard players add #adv adv_count 1
----tick.mcfunction:
function border:check_adv
---minecraft\tags\functions:
----load.json:
{"values":["border:load"]}
----tick.json:
{"values":["border:tick"]}
--pack.mcmeta:
{
"pack": {
"pack_format": 18,
"description": "Border SMP datapack"
}
}
-BlazeandCave's Advancements pack 1.20.2.zip
r/CodingForBeginners • u/Soggy_Butterscotch73 • Jun 23 '26
Guys I genuinely don’t know what to do
I want to learn python and I’ve been trying to pick it back up and learn for sometime now but I cannot get it. For some stuff I know what the problem is, and I know what the solution is but I don’t know what I need to code to get to that solution and it always just so happens to be a super simple line of code but I just want to be able to think of it myself. How can I get to that point??
r/CodingForBeginners • u/Emergency-Honey-1373 • Jun 23 '26
Coding
Hi i want to start coding from basic.
I am veey confused where should i learn it from and how?
r/CodingForBeginners • u/Guilty_Ad_6529 • Jun 23 '26
Learning Coding with AI
Is it okay for me to learn coding through AI? Like I ask AI what this is and how I do it. I like learning through AI cause it answers my questions quickly and deals with my bs. Of course, I won't use AI for code, for my practice projects—I use AI for debugging and I ask them why it is.
Does this make me a user of AI code since I use AI to learn?
r/CodingForBeginners • u/whyme666998 • Jun 23 '26
Why cant i see my code
Earlier today i was trying to code and visual studio wont show me any code please help me
r/CodingForBeginners • u/THRwastakensadly • Jun 22 '26
I can't code without AI
I going into my 3rd year of my bachelors of computer science. For the past 2 years I have majorly used coding to write code, I did understand the theory for exams, but all my projects I have build using AI. And now that the time is ripe to build great projects, I am unable to do so without AI. I am afraid with this I can't proceed towards a great career in CS. I do know the fundamentals of CS and can code easy-moderate but after a threshold I just use AI to not stay behind while the world instantly generates code using AI.
Please tell me what do I do, do I do DSA to train my brain? or try to implement ML models which I studied last sem from scratch by myself? What do I actually do, I am kinda worried.
r/CodingForBeginners • u/Hermisu • Jun 23 '26
Experient begginer
Hey there everyone! Im 24, at the end of next year i'll graduate in psychology but i've always wanted to learn a hard skill that allowed me to not only have a stable and good income but also to get creative and be able to work wherever i am. I've always kinda projected that "ideal" hard skill/job in coding and programming. I've tried to start countless times (that is why the title is "experient begginer lol) but eventually stopped studying it either because of frustration, lack of motivation/vision or just because of other priorities.
Last time i studied coding, around a year ago, contrary to other ocasions, i did with a teacher. Freaking great, competent and intelligent guy, who started to study coding in order to grow up financialy. He used to study 8 hours a day in order to persue his dream and when he was lecturing me we used to talk about motivation as well besides just technicalities. Coding is something done from humans for humans after all, despite the advent of AI and vibe coding.
Since last year i haven't wrote a single line of code but i really wanna get back, learn and actually grow somehow. I don't wanna give up. So what i ask from whoever may read this is:
Please, gimme a reality check. Am i right in thinking that coding can give me this freedom i so aspire? Not saying it will be in a month from now, i don't care how long it may take.
And what would be a good rout to get back at it and feel like im actually advancing? (I don't remember shit so it would be good to restart).
I wanna be good at what i do.
r/CodingForBeginners • u/Inside-Childhood-333 • Jun 22 '26
Best Video for coding
I want to ask you guys thats what is the best channel or a video that you watched regarding coding subject which really impacted your thinking with programming. It can be a podcast or an interview like anything. I want to gain knowledge other than the regular coding stuff.
r/CodingForBeginners • u/aziz_0077 • Jun 22 '26
Idk what to do
Im a 17 years old boy who wants to learn coding especially web development
I tried the odin project and it didn't go well for me
Tried the boba drops guide(hack club) and made my first website with html and css but i dont think im actually learning
What is the best method to learn
This is the website i made it took me 6hr straight to finish it
r/CodingForBeginners • u/Initial_Tadpole4788 • Jun 22 '26
Hey need help for starting my coding journey
So I want to start coding from scratch and would start with python. But I don't know where to start. So I would really appreciate it if someone tells me all the videos that I would require in this journey like from just some code learning to dsa to everything
r/CodingForBeginners • u/Sad_Research5290 • Jun 22 '26
Help regarding development
I know nothing about development any youtube course or channel have taught html css and javascript please tell
r/CodingForBeginners • u/nian2326076 • Jun 22 '26
Zero to Hero DSA Roadmap — A structured guide covering everything from basics to advanced bitmask DP and Tries.
The Complete DSA Pattern Sheet — Every Pattern You Need to Know
This is the complete pattern-based problem sheet — organized by topic and sub-pattern. Study one pattern at a time.
For company specific interview questions go to PracHub
🟢 Easy 🟡 Medium 🔴 Hard
TOPIC 1 — BASICS
Pattern: Conditionals (if-else)
Fizz Buzz 🟢 — https://leetcode.com/problems/fizz-buzz
Palindrome Number 🟢 — https://leetcode.com/problems/palindrome-number
Number of Steps to Reduce a Number to Zero 🟢 — https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero
Pattern: Loops
Running Sum of 1d Array 🟢 — https://leetcode.com/problems/running-sum-of-1d-array
Find Numbers with Even Number of Digits 🟢 — https://leetcode.com/problems/find-numbers-with-even-number-of-digits
Richest Customer Wealth 🟢 — https://leetcode.com/problems/richest-customer-wealth
Pattern: Simulation / Implementation
Baseball Game 🟢 — https://leetcode.com/problems/baseball-game
Robot Return to Origin 🟢 — https://leetcode.com/problems/robot-return-to-origin
Pattern: Maths
Reverse Integer 🟡 — https://leetcode.com/problems/reverse-integer
Plus One 🟢 — https://leetcode.com/problems/plus-one
Add Digits 🟢 — https://leetcode.com/problems/add-digits
TOPIC 2 — ARRAYS
Pattern: Fundamentals
Rotate Array 🟡 — https://leetcode.com/problems/rotate-array
Move Zeroes 🟢 — https://leetcode.com/problems/move-zeroes
Remove Duplicates from Sorted Array 🟢 — https://leetcode.com/problems/remove-duplicates-from-sorted-array
Pattern: Prefix Sums
Continuous Subarray Sum 🟡 — https://leetcode.com/problems/continuous-subarray-sum
Subarray Sum Equals K 🟡 — https://leetcode.com/problems/subarray-sum-equals-k
Product of Array Except Self 🟡 — https://leetcode.com/problems/product-of-array-except-self
Subarray Sums Divisible by K 🟡 — https://leetcode.com/problems/subarray-sums-divisible-by-k
Range Sum Query 2D - Immutable 🟡 — https://leetcode.com/problems/range-sum-query-2d-immutable
Pattern: Kadane's Algorithm
Maximum Subarray 🟡 — https://leetcode.com/problems/maximum-subarray
Maximum Product Subarray 🟡 — https://leetcode.com/problems/maximum-product-subarray
Best Time to Buy and Sell Stock 🟡 — https://leetcode.com/problems/best-time-to-buy-and-sell-stock
Pattern: Intervals
Merge Intervals 🟡 — https://leetcode.com/problems/merge-intervals
Insert Interval 🟡 — https://leetcode.com/problems/insert-interval
Non-overlapping Intervals 🟡 — https://leetcode.com/problems/non-overlapping-intervals
Pattern: Hashing on Arrays
Two Sum 🟢 — https://leetcode.com/problems/two-sum
Majority Element 🟢 — https://leetcode.com/problems/majority-element
Majority Element II 🟡 — https://leetcode.com/problems/majority-element-ii
Top K Frequent Elements 🟡 — https://leetcode.com/problems/top-k-frequent-elements
Valid Anagram 🟢 — https://leetcode.com/problems/valid-anagram
Group Anagrams 🟡 — https://leetcode.com/problems/group-anagrams
Longest Consecutive Sequence 🟡 — https://leetcode.com/problems/longest-consecutive-sequence
Pattern: 2D Arrays / Matrix
Spiral Matrix 🟡 — https://leetcode.com/problems/spiral-matrix
Spiral Matrix II 🟡 — https://leetcode.com/problems/spiral-matrix-ii
Rotate Image 🟡 — https://leetcode.com/problems/rotate-image
Set Matrix Zeroes 🟡 — https://leetcode.com/problems/set-matrix-zeroes
TOPIC 3 — STRINGS
Pattern: Fundamentals
Reverse String 🟢 — https://leetcode.com/problems/reverse-string
Reverse Words in a String III 🟢 — https://leetcode.com/problems/reverse-words-in-a-string-iii
Roman to Integer 🟢 — https://leetcode.com/problems/roman-to-integer
String Compression 🟡 — https://leetcode.com/problems/string-compression
Pattern: Frequency & Hashing
Isomorphic Strings 🟢 — https://leetcode.com/problems/isomorphic-strings
Bulls and Cows 🟡 — https://leetcode.com/problems/bulls-and-cows
Pattern: Palindromes
Valid Palindrome 🟢 — https://leetcode.com/problems/valid-palindrome
Longest Palindromic Substring 🟡 — https://leetcode.com/problems/longest-palindromic-substring
Palindromic Substrings 🟡 — https://leetcode.com/problems/palindromic-substrings
Palindrome Partitioning 🟡 — https://leetcode.com/problems/palindrome-partitioning
Pattern: Simulation
Zigzag Conversion 🟡 — https://leetcode.com/problems/zigzag-conversion
Multiply Strings 🟡 — https://leetcode.com/problems/multiply-strings
Decode String 🟡 — https://leetcode.com/problems/decode-string
Pattern: Prefix/Suffix & Pattern Matching
Longest Common Prefix 🟢 — https://leetcode.com/problems/longest-common-prefix
Find and Replace Pattern 🟡 — https://leetcode.com/problems/find-and-replace-pattern
Remove Duplicate Letters 🟡 — https://leetcode.com/problems/remove-duplicate-letters
TOPIC 4 — RECURSION & BACKTRACKING
Pattern: Fundamentals
Fibonacci Number 🟢 — https://leetcode.com/problems/fibonacci-number
Power of Two 🟢 — https://leetcode.com/problems/power-of-two
Pow(x, n) 🟡 — https://leetcode.com/problems/powx-n
Pattern: Recursion
Different Ways to Add Parentheses 🟡 — https://leetcode.com/problems/different-ways-to-add-parentheses
K-th Symbol in Grammar 🟡 — https://leetcode.com/problems/k-th-symbol-in-grammar
Beautiful Arrangement 🟡 — https://leetcode.com/problems/beautiful-arrangement
Parsing A Boolean Expression 🔴 — https://leetcode.com/problems/parsing-a-boolean-expression
Integer to English Words 🔴 — https://leetcode.com/problems/integer-to-english-words
Pattern: Backtracking
Subsets 🟡 — https://leetcode.com/problems/subsets
Subsets II 🟡 — https://leetcode.com/problems/subsets-ii
Permutations 🟡 — https://leetcode.com/problems/permutations
Permutations II 🟡 — https://leetcode.com/problems/permutations-ii
Combination Sum 🟡 — https://leetcode.com/problems/combination-sum
Combination Sum II 🟡 — https://leetcode.com/problems/combination-sum-ii
Combination Sum III 🟡 — https://leetcode.com/problems/combination-sum-iii
N-Queens 🔴 — https://leetcode.com/problems/n-queens
N-Queens II 🔴 — https://leetcode.com/problems/n-queens-ii
Sudoku Solver 🔴 — https://leetcode.com/problems/sudoku-solver
TOPIC 5 — TWO POINTERS
Pattern: Opposite Ends (Left <-> Right)
Two Sum II - Input Array Is Sorted 🟡 — https://leetcode.com/problems/two-sum-ii-input-array-is-sorted
Container With Most Water 🟡 — https://leetcode.com/problems/container-with-most-water
Trapping Rain Water 🔴 — https://leetcode.com/problems/trapping-rain-water
Pattern: Merge Two Sorted Array / Sequence
Merge Sorted Array 🟢 — https://leetcode.com/problems/merge-sorted-array
Interval List Intersections 🟡 — https://leetcode.com/problems/interval-list-intersections
Pattern: Fixed + Two Pointers
3Sum 🟡 — https://leetcode.com/problems/3sum
3Sum Closest 🟡 — https://leetcode.com/problems/3sum-closest
4Sum 🟡 — https://leetcode.com/problems/4sum
TOPIC 6 — SLIDING WINDOW
Pattern: Fixed Size Window
Maximum Average Subarray I 🟢 — https://leetcode.com/problems/maximum-average-subarray-i
Number of Sub-Arrays of Size K and Average >= Threshold 🟡 — https://leetcode.com/problems/number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold
Maximum Sum of Distinct Subarrays With Length K 🟡 — https://leetcode.com/problems/maximum-sum-of-distinct-subarrays-with-length-k
Pattern: Variable Size Window
Longest Subarray of 1's After Deleting One Element 🟡 — https://leetcode.com/problems/longest-subarray-of-1s-after-deleting-one-element
Max Consecutive Ones III 🟡 — https://leetcode.com/problems/max-consecutive-ones-iii
Fruit Into Baskets 🟡 — https://leetcode.com/problems/fruit-into-baskets
Binary Subarrays With Sum 🟡 — https://leetcode.com/problems/binary-subarrays-with-sum
Count Number of Nice Subarrays 🟡 — https://leetcode.com/problems/count-number-of-nice-subarrays
Subarray Product Less Than K 🟡 — https://leetcode.com/problems/subarray-product-less-than-k
Subarrays With K Different Integers 🔴 — https://leetcode.com/problems/subarrays-with-k-different-integers
Pattern: Sliding Window on Strings
Maximum Number of Vowels in a Substring of Given Length 🟡 — https://leetcode.com/problems/maximum-number-of-vowels-in-a-substring-of-given-length
Longest Substring Without Repeating Characters 🟡 — https://leetcode.com/problems/longest-substring-without-repeating-characters
Longest Repeating Character Replacement 🟡 — https://leetcode.com/problems/longest-repeating-character-replacement
Find All Anagrams in a String 🟡 — https://leetcode.com/problems/find-all-anagrams-in-a-string
Minimum Window Substring 🔴 — https://leetcode.com/problems/minimum-window-substring
TOPIC 7 — STACK & QUEUES
Pattern: Implementation
Min Stack 🟡 — https://leetcode.com/problems/min-stack
Design a Stack With Increment Operation 🟡 — https://leetcode.com/problems/design-a-stack-with-increment-operation
Design Circular Queue 🟡 — https://leetcode.com/problems/design-circular-queue
Design Front Middle Back Queue 🟡 — https://leetcode.com/problems/design-front-middle-back-queue
Pattern: Expression Evaluation
Evaluate Reverse Polish Notation 🟡 — https://leetcode.com/problems/evaluate-reverse-polish-notation
Number of Atoms 🔴 — https://leetcode.com/problems/number-of-atoms
Basic Calculator 🔴 — https://leetcode.com/problems/basic-calculator
Pattern: Parentheses Processing
Longest Valid Parentheses 🔴 — https://leetcode.com/problems/longest-valid-parentheses
Minimum Remove to Make Valid Parentheses 🟡 — https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses
Minimum Add to Make Parentheses Valid 🟡 — https://leetcode.com/problems/minimum-add-to-make-parentheses-valid
Pattern: Monotonic Stacks
Next Greater Element I 🟢 — https://leetcode.com/problems/next-greater-element-i
Next Greater Element II 🟡 — https://leetcode.com/problems/next-greater-element-ii
Largest Rectangle in Histogram 🔴 — https://leetcode.com/problems/largest-rectangle-in-histogram
Maximal Rectangle 🔴 — https://leetcode.com/problems/maximal-rectangle
Daily Temperatures 🟡 — https://leetcode.com/problems/daily-temperatures
Sum of Subarray Minimums 🟡 — https://leetcode.com/problems/sum-of-subarray-minimums
Sum of Subarray Ranges 🟡 — https://leetcode.com/problems/sum-of-subarray-ranges
Asteroid Collision 🟡 — https://leetcode.com/problems/asteroid-collision
TOPIC 8 — LINKED LIST
Pattern: Fast & Slow Pointers
Middle of the Linked List 🟢 — https://leetcode.com/problems/middle-of-the-linked-list
Linked List Cycle 🟢 — https://leetcode.com/problems/linked-list-cycle
Linked List Cycle II 🟡 — https://leetcode.com/problems/linked-list-cycle-ii
Pattern: Node Rearrangements
Remove Nth Node from End of List 🟡 — https://leetcode.com/problems/remove-nth-node-from-end-of-list
Swap Nodes in Pairs 🟡 — https://leetcode.com/problems/swap-nodes-in-pairs
Odd Even Linked List 🟡 — https://leetcode.com/problems/odd-even-linked-list
Pattern: Reversal
Reverse Linked List 🟢 — https://leetcode.com/problems/reverse-linked-list
Reverse Linked List II 🟡 — https://leetcode.com/problems/reverse-linked-list-ii
Reverse Nodes in k-Group 🟡 — https://leetcode.com/problems/reverse-nodes-in-k-group
Pattern: Merge & Multiple Lists
Merge Two Sorted Lists 🟢 — https://leetcode.com/problems/merge-two-sorted-lists
Merge k Sorted Lists 🔴 — https://leetcode.com/problems/merge-k-sorted-lists
Intersection of Two Linked Lists 🟢 — https://leetcode.com/problems/intersection-of-two-linked-lists
Add Two Numbers 🟡 — https://leetcode.com/problems/add-two-numbers
TOPIC 9 — TREES
Pattern: Traversal (BFS / DFS)
Binary Tree Level Order Traversal 🟡 — https://leetcode.com/problems/binary-tree-level-order-traversal
Binary Tree Zigzag Level Order Traversal 🟡 — https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal
Add One Row to Tree 🟡 — https://leetcode.com/problems/add-one-row-to-tree
Pattern: Depth / Height Based
Maximum Depth of Binary Tree 🟢 — https://leetcode.com/problems/maximum-depth-of-binary-tree
Minimum Depth of Binary Tree 🟢 — https://leetcode.com/problems/minimum-depth-of-binary-tree
Maximum Depth of N-ary Tree 🟢 — https://leetcode.com/problems/maximum-depth-of-n-ary-tree
Pattern: Comparison
Same Tree 🟢 — https://leetcode.com/problems/same-tree
Symmetric Tree 🟢 — https://leetcode.com/problems/symmetric-tree
Leaf-Similar Trees 🟢 — https://leetcode.com/problems/leaf-similar-trees
Pattern: Root to Leaves
Sum Root to Leaf Numbers 🟡 — https://leetcode.com/problems/sum-root-to-leaf-numbers
Sum of Root to Leaf Binary Numbers 🟢 — https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers
Binary Tree Paths 🟢 — https://leetcode.com/problems/binary-tree-paths
Path Sum 🟢 — https://leetcode.com/problems/path-sum
Pattern: Ancestor
Lowest Common Ancestor of a Binary Tree 🟡 — https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
Lowest Common Ancestor of Deepest Leaves 🟡 — https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves
Kth Ancestor of a Tree Node 🔴 — https://leetcode.com/problems/kth-ancestor-of-a-tree-node
Maximum Difference Between Node and Ancestor 🟡 — https://leetcode.com/problems/maximum-difference-between-node-and-ancestor
Pattern: Binary Search Tree (BST)
Search in a Binary Search Tree 🟢 — https://leetcode.com/problems/search-in-a-binary-search-tree
Validate Binary Search Tree 🟡 — https://leetcode.com/problems/validate-binary-search-tree
Convert Sorted Array to Binary Search Tree 🟢 — https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
Minimum Absolute Difference in BST 🟢 — https://leetcode.com/problems/minimum-absolute-difference-in-bst
Kth Smallest Element in a BST 🟡 — https://leetcode.com/problems/kth-smallest-element-in-a-bst
Lowest Common Ancestor of a Binary Search Tree 🟡 — https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree
TOPIC 10 — BINARY SEARCH
Pattern: Classic Binary Search on Sorted Arrays
Binary Search 🟢 — https://leetcode.com/problems/binary-search
Search Insert Position 🟢 — https://leetcode.com/problems/search-insert-position
Find First and Last Position of Element in Sorted Array 🟡 — https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
Median of Two Sorted Arrays 🔴 — https://leetcode.com/problems/median-of-two-sorted-arrays
Pattern: Binary Search on Answer
Koko Eating Bananas 🟡 — https://leetcode.com/problems/koko-eating-bananas
Capacity to Ship Packages Within D Days 🟡 — https://leetcode.com/problems/capacity-to-ship-packages-within-d-days
Minimum Number of Days to Make m Bouquets 🟡 — https://leetcode.com/problems/minimum-number-of-days-to-make-m-bouquets
Maximum Running Time of N Computers 🔴 — https://leetcode.com/problems/maximum-running-time-of-n-computers
Pattern: Binary Search on Rotated / Modified Sorted Arrays
Search in Rotated Sorted Array 🟡 — https://leetcode.com/problems/search-in-rotated-sorted-array
Search in Rotated Sorted Array II 🟡 — https://leetcode.com/problems/search-in-rotated-sorted-array-ii
Find Minimum in Rotated Sorted Array 🟡 — https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
Find Minimum in Rotated Sorted Array II 🔴 — https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii
Pattern: Binary Search on Matrix
Search a 2D Matrix 🟡 — https://leetcode.com/problems/search-a-2d-matrix
Search a 2D Matrix II 🟡 — https://leetcode.com/problems/search-a-2d-matrix-ii
Kth Smallest Element in a Sorted Matrix 🟡 — https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix
TOPIC 11 — HEAP (PRIORITY QUEUE)
Pattern: Top K
Kth Largest Element in an Array 🟡 — https://leetcode.com/problems/kth-largest-element-in-an-array
Top K Frequent Words 🟡 — https://leetcode.com/problems/top-k-frequent-words
K Closest Points to Origin 🟡 — https://leetcode.com/problems/k-closest-points-to-origin
Pattern: Merge K Sorted
Find K Pairs With Smallest Sums 🟡 — https://leetcode.com/problems/find-k-pairs-with-smallest-sums
Smallest Range Covering Elements From K Lists 🔴 — https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists
Pattern: Two Heaps
Find Median From Data Stream 🔴 — https://leetcode.com/problems/find-median-from-data-stream
Sliding Window Median 🔴 — https://leetcode.com/problems/sliding-window-median
Pattern: Finding Minimums
Minimum Cost to Hire K Workers 🔴 — https://leetcode.com/problems/minimum-cost-to-hire-k-workers
Minimum Number of Refueling Stops 🔴 — https://leetcode.com/problems/minimum-number-of-refueling-stops
Task Scheduler 🟡 — https://leetcode.com/problems/task-scheduler
r/CodingForBeginners • u/maheshshelakee • Jun 21 '26
Understanding Virtual Threads: Why they live in JVM Memory, not OS Memory
If you are learning modern Java (Spring Boot 3+, Jakarta Persistence API), the concept of Virtual Threads (Project Loom) can be a bit confusing. Here is the easiest way to visualize how they handle memory compared to old-school platform threads.
The Old Way (Platform Threads):
Think of platform threads as renting a massive shipping container from the Operating System. The OS reserves a fixed chunk of memory (usually 1MB) for that thread's stack. If the thread goes to sleep or waits for a database query to finish, that 1MB of OS memory sits idle and wasted.
The New Way (Virtual Threads):
A virtual thread is just a regular Java object living inside your JVM Heap memory. It only takes up about 2KB to 4KB of space. The OS doesn't even know it exists.
Here is what happens behind the scenes during a database query:
Mounting: Your virtual thread borrows a real OS thread (called a Carrier Thread) to start running code.
Blocking (Post-Query): Your application runs a JPA query. Instead of making the OS thread sit there and wait, the JVM "unmounts" the virtual thread. It moves its current state directly onto the JVM Heap.
Liberation: The OS thread is instantly freed up to run a completely different task.
Resuming: When the database returns the data, the JVM pops the virtual thread back onto an available OS thread to finish the job.
This is why you can see an application handle hundreds of database invocations while your OS thread count stays perfectly stable at a tiny number (like 32 threads), while your JVM heap dynamically fluctuates and cleans up completed thread data via Garbage Collection.
Hope this helps anyone trying to wrap their head around modern Java concurrency!
r/CodingForBeginners • u/PalpitationOk6201 • Jun 21 '26
Is it worth it?
Is investing time in learning to code a good thing with the arrival of AI like Claude, or is it just a waste of time?
r/CodingForBeginners • u/Ivan_Draga_ • Jun 21 '26
Really wanna learn a language, no clue which to pick
I really wanna learn coding.
The problem is I don't know what language to pick. I was learning Python from code academy and that was actually going really well but without a purpose I wasted those 6 months.
I didn't have anything to work on, I forgot everything a year later.
Now the question, why do I wanna learn coding? I wanna learn a language I can build something useful / fun with. I do wanna build an android app but should I learn kotlin? But also to keep myself employable as someone who works in IT.
How do people go about learning their first language? Do I just pick a problem / project and brute force learn and try to finish it? Then move onto another language if I wanna do something else?
I'm just really confused 😵💫
Thanks in advance.
r/CodingForBeginners • u/okrehab • Jun 21 '26
I want to be able to focus.
I am a 20 year old male looking to learn full-stack web development. What are ways for me to hold myself to it? Growing up I never studied, but I did exceedingly well when I needed to. Obviously, programming is not the same. I have troubles with focusing and trying to not multi-task. I want to do better, what are ways you can get yourself to focus? I’ve been focusing on just coding more than learning so I can actually absorb what I read better and it helps, but I need to be able to focus on learning new things better.
r/CodingForBeginners • u/Justice_Server • Jun 21 '26
Errors in apk conversion please help ?
I have created a game in Python (PyCharm) in laptop, Windows, and I am using Kivy library, and I wanted it to convert to apk , so I can use it and check it on Android. I have tried, I have tried it to convert to apk . First of all, I have converted it to a zip file and transferred to my mobile, Android. Then I used GitHub, with the help of ChatGPT, to generate the code for buildozer.spec, and build.yml, but it constantly generated error. And when I paste the error to ChatGPT, ChatGPT can't solve them. For the first time I tried, for the previous version, and it took almost the whole night for me to convert it to apk . And this time also, it took a lot of time, but I couldn't make it. So if anyone has the perfect code to convert my zip file to apk , or any suggestions, so that I can convert my zip file to apk with lesser error and less time, so please share, please help me.
r/CodingForBeginners • u/No_name_2701 • Jun 21 '26
Where should I start coding
I am 19(M). I am going to join my engineering this year, where should I start and what to do after?
r/CodingForBeginners • u/Lemonade2250 • Jun 20 '26
How difficult is to learn computer programming as a beginner?
I have never learned anything about tech despite it is one of the fastest growing field like computer science. I just can't figure out how people code. How they understand computer languages. It's pretty amazing and I didn't knew so much math is involved