This file contains 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 <iostream> | |
#include <filament/Engine.h> | |
#include <filament/SwapChain.h> | |
#include <filament/Renderer.h> | |
#include <filament/Material.h> | |
#include <filament/MaterialInstance.h> | |
#include <filament/Camera.h> | |
#include <filament/Skybox.h> | |
#include <filament/View.h> | |
#include <filament/Scene.h> |
This file contains 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 <iostream> | |
int findSmallestIndex(int* arr, int index, int len) { | |
int smallestIdx = index; | |
int counter = index; | |
while (counter < len) | |
{ |
This file contains 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
struct Node { | |
int value; | |
Node* next; | |
}; | |
Node* insert(Node*& list, int value) { | |
Node* temp = nullptr; |
This file contains 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
struct Node { | |
int value; | |
Node* next; | |
}; | |
Node* insert(Node*& list, int value) { | |
Node* temp = nullptr; | |
Node* ptr = list; |
This file contains 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
void swap(int* a, int* b) { | |
int temp = *a; | |
*a = *b; | |
*b = temp; | |
} | |
void selectionSort(int arr[], int len) { | |
int smallest; | |
for (int i = 0; i < len; i++) { |
This file contains 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
void swap(int* a, int* b) { | |
int temp = *a; | |
*a = *b; | |
*b = temp; | |
} | |
struct Node { | |
int value; |
This file contains 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
void swap(int* a, int* b) { | |
int temp = *a; | |
*a = *b; | |
*b = temp; | |
} | |
int partition(int* arr, int low, int hi) { | |
int pivot = arr[hi]; |
This file contains 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
struct Node { | |
int value; | |
Node* next; | |
Node* prev; | |
}; | |
static Node* head = nullptr; | |
static Node* tail = nullptr; |
This file contains 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
struct Node | |
{ | |
Node* left; | |
Node* right; | |
int value; | |
}; | |
Node* insert(Node* tree, int value) { | |
if (tree == nullptr) { | |
Node* temp = new Node; |
This file contains 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 <iostream> | |
#include <skia/core/SkCanvas.h> | |
#include <skia/core/SkBitmap.h> | |
#include <skia/codec/SkCodec.h> | |
#include <skia/core/SkPath.h> | |
#include <skia/core/SkColor.h> | |
#include <skia/encode/SkPngEncoder.h> | |
#include <skia/core/SkStream.h> | |
#include <skia/core/SkImageEncoder.h> | |
#include <skia/core/SkData.h> |
OlderNewer