Skip to content
Svet Programiranja
SR|EN
Home
  • Guide: Web Programming
    • Guide: Web Fundamentals
      • How the Internet Works: IP Addresses, DNS and URLs
      • What the Web Is and How Web Applications Work
      • Creating web application
      • Creating web application
      • Web Application Security: The Basics
      • What Is an API and How Data Is Exchanged (JSON)
      • The HTTP Protocol: Requests, Responses, Status Codes
    • Guide: Creating Websites
      • HTML Forms: Input Fields, Buttons and Validation
      • HTML Lists and Tables: Lesson with Examples
      • HTML Text, Links and Images: Beginner Lesson
      • HTML: your first web page
      • CSS Flexbox and Grid: Page Layout for Beginners
      • CSS Responsive Design for Phones and Computers
      • CSS: colours, fonts and selectors
      • The CSS Box Model: Margin, Border and Padding
      • JavaScript DOM and Events: Interactive Pages
      • JavaScript: first steps
      • Bootstrap 5 Components: Navbar, Cards, Forms, Modal
      • Bootstrap 5: the grid and utility classes
      • Logo Creator Project: A Logo Generator in JavaScript
    • Create your logo - home
    • Creating a site to create a logo
    • main.css - HOME PAGE STYLE
    • Publishing a Website: GitHub Pages and Netlify
      • Guide: Creating Python Web Applications
        • Creating django web application-getting started
        • Django: project structure and settings.py
        • Creating a django web application - creating a home page
        • Deploying a Django App: Render and PythonAnywhere
        • Django: Saving and Deleting Logos with a ModelForm
      • Guide: ASP.NET Core
        • Introducing in asp.net core web applications
        • Servicing static websites using web servers
        • Creation of a sql web api service that reads data from the database
        • Creating a controller in asp.net web api application
        • USING THE WEB API SERVER FOR THE NEEDS OF ANOTHER WEB APPLICATION using GET, POST, PUT, DELETE calls via JAVASCRIPT
    • Guide: Algorithms
      • Guide: Mathematical Algorithms
      • Array of Fibonacci Numbers
      • Prime numbers and factoring in C and C++
      • The sieve of eratosthenes algorithm
      • The Euclidean Algorithm
      • The maximum sum of consecutive subarray
      • Kadane's algorithm
      • Fast Exponentiation Algorithm — Explanation and Examples
      • Number theory for competitions
      • Combinatorics: counting arrangements and choices
      • Guide: Data Structures
      • ​Basic data structures
      • Introduction to Structures and Unions
      • Introduction to Vectors
      • Linked Lists
      • The stack data structure
      • The queue data structure
      • Sets and maps in C++
      • Priority queue in C++
      • Disjoint Set Union (DSU) – Theory and Basic Operations
      • Fenwick tree (binary indexed tree)
      • Segment tree in C++
      • Guide: Sorting Algorithms
      • Sorting an array algorithm in C and C++
      • Merge sort algorithm in c and c++
      • Quick sort algorithm in c and c++
      • Sorting in C++: the sort function and comparison
      • Counting sort
      • Guide: Binary Search
      • Binary search of an array algorithm in C/C++
      • lower_bound and upper_bound in C++
      • Binary search on the answer
      • Guide: Recursion and Backtracking
      • Introduction to recursion
      • Factorial, power and GCD with recursion
      • Recursive algorithms
      • Tower of hanoi-algorithm
      • Backtracking algorithms
      • Permutations and combinations – recursion
      • Sudoku solver – backtracking
      • Guide: Dynamic Programming
        • Introduction to Dynamic Programming (DP)
        • Fibonacci Sequence – DP & Memoization
        • 0/1 Knapsack Problem – Dynamic Programming
        • Subset Sum — the subset sum problem and a detailed explanation with a DP solution
        • DP: Longest Common Subsequence (LCS) – Examples and Exercises
        • Grid DP – Dynamic Programming on a Grid
        • Coin Change Problem (Dynamic Programming)
        • Edit Distance (the distance between strings)
      • Guide: Algorithm Complexity
      • Algorithm complexity: how fast does a program run?
      • Replacing iteration with a formula
      • Formulas instead of loops: sums and counting
      • How to speed up a solution: typical optimisations
      • Guide: Graphs and Trees
        • Introduction to graphs
        • BFS and DFS – graph traversal
        • Shortest path in a maze – BFS
        • Topological sorting – Kahn and DFS
        • Cycle detection in graphs and DAGs
        • Longest path in a DAG – dynamic programming
        • Trees: terms, traversal, subtrees and diameter
        • Binary trees and the binary search tree
        • Dijkstra's algorithm: the shortest path
        • Bellman-Ford and Floyd-Warshall
        • Minimum spanning tree: Prim's algorithm
        • Minimum spanning tree: Kruskal's algorithm
        • DP on a DAG: number of paths and shortest path
        • Eulerian paths and cycles
        • Bridges and articulation points
        • Strongly connected components (SCC)
      • Guide: Advanced Algorithmic Techniques
      • The two pointers technique
      • Prefix sums and the difference array
      • Monotonic stack and queue
      • The sweep line method
      • Bitwise operations and subset masks
      • Divide and conquer – merge sort and more
      • Greedy Algorithms
    • Guide: Examples and Exercises
      • Guide: Basic Examples
        • Loops - examples (c, c++, java)
        • Nested loops - examples
        • Array- examples (c, c++, java)
        • Two dimensional arrays in c and cpp examples
        • Sorting arrays in c and_cpp_examples
        • Vectors and maps – examples in C++
      • Examples with data and arithmetic operators in JAVA
      • ​Functions in C/C++ - examples
      • Operators – example tasks (C, C++, Java)
      • Selection statements in c and cpp_examples
      • Strings in c and cpp examples
      • Guide: Algorithm Examples
      • Algorithms Examples
      • Backtracking and brute force – examples
      • Combinatorial problems – examples
      • Improving algorithm complexity – examples
      • Recursion algorithms- examples
      • Guide: Additional Examples with Solutions
      • additional examples from the loop topic
      • Additional exercise tasks in the field: branching in the program (selections statements)
      • Additional tasks from the topic - data and data types (c, c++, java)
      • Combined tasks: data, branching, loops
      • Guide: Informatics Competitions
        • Qualifications for district competitions in informatics
        • The preparation for qualifications for district competitions in informatics
        • Guide: Preparation for National Competitions and SIO
        • Interactive algorithms – tasks with queries
        • Preparation for the national competition in informatics
      • Lesson plan for primary school competitors
      • Removing elements from the string - instruction
      • The motion of the ball in a volleyball serve
      • Guide: Object-Oriented Programming Examples
      • Additional examples for exercise from the field "classes and objects"
      • An array of objects and ArrayList – Java
      • Classes and objects – basic Java tasks
      • Constructors, getters and setters – Java
      • Inheritance and interfaces – Java examples
      • Guide: Test and Assessment Exercises
      • Test: arrays – groups and a practice test
      • Test: branching (selection) in a program
      • Test: classes, objects and methods (Java)
      • Test: data, formulas and integer division
      • Test: functions in C++ – with solutions
      • Test: loops – groups and a practice test
      • Test: matrices (two-dimensional arrays)
      • Test: strings in C++ – with solutions
    • Quizzes
    • Guide: Artificial Intelligence
    • A model from Python on the ESP32: a smart classroom
    • A neural network in Python: recognizing digits
    • AI and the Internet of Things: sensors that decide
    • Data: the foundation of artificial intelligence
    • ESP32 collects data for artificial intelligence
    • Ethics and safety of artificial intelligence
    • Final project: artificial intelligence
    • History of artificial intelligence: from Turing to chatbots
    • How a machine learns: examples, training and testing
    • How chatbots work: predicting the next word
    • How to use AI tools: prompts, checking and privacy
    • Is artificial intelligence conscious?
    • micro:bit recognizes gestures: k-NN in MicroPython
    • Neural networks: an introduction for students
    • Project: a book recommendation system in Python
    • Python for AI: libraries, CSV data and charts
    • Ready-made AI models and APIs in Python
    • Review test: artificial intelligence
    • Rules or learning: the first AI program in Python
    • Teachable Machine: your first AI model in the browser
    • The future of artificial intelligence: jobs and school
    • The k-nearest neighbors algorithm (k-NN) in Python
    • The perceptron in Python: a neuron that learns
    • The Turing test and the imitation game – explained
    • TinyML: artificial intelligence on small boards
    • Types of artificial intelligence: from spam to chatbots
    • What is artificial intelligence? An introduction
    • Who makes artificial intelligence: people and jobs
  • Guide: Programming Languages
    • Guide: C
      • Basic elements of language c
      • Control(Selection) statements in c
      • Data in languages C
      • Introduction to c programming languages
      • Operators in C languages
      • ​Loops in programming language C and C++
      • Nested loops in c
      • Functions in the C programming language
      • Arrays in programming languages C and C++​
      • Dynamic arrays and matrices in C
      • Two-dimensional arrays - matrix in the programming language C and C++
      • Strings in c programming language
      • Pointers in C
      • Structures in C: struct, typedef and qsort
      • Working with files in C: fopen, fscanf, fprintf
    • Guide: C++
      • Control(Selection) statements in c++
      • Data in c++
      • Introduction to c and c++ programming languages
      • Operators in C++ languages
      • ​Loops in programming language C++
      • Nested loops in c++
      • Arrays in c++ language
      • Data dictionary - maps in c++
      • Two-dimensional arrays - matrices in c++ programming language
      • Two-dimensional dynamic arrays - matrices in c++ programming language
      • Vectors in c++
      • Functions in the c++ programming language
      • Pointers in c++
      • Strings in c++
      • C++ STL: pair, sort, set, map and priority_queue
      • Classes and objects in C++
      • Inheritance and polymorphism in C++
      • Templates in C++
    • Guide: C#
      • Arrays and strings in C#
      • Branching and loops in C#: if, switch, for, foreach
      • Data and operators in C#: types, input and output
      • Introduction to the C# programming language
      • Methods in C#: parameters, ref, out and recursion
      • Your first C# application: Visual Studio and console
      • An advanced C# example: train passengers
      • Classes and objects in C#: fields and properties
      • Collections in C#: List, Dictionary, HashSet, Stack
      • Exceptions in C#: try, catch, finally and throw
      • Inheritance, abstract classes and interfaces in C#
      • LINQ queries and lambda expressions in C#
    • Working with Databases
    • Windows Forms Applications
    • Guide: Java
      • Data in java programming language
      • JAVA - lessons
      • Java and arrays​
      • Loops in the programming language java
      • Operators in java
      • Selection statements in the Java programming language
      • Abstract classes and interfaces in JAVA
      • Class Inheritance in Java (Hierarchy of Classes)
      • Classes and objects in java
      • Objects and Methods in Java
      • Understanding Java as an Object-Oriented Language
    • Collections and Lambdas
    • Spring Boot
      • Animations in java
      • Drawing in a window
      • Events in java
      • Graphical user interface(gui)​ in java
      • Graphics in java. Example circular motion
      • Introduction to designing a Java application​
      • Simple graphic applications in java - examples
    • Physics Simulations
    • Guide: Python
      • Guide: Python Fundamentals
        • Python – installation and the first program
      • Variables and Data Types
      • Operators
      • Control Flow and Loops
      • Functions
      • Lists, Tuples, Sets and Dictionaries
      • Strings
      • Modules and Packages
      • Guide: MicroPython
      • Introduction
      • MicroPython Basics
      • micro:bit
      • MicroPython Communication
        • Installing py5 on Windows and Linux
        • micro:bit and py5: Serial Port Communication
      • Guide: Creative Programming with Python and Processing
        • py5 in Thonny – installation and the first sketch
      • 2D Graphics
      • Animations
        • Pong Game in Processing Python Mode: Mini Project
      • Python + Processing: Visualisation and Projects
      • Python + Processing: Creative and Competition Projects
      • Guide: Python for Web Development
        • Python web programming – introduction
      • Flask
        • A practical project – a Django web application
        • Creating a Django project and starting the server
        • Deploying a Django application to a server
        • Django forms and user registration
        • Django models and working with the database
        • Ideas for Python web projects with Flask or Django
        • Introduction to Django – a Python web framework
      • Guide: Python Projects
      • Beginner Python Projects
      • Python Projects with Data
      • 2D Animations and Games in Python
      • Web Applications in Python
      • Advanced Python Projects
    • Guide: Processing
      • Basics of processing using java programming language
      • Java and processing - introduction
      • Mikrobit and its use in processing applications
      • USE OF CLASS "PVector" IN EXAMPLES WITH PROCESSING AND JAVA
      • Vector operations-application for education
      • Analysis of the sliding of a body down an inclined plane - an example in processing
      • Animation of circular movement - an example in processing
      • Creating an animation of a projectile motion using java and processing
      • Example of body sliding down an inclined plane in processing
      • Processing example of projectile motion: football game
      • Introduction to 3d processing - examples
      • Movement of 3d objects in processing
    • Privacy Policy
    • Guide: micro:bit Programming
      • Radio communication between micro:bit devices
      • Arrays on the micro:bit: lists in MakeCode
      • Branching on the micro:bit: if, Logic and compass
      • Functions on the micro:bit: the Functions palette
      • Games on the micro:bit: the Game palette and sprites
      • Loops on the micro:bit: repeat, while, for, every
      • micro:bit pins: LED, potentiometer and servo motor
      • micro:bit projects and workshops
      • The micro:bit accelerometer: tilt and movement
      • Variables and the Math palette in micro:bit projects
    • Guide: Arduino and ESP32
      • Arduino and ESP32: 128x64 OLED display (SSD1306)
      • Arduino: LED, button and traffic light
      • Arduino: piezo buzzer and RGB LED
      • Automatic garden watering with Arduino
      • Controlling a DC motor with Arduino
      • Final test: Arduino and ESP32
      • Introduction to arduino
      • Introduction to Servo Motors and Their Use with Arduino Uno
      • ​Light level display (LDR sensor)
      • Measuring an unknown resistor using Arduino and Ohm's law
      • Relay and water pump with Arduino
      • Soil Moisture Measurement
      • Temperature sensor on arduino
      • Ultrasonic Distance Measurement with Arduino
      • Automatic garden watering with ESP32 and Wi-Fi
      • ESP32 and DHT11: temperature, humidity, weather station
      • ESP32 and MPU9250: accelerometer, gyroscope, compass
      • ESP32 and Servo Motor Sweep Example
      • ESP32 and the SG90 servo motor – exercise
      • ESP32: accelerometer and magnetometer
      • ESP32: controlling a water pump with a relay
      • ESP32: LED, button and PWM – first program
      • ESP32: light sensor and WS2812 LED ring
      • ESP32: servo and ultrasonic sensor – barrier and radar
      • Final project: smart classroom with the ESP32
      • Introduction to ESP32
      • Measuring light with an LDR sensor (ESP32)
      • Ultrasonic distance measurement (ESP32)
  • Guide: Resources
      • Artificial intelligence in learning programming
      • Programming trends
      • The most popular programming languages today
    • Java distance learning
      • Internet of things
    • Links
    • Programming Tools: Editors, Compilers, Online IDEs
Contact

{ }Svet Programiranja

Programming tutorials, examples and exercises in C, C++, Java and Python – for students, teachers and competition preparation.

while (learning) { improve(); }

Languages

  • C
  • C++
  • Java
  • Python
  • Processing
  • Arduino & ESP32

Learning

  • Algorithms
  • Mathematical algorithms
  • Practical examples
  • Introduction to web
  • micro:bit projects

Competitions

  • Competitions guide
  • District competitions
  • National competitions

Website

  • Home
  • Contact
  • Srpska verzija
© 2026 Svet Programiranja · All rights reserved
Privacy PolicyTerms of UseBack to top ↑

Podešavanja kolačića

Koristimo kolačiće da bismo vam pružili najbolje moguće iskustvo. Takođe nam omogućavaju da analiziramo ponašanje korisnika kako bismo stalno poboljšavali veb lokaciju za vas.