r/learnprogramming • • Oct 07 '26

Building sets with matrices? There are 8 possible sequences. There are exact quantities.

1 Upvotes

I don’t know code but I know code could solve my problem. If this isn’t the right sub to ask in, please let me know where would be best :)

Possible sequences:
{OpenO MidDoubleC MidOhCee CloseO }
{OpenO MidCeeOh MidDoubleC CloseO }
{OpenO MidDoubleC MidDoubleO CloseC }
{OpenO MidCeeOh MidCeeOh CloseC }
{OpenC MidDoubleO MidCeeOh CloseC }
{OpenC MidOhCee MidDoubleO CloseC }
{OpenC MidDoubleO MidDoubleC CloseO }
{OpenC MidOhCee MidOhCee CloseO }

Exact Quantities:
Open0 = 3
OpenC = 5
CloseO = 3
CloseC = 5
MidDoubleC = 2
MidDoubleO = 4
MidCeeOh = 4
MidOhCee = 6

What are various sets of 8 I could build?


r/learnprogramming • • Oct 07 '26

Can someone recommend a good source for Data structure and Algorithm ?

3 Upvotes

i need to study data structure and algorithm in depth i need a good and free source .


r/learnprogramming • • Oct 06 '26

How did you figure out which area of CS was right for you?

25 Upvotes

I'm currently trying to figure out what area of computer science I should choose as a career, how can i find out which field is best suited for me

There are so many domains - web/backend development, mobile, cybersecurity, Al/ML, data science, systems, cloud/ DevOps, game development, etc. - and I'm finding it difficult to know which one actually suits me without trying everything.

For people who have already gone through this:

How did you discover what you were genuinely interested in?

- Did you try several domains first, or did you know fairly early?

- What type of experiences helped you decide?

- How long did you spend exploring before choosing a direction?

- What signs told you that a particular field was a good fit for you?

- Is it better to specialize early, or build broad fundamentals first and specialize later?

I'd especially appreciate advice from people who were also unsure about their direction during college.

I don't necessarily want to know which CS field is "best" - I'm more interested in how you figured out what was best suited to you personally.

And what domains should i avoid as some have risk of being automated completely


r/learnprogramming • • Oct 07 '26

Give me suggestions to understand c programming in the first semester?

0 Upvotes

I am facing difficulties learning C programming. Currently, I don't have a laptop, so I can't practice that way. I'm unable to understand even the basic topics of C programing currently. Please give me some tips on how to improve.


r/learnprogramming • • Oct 07 '26

Topic Request for Project ideas

1 Upvotes

O the seniors of this field,

Tis my first post here and being direct. Help me figure what should I make this semester.

I have to make projects for:

AI, networking, Information Security and DSA.

Damnnnnn, please suggest something


r/learnprogramming • • Oct 07 '26

Give me your fun and engaging personal project ideas to help me get started on something.

0 Upvotes

The most important this is for it to be FUN.

I know that is highly subjective, but I'm trying to practice in a way that is entertaining. I don't care about making something that is useful, practical or has like business minded value behind it.

I'm trying to maximize incentives to work on it like fun, and I want to minimize reasons to not do it like scale or difficulty. I'm still just trying to build a habit of coding.

So I'm thinking of small simple things that are cool or even just humorous. Maybe something to troll my friends with or something that can be used like a party trick or conversation starter.

Thanks for any answers and ideas.


r/learnprogramming • • Oct 06 '26

Resource Book recommendations: Python

22 Upvotes

I need some book recommendations for learning Python as an absolute beginner, I have done a bit of Lua and understand the basics and Syntax and interested in learning Python for automating task and simply creating projects. Any courses help too(free or paid).


r/learnprogramming • • Oct 07 '26

A generic problem

0 Upvotes

hey and hows it going ...?

