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 "iostream" | |
#include "cmath" | |
class NumberSystem | |
{ | |
public: |
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
/* | |
* Binary Search Tree (BST) Concepts and Operations | |
* | |
* A Binary Search Tree (BST) is a binary tree where: | |
* 1. The left subtree of a node contains only nodes with keys less than the node's key. | |
* 2. The right subtree of a node contains only nodes with keys greater than the node's key. | |
* 3. Both the left and right subtrees must also be binary search trees. | |
* | |
* Operations on Binary Search Tree: | |
* |
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
/** | |
* Dequeue: | |
* Dequeue is also known as Double Ended Queue. | |
* As the name suggests double ended, | |
* it means that an element can be inserted or removed from both ends of the queue, unlike the other queues | |
* in which it can be done only from one end. Because of this property, it may not obey the First In First Out property. | |
* | |
* implement using doubly linked list | |
* | |
* Operation Description Time Complexity |
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 "iostream" | |
#include "memory" | |
struct StackHolder { | |
std::string data; | |
}; | |
class Stack { | |
private: | |
int idx = -1; |
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
/** | |
* Circular Double Linked List | |
* | |
*/ | |
#include "iostream" | |
using namespace std; | |
struct Node { |
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
https://picsum.photos/400/300 | |
https://dummyimage.com/250/ffffff/000000 | |
https://dummyimage.com/250x300 | |
https://dummyimage.com/300.png/09f/fff | |
https://dummyimage.com/ |
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 <vector> | |
#include <algorithm> | |
vector<int> findTopThree(vector<int>& score) { | |
vector<int> topThree; | |
int f = INT_MIN, s = INT_MIN, t = INT_MIN; | |
for (int i = 0; i < score.size(); i++) { | |
if (score[i] > f) { |
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
docker run --rm -v $(pwd):/app -w /app php php artisan serve | |
docker run --rm -v $(pwd):/app composer install | |
https://docs.docker.com/engine/reference/commandline/container_ls/ | |
docker container ls --all | |
docker rm -vf $(docker ps -aq) | |
docker kill $(docker ps -q) | |
docker kill <container_id> | |
docker rm <container_id_or_name> |
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
mysql -u root -p laravel_and_vite < /home/darkside/Downloads/world.sql |
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
[Desktop Entry] | |
Version=2021.2.2 | |
Name=PHP Storm | |
Comment=PHP Programing Web IDE Text Editor | |
Keywords=Programming;IDE;Web;Text;Editor | |
Exec=/opt/php-storm-212.5284.49/bin/phpstorm.sh | |
Terminal=false | |
Type=Application | |
Icon=/opt/php-storm-212.5284.49/bin/phpstorm.svg | |
Categories=JetBrain;Programming;WebIDE; |