Skip to content

Instantly share code, notes, and snippets.

View emanshireda's full-sized avatar

emanshireda

  • Joined Oct 4, 2025
View GitHub Profile
#include <iostream>
#include <vector>
using namespace std;
// Linear search method
int countLinear(int arr[], int size, int target) {
int count = 0;
for(int i = 0; i < size; i++) {
if(arr[i] == target) {
count++;
#include <iostream>
using namespace std;
class BankAccount {
string name;
int accountNumber;
double balance;
public:
BankAccount(string n, int accNum, double bal = 0) {