Posts

Showing posts from July, 2026

PROBLEM SOLVING USING C

Image
PROBLEM SOLVING USING C 📘 Unit 1: Introduction to Computer Programming What is Computer Programming? A Computer Program is a set of instructions written in a programming language that tells a computer how to perform a specific task. Examples Calculator Application ATM Software Mobile Apps Online Shopping Websites Student Management System 💾 Types of Software What is Software? Software is a collection of programs and instructions that tells a computer what to do. Without software, a computer cannot perform any task. Software is mainly divided into two types: System Software Application Software 1. System Software System software controls and manages computer hardware and provides a platform for running applications. Functions: Controls hardware Manages memory and files Runs applications Provides security Handles input/output devices Examples: Windows Linux macOS Device Drivers Utility Software 2. Application Software A...

Data Structure Algorithms

DATA STRUCTURES & ALGORITHMS Introduction to DSA & Arrays What is DSA? Data Structures and Algorithms (DSA) help you organize data and solve problems efficiently. Data Structure: How data is stored (Arrays, Linked List, Trees) Algorithm: Step-by-step solution to a problem Why Learn DSA? Improves problem-solving skills Helps write faster code Important for interviews Used in real-world apps Time & Space Complexity Time Complexity Complexity Example Meaning O(1) Access element Constant O(n) Loop Linear O(n²) Nested loops Quadratic O(log n) Binary Search Logarithmic Space Complexity arr = [1,2,3,4] # O(n) Arrays in Python 1D Array arr = [10, 20, 30, 40] 2D Array matrix = [ [1,2], [3,4] ] Operations Traversal for i in arr: print(i) Insertion arr.append(40) Deletion arr.remove(20) Search if 30 in arr: print("Found") Strings in Python What is String? name = "Prem...