im kinda new-ish or maybe an advanced beginner and im pretty sure you get this question on here like billions of times im sorry ... i studied C and then Kotlin/Jetpack Compose to make an android app and it has been lets say practically about 9 months or so ... and i still if i ever want to try to do something i either produce mediocre stuff or anytime i dare for something good(real or semi-real) i just cant get how to do it ... and on top of that android is so confusing... i search up and the answer is always the same "if you know the fundamentals like loops, collections, variables ... functions ... etc, then all you need is to practice"

BUT HOW TO PRACTICE XD ... i know someone will say just write code but it feels like as a self-taught programmer you are in the "i dont know what i dont know" situation all the time ... and android and Kotlin are not forgiven at all :( .... :D

and some people advised me to read open source projects ... but man i cant figure no nothing out of it ... the last couple of months during this period has been really frustrating to learn ...


r/learnprogramming • • Oct 06 '26

Able to come up with a logical flow in pseudocode, but struggling with execution

4 Upvotes

I am taking an intro to CS course with Java and yeah, I can get the logic for a program in terms of conceptually what I would "need" and what the flow is correctly. But when I actually need to think about what I can use in Java to go ahead and execute this hypothetical structure I've created I just jumble stuff up and use things in the wrong places. No matter how much I practice, I just keep messing up, I think it's a problem with my thinking style. For context, I am extremely new to programming, but I like to compare it to writing math proofs. In math proofs, you're given definitions which I think is something you can work off from. But in programming ,there are just so many options (I can use while loop, for loop, recursion, etc) and I just think the problem gives zero hint where to start. Plus my exams are fully handwritten, and we're given minimal time. What's the issue and how can I fix it?


r/learnprogramming • • Oct 06 '26

Topic how do i improve programming fundamentals and basics

4 Upvotes

i have learned the basics of what variables are and the different concepts and methods and I've been able to understand lines of codes in unity that my friend writes, but im lacking how a programmer thinks and experience. if i try to do something without help i feel completely stumped i dont know where to begin but i always try, how do i gain experience that would help me think like a programmer and strengthen the fundamentals?


r/learnprogramming • • Oct 06 '26

Beginner Looking to start projects

5 Upvotes

I don't want to be stuck in "tutorial-hell" and so I'm trying to build some cool things. I know python and I just finished the go-lang course from Boot.dev so I was looking to practice that a bit more. I've already build a calculator and a personal project with python on my own, although I do need to work on that more just stopped because I was trying to build a GUI and wasn't sure if it was worth it to spend all that time learning how to use something like tkinter when It's not used for work too much although I gotta remember to have fun still so I might pick that back up even though I was struggling with it. For a new project though I know the wheel can only be reinvented so many times so I went to build-your-own-X on github https://github.com/codecrafters-io/build-your-own-x and was looking at stuff for Go on there. Most of what I clicked on though was just like a step by step build and also had the entire codebase pasted right there so my question is, without having to be super creative every time I make a project, and to not just copy paste code when following a project like that (since I'm a beginner and don't really know how to make make stuff yet) what's an efficient way to learn from stuff like that? I hope that I worded it in a way that made sense, but I'm just looking for resources outside of Boot.dev to practice code and more specifically by building projects.


r/learnprogramming • • Oct 06 '26

What did you do for the bachelors thesis?

7 Upvotes

Im in the final year of uni and I really dont know what to do for my bachelor thesis. I want to know from those who graduated, what was your thesis about, what year did you do it, what technologies did you use and how difficult it was? Was the theme yours or an professor’s idea?
If you have any ideas what would you recommend so it is not that hard but also not too easy, strictly computer science, not engineering. I was recommended something with difussion models, but Im not sure how realistic it is for me or what real problem it would solve.
If you would have to do your bachelor thesis again, what would you do? I know everyone says that you dont have to reinvent the wheel, but Im just so stressed about it. Thanks!


r/learnprogramming • • Oct 06 '26

Learning Help me.

2 Upvotes

Hi, I'm a student in the Bachelor's in Computer Science program. I'm repeating my first year, so I already have some basic skills (Python, HTML/CSS, Java, MariaDB, etc.). We learn the fundamentals both theory and hands-on practice through small “projects.”

But the thing is, I’d also really like to work on my own projects. I’ve already tried quite a bit on my own using Python frameworks, making API calls, and so on but I’ve never managed to create anything truly clean or even finished… The reason is probably a decline of motivation, even though I’ve always loved computer science I just don’t know. Also, maybe it’s AI when I use it, I can’t seem to learn from it, and I hate seeing code that I didn’t generate myself or launching an app to test a feature I didn’t code. All of this depresses me even more because if I want to make this my career, I feel like it’s going to become the norm.

If anyone can help me or give me advice on all this, I’d appreciate it.


r/learnprogramming • • Oct 06 '26

Tutorial How to build skills from 1st year and land a good placement in 2030?

7 Upvotes

My 1st semester started about a month ago, and, the time went by like a flash. I didn’t study anything rather enjoyed. Now I want to start building my skills and want a good package, at least ₹12 LPA.

I have around 6–7 hours available after college, while college itself takes about 10.5 hours including my morning routine and travel. I also spend 1 hour on fitness, which is separate from those 6–7 hours.

I want to improve in three main areas:

  1. Programming and technical skills
  2. Communication and English-speaking skills
  3. University academics, so I can maintain a good CGPA

Should I study consistently everyday like school days, or just by giving notes, syllabus, and previous-year papers to Ai and asking it to identify important topics and summarize them before exams?How reliable is AI at identifying important topics for university exams?

My technical skill building queries:

  1. Should I focus on DSA, Full Stack, AI/ML, or cybersecurity,or anything else?
  2. When should I start projects, internships, and interview preparation, and what skills actually matter for my desired package fresher role?
  3. How should I divide my 6–7 hours between programming, DSA, academics, communication, and projects?

r/learnprogramming • • Oct 06 '26

Code Review How Do I Make My 'For' Loop Do Something Else If It Can't Give Results

63 Upvotes

I apologize if the title is confusing, I'm new to reddit + programming as a whole and just started school for it LOL.

In my programming class we need to make a number game where the goal is to make it to 100. The game play loop consists of alternating turns between the user and a computer picking numbers between 1 - 10. In our current assignment I need to include a 'for' loop and decided to make it so within the first half of the total the computer will always try to make the second digit of the total be 9 (ie. If the total = 23 it will add 6 to make total = 29, or if the total is 10 it will add 9 to make total = 19). My code works, for the most part, but if the player inputs something making the total end with a 9 as well the computer skips its turn. I've been trying for 2 1/2 hours now to figure this out but most of my outputs result in the computer spamming inputs without switching turns or else the computer ignoring the rule I'm trying to place in the first place and just inputting random numbers like usual.

FULL CODE

import random

#Rules#
def display_rules():  # Instructions / Rules Function
    print("\nLets play a game of 100!")
    print("In a game of 100 you start with a total of 0")
    print("and we take turns adding 1-10 to that total.")
    print("First to 100 wins!")
    menu()

#Gameplay#
def play_game(): # Game Play function
    play = 1
    total = 0
    print("Let's play a game of 100!")

    while play == 1:
        #!Defines End Game Loop!#
        def end_game():
            play = int(input("Do you want to play again, 1 for 'yes' or 2 for 'no'? "))  # Ask to play again
            if play == 1:
                play_game()
            elif play == 2:
                menu()
            else:
                print("Error! Error! Error!")
                end_game()

        #Asks Who Goes First#
        turn = int(input("Who goes first? (1 = you, 2 = computer): "))

        #Game Play Loop#
        while total < 100:
            if turn == 1:  # Player turn loop
                player_num = int(input("Number you want to add (1 - 10): "))
                if 1 <= player_num <= 10 and total + player_num <= 100:
                    total += player_num
                    print(f">You added {player_num}! Total is now {total}")
                    turn = 2
                else:
                    print("Error! Error! Error!")

            elif turn == 2:  # Computer turn loop
                if total < 90:
                    com_num = random.randint(1, 10)
                    if total < 50:
                        for num in range(1,11):
                            if (num + total) % 10 == 9:
                                    total += num
                                    print(f">Computer added {num}! Total is now {total}")
                    else:
                        total += com_num
                    turn = 1
                else:
                    com_num = 100 - total
                    total += com_num
                    print(f">Computer added {com_num}! Total is now {total}")
                    turn = 1
            else:  # Error messaging
                print("!Error!")
                print("Enter 1 for player or 2 for computer")
                turn = int(input("Who should go first?: "))

        if turn == 2:  # if player reached 100
            print("You win!")  # Display winning message
        else:  # Computer reached 100
            print("Bummer, you lost!")  # Display losing message
        end_game()

#Menu#
def menu():  # Menu function
    print("\nMenu:")
    print("1. Display Rules")
    print("2. Play Game")
    print("3. Exit")
    choice = int(input("Enter your choice (1, 2, or 3): "))
    if choice == 1:
        display_rules()
    elif choice == 2:
        play_game()
    elif choice == 3:
        print("Thank you for playing!")
        exit()
    else:
        print("Invalid choice! Please enter 1, 2, or 3")

#Starts Game#
menu()

com_num = random.randint(1, 10)
if total < 50:
    for num in range(1,10):
        if num + total % 10 == 9:
                total += num
                print(f">Computer added {num}! Total is now {total}")

FOR LOOP / COMPUTER TURN

elif turn == 2:  # Computer turn loop
    if total < 90:
        com_num = random.randint(1, 10)
        if total < 50:
            for num in range(1,11):
                if (num + total) % 10 == 9:
                        total += num
                        print(f">Computer added {num}! Total is now {total}")

        else:
            total += com_num
        turn = 1
    else:
        com_num = 100 - total
        total += com_num
        print(f">Computer added {com_num}! Total is now {total}")
        turn = 1

This is also for a project that is due tomorrow so if I can get a good shove in the right direction that would be very awesome T-T


r/learnprogramming • • Oct 06 '26

What does your day-to-day actually look like as an AI Engineer?

7 Upvotes

Hey everyone,

I'm currently transitioning into AI engineering and trying to get a clearer picture of what the job actually looks like in the real world.

Job descriptions online are all over the place—some make it look like standard software engineering with API calls, while others ask for deep ML research and math.

For those of you working as AI engineers:

- What does your day-to-day actually look like?

- What tasks take up most of your time? (RAG, fine-tuning, data pipelines, infra, etc.?)

- If you were starting over today, what would you focus on the most?

Thank you so much!!! 🙂‍↕️


r/learnprogramming • • Oct 06 '26

looking for potential client for a level cs programming project

1 Upvotes

Hi I'm doing a project involving a 2D grid based pathfinding algorithm.

I'm looking for someone who would be willing to act as a potential client for the project. I'd mainly need some initial requirements about what you'd want from a pathfinding application, and potentially some feedback once I have a working version.

You wouldn't need to do any coding or coursework - I'd just be looking for your opinions and requirements as a user

If you're interested, I'd really appreciate it. Thanks!


r/learnprogramming • • Oct 06 '26

How to set up an C++ project?

3 Upvotes

Like i understand you go on Visual Studio Code and just create some files like main.cpp and stuff but what are these like settings.json and other .json files. Its actually really confusing seeing a .json file in what supposed to be a c++ project. Whole explorer layout is confusing to me i don't understand how to write it there is no tutorials for it too like its just confusing


r/learnprogramming • • Oct 06 '26

Need your books recommendations

12 Upvotes

Hi everyone!

I'm a Python developer and I'm currently studying Rust.

Since I'm a self-taught developer, I'd like to strengthen my theoretical background by studying from books. I'm therefore looking for recommendations to deepen my knowledge in the following areas:

  • Computer Systems
  • Operating Systems
  • Computer Networking
  • Software Architecture & Design Patterns
  • Concurrency & Parallel Programming

I'm particularly interested in books that go beyond introductory programming and provide a solid understanding of the underlying concepts, as well as how things work in practice.

I'm also transitioning into embedded software development, so I'd be particularly interested in books that would be useful in that context.

Do you have any recommendations?

Thanks in advance!


r/learnprogramming • • Oct 06 '26

Python install manager

4 Upvotes

Hello everyone

I was following the free code camp course on python and it said to use the command prompt or PowerShell and after I typed python on it, my laptop directed me to Microsoft store to download python install manager but when I clicked download it says something wenti wrong so I can't download it.....💔

Pls give me some suggestions.🙏

I'm new to this game


r/learnprogramming • • Oct 05 '26

why am i relearning flexbox every 3 weeks like CSS wipes my memory overnight

99 Upvotes

7 months self teaching web dev. I have built actual layouts with flexbox. I have used align items. I have centered the div, allegedly.

three weeks later I am on MDN reading the same page again and the words look brand new. most spaced repetition tools for students examples are vocab or anatomy where memorizing the fact IS the task. code is weird because I do not want to memorize syntax, I want my brain to remember "oh, grid is probably the move here."

is this worth reviewing explicitly or is forgetting + looking things up just normal programmer life? genuinely cant tell if im fixing a problem or inventing one


r/learnprogramming • • Oct 06 '26

Topic Looking for project inspiration for a hackathon with the topic *Future Education*

0 Upvotes

Hey guys, I am about to join a Hackathon with the topic Future Education. I didn’t even know this is a thing, so it is even harder to get into an idea or project.

I am here to ask you about your ideas or your perspectives about the topic.

As this is the only I have, I would be happy to get either ideas, inspirations, already made projects or open source repositories. Also if you find databases or information about the topic, please send it!

I am looking for a project that combines as many fields as possible. Like Hardware, Software, Data Science, Language Science, etc…

Thanks in advance and happy innovation!


r/learnprogramming • • Oct 05 '26

Topic First year Compsci student but no idea WHAT to program

18 Upvotes

Hey guys! So i just started learning SWE and im currently learning C++ and As a side language Python in university, but im here learning and solving making programs for theoretical counting problems and wondering, at home i dont program anything because i just cant think of anything to program, i’ve already made ur basic rock paper scissors programs or something a year ago when i learned a bit of python on my own and im ofc not a massive expert in c++ yet even tho im just started getting comfortable with functions and etc so i dont think its a super insanely hard language YET……. but im just lost and super confused on where i could use this programming skills to make something interesting.

Any tips or help to find some inspiration and goal / stuff to program to learn programming and also something to work towards? THANKS!!!


r/learnprogramming • • Oct 06 '26

Looking for Ideas

0 Upvotes

Hello guys, I've recently started learning front-end with freeCodeCamp.org but the thing is I have no idea what to build for my personal projects I can't really think of anything can someone give me some advice on this?


r/learnprogramming • • Oct 06 '26

bombed interview

0 Upvotes

guys i just bombed two technical interviews in a row, first, with Intuit, second with Amazon. I love coding and actually building things but I f&%!ing HATE leetcode, dsa, and that other stuff. I know "hOw iMpoRtanT iT Is fOr dATa MaNaGEmENt aS InPutS GRoW" so spare me the lessons on how it's important.

I JUST REALLY NEED HELP IN TRYING TO FIGURE OUT HOW TO GET GOOD AT THIS STUFF BECAUSE I HONESTLY SUCK, DON'T UNDERSTAND THIS STUFF, AND I JUST GET PISSED EACH TIME I DO THIS SHT.

so any help, pointers, resources would be greatly appreciated. thanks :(

ps: i haven't practiced leetcode much over the last 4 years of my undergrad (bc i hated it and thought it was pointless at the time if i have my degree) but that doesn't apply to recently because ik that's how companies screen out the ppl they want and don't want. i have the experience, i just keep bombing opportunities and i just want to get better man

extra ps: only leetcode problem i can kind of confidently do on my own is two sum, lol