Welcome to my BCA Student Hub! I share detailed notes, coding practice problems, project ideas, and hand-picked resources to help fellow BCA students learn, build, and grow together. Let's code our way to success! ๐
A passionate tech enthusiast on a learning journey
Comprehensive notes for all BCA semesters โ click a subject, then click any topic to open detailed notes, code examples, and key points.
Hand-picked websites, YouTube channels, books, tools, and practice platforms for every BCA student.
Showing 24 of 24 resources
Essential coding problems with solutions in C, Python, and JavaScript. Master the basics before moving to advanced topics.
/* Hello World in C */ #include <stdio.h> int main() { printf("Hello, World!\n"); return 0; }
# Hello World in Python print("Hello, World!")
// Hello World in JavaScript console.log("Hello, World!");
/* Reverse String in C */ #include <stdio.h> #include <string.h> void reverseString(char *str) { int n = strlen(str); for (int i = 0; i < n/2; i++) { char temp = str[i]; str[i] = str[n-1-i]; str[n-1-i] = temp; } } int main() { char str[] = "hello"; reverseString(str); printf("%s\n", str); // olleh return 0; }
# Reverse String in Python def reverse_string(s): return s[::-1] print(reverse_string("hello")) # olleh
// Reverse String in JavaScript function reverseString(s) { return s.split('').reverse().join(''); } console.log(reverseString("hello")); // olleh
/* Check Prime in C */ #include <stdio.h> #include <math.h> int isPrime(int n) { if (n <= 1) return 0; for (int i = 2; i <= sqrt(n); i++) if (n % i == 0) return 0; return 1; } int main() { printf("%d\n", isPrime(17)); // 1 (true) printf("%d\n", isPrime(4)); // 0 (false) return 0; }
# Check Prime in Python import math def is_prime(n): if n <= 1: return False for i in range(2, int(math.sqrt(n)) + 1): if n % i == 0: return False return True print(is_prime(17)) # True print(is_prime(4)) # False
// Check Prime in JavaScript function isPrime(n) { if (n <= 1) return false; for (let i = 2; i <= Math.sqrt(n); i++) if (n % i === 0) return false; return true; } console.log(isPrime(17)); // true console.log(isPrime(4)); // false
/* Fibonacci Series in C */ #include <stdio.h> void fibonacci(int n) { int a = 0, b = 1; for (int i = 0; i < n; i++) { printf("%d ", a); int c = a + b; a = b; b = c; } } int main() { fibonacci(10); return 0; }
# Fibonacci in Python def fibonacci(n): a, b = 0, 1 for _ in range(n): print(a, end=" ") a, b = b, a + b fibonacci(10) # 0 1 1 2 3 5 8 13 21 34
// Fibonacci in JavaScript function fibonacci(n) { let [a, b] = [0, 1]; for (let i = 0; i < n; i++) { process.stdout.write(a + " "); [a, b] = [b, a + b]; } } fibonacci(10); // 0 1 1 2 3 5 8 13 21 34
/* Binary Search in C */ #include <stdio.h> int binarySearch(int arr[], int n, int target) { int low = 0, high = n - 1; while (low <= high) { int mid = low + (high - low) / 2; if (arr[mid] == target) return mid; else if (arr[mid] < target) low = mid + 1; else high = mid - 1; } return -1; } int main() { int arr[] = {1,3,5,7,9,11}; printf("%d\n", binarySearch(arr, 6, 7)); // 3 return 0; }
# Binary Search in Python def binary_search(arr, target): low, high = 0, len(arr) - 1 while low <= high: mid = (low + high) // 2 if arr[mid] == target: return mid elif arr[mid] < target: low = mid + 1 else: high = mid - 1 return -1 print(binary_search([1,3,5,7,9,11], 7)) # 3
// Binary Search in JavaScript function binarySearch(arr, target) { let [low, high] = [0, arr.length - 1]; while (low <= high) { const mid = (low + high) >> 1; if (arr[mid] === target) return mid; arr[mid] < target ? low = mid + 1 : high = mid - 1; } return -1; } console.log(binarySearch([1,3,5,7,9,11], 7)); // 3
/* Bubble Sort in C */ #include <stdio.h> void bubbleSort(int arr[], int n) { for (int i = 0; i < n-1; i++) { int swapped = 0; for (int j = 0; j < n-i-1; j++) { if (arr[j] > arr[j+1]) { int t = arr[j]; arr[j] = arr[j+1]; arr[j+1] = t; swapped = 1; } } if (!swapped) break; } }
# Bubble Sort in Python def bubble_sort(arr): n = len(arr) for i in range(n): swapped = False for j in range(0, n-i-1): if arr[j] > arr[j+1]: arr[j], arr[j+1] = arr[j+1], arr[j] swapped = True if not swapped: break return arr print(bubble_sort([64,34,25,12,22,11])) # [11, 12, 22, 25, 34, 64]
// Bubble Sort in JavaScript function bubbleSort(arr) { const n = arr.length; for (let i = 0; i < n; i++) { let swapped = false; for (let j = 0; j < n-i-1; j++) { if (arr[j] > arr[j+1]) { [arr[j], arr[j+1]] = [arr[j+1], arr[j]]; swapped = true; } } if (!swapped) break; } return arr; } console.log(bubbleSort([64,34,25,12])); // [12, 25, 34, 64]
/* Linked List in C */ #include <stdio.h> #include <stdlib.h> struct Node { int data; struct Node* next; }; void insert(struct Node** head, int val) { struct Node* newNode = (struct Node*)malloc(sizeof(struct Node)); newNode->data = val; newNode->next = NULL; if (*head == NULL) { *head = newNode; return; } struct Node* temp = *head; while (temp->next) temp = temp->next; temp->next = newNode; } void display(struct Node* head) { while (head) { printf("%d โ ", head->data); head = head->next; } printf("NULL\n"); } int main() { struct Node* head = NULL; insert(&head, 10); insert(&head, 20); insert(&head, 30); display(head); return 0; }
# Linked List in Python class Node: def __init__(self, data): self.data = data self.next = None class LinkedList: def __init__(self): self.head = None def insert(self, val): node = Node(val) if not self.head: self.head = node; return cur = self.head while cur.next: cur = cur.next cur.next = node def display(self): cur = self.head while cur: print(cur.data, end=" โ ") cur = cur.next print("NULL") ll = LinkedList() ll.insert(10); ll.insert(20); ll.insert(30) ll.display() # 10 โ 20 โ 30 โ NULL
/* Stack using Linked List in C */ #include <stdio.h> #include <stdlib.h> struct Node { int data; struct Node* next; }; struct Node* top = NULL; void push(int val) { struct Node* n = (struct Node*)malloc(sizeof(struct Node)); n->data = val; n->next = top; top = n; } int pop() { if(!top) { printf("Underflow\n"); return -1; } int v = top->data; struct Node* t = top; top = top->next; free(t); return v; } int peek() { return top ? top->data : -1; } int main() { push(10); push(20); push(30); printf("Top: %d\n", peek()); // 30 printf("Pop: %d\n", pop()); // 30 return 0; }
# Stack using Linked List in Python class Stack: def __init__(self): self._data = [] def push(self, val): self._data.append(val) print(f"Pushed: {val}") def pop(self): if not self._data: print("Stack Underflow"); return None val = self._data.pop() print(f"Popped: {val}"); return val def peek(self): return self._data[-1] if self._data else None s = Stack() s.push(10); s.push(20); s.push(30) print("Top:", s.peek()) # 30 s.pop() # Popped: 30
Curated project ideas for BCA students โ from beginner to advanced, with features, tech stack, and step-by-step guidance.
Have a question, collaboration idea, or just want to say hi? I'd love to hear from you!
Currently looking for internships, freelance projects, and open-source collaborations!