This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
const properties = [ | |
{ | |
id: 1, | |
title: "Modern Downtown Apartment", | |
location: "New York, NY", | |
type: "apartment", | |
price: 150, | |
rating: 4.8, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<header class="header"> | |
<nav class="nav"> | |
<div class="logo">StayFinder</div> | |
<div class="search-bar"> | |
<input type="text" class="search-input" placeholder="Where are you going?" id="searchLocation"> | |
<input type="date" class="search-input" id="checkIn"> | |
<input type="date" class="search-input" id="checkOut"> | |
<input type="number" class="search-input" placeholder="Guests" min="1" max="12" id="guests"> | |
<button class="search-btn" onclick="searchProperties()">🔍</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
body { | |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | |
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define MAX_ANIMALS 100 | |
void generatePermutations(char* animals, int size, char result[][MAX_ANIMALS], int *count); | |
void swap(char*a, char *b); | |
void permute(char *arr, int start, int end, char result[][MAX_ANIMALS], int* count, int size); | |
void writeResultsToFile() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define MAX_VERTICES 100 | |
#define MAX_QUEUE_SIZE 100 | |
//structura pentru elementele din coada | |
typedef struct { | |
int vertex; | |
int distance; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
test case 1: | |
4 | |
0 0 0 1 | |
0 0 1 0 | |
0 1 0 0 | |
1 0 0 0 | |
test case 2: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Algoritmul pentru verificarea grafului asimetric | |
Conceptul de baza: | |
Un graf orientat este asimetric daca nu exista perechi simetrice de muchii. Adica, daca | |
exista o muchie de la nodul A la nodul B , nu trebuie sa existe o muchie de la nodul B la nodul A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
typedef struct { | |
int x1, | |
x2; | |
} Domino; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <malloc.h> | |
void DFSHelper(int **graph, int node, int n, int *visited, int * connectedNodes, int *count) { | |
visited[ node ] = 1; | |
connectedNodes[ (*count)++ ] = node; | |
for(int neighbor = 0; neighbor < n; neighbor++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <malloc.h> | |
int sumDivisibleRecursiveAlt(int **matrix, int k, int index, int n) { | |
if(index >= n * n) { | |
return 0; | |
} |