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
| import time | |
| import torch | |
| import torch.nn as nn | |
| from torch.utils.data import DataLoader, Dataset | |
| from transformers import AutoModelForCausalLM | |
| from torch.optim import AdamW | |
| # --- Configuration for Qwen3-1.7B (Proxy) --- | |
| # Based on the specs gathered: 1.7B params, 28 layers, 16 heads, 2048 hidden size. |
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 <stack> | |
| class Graph | |
| { | |
| private: | |
| int V; | |
| Adjacency *adj; | |
| public: | |
| Graph(int V) | |
| { |
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> | |
| using namespace std; | |
| template <class T> | |
| class AQueue { | |
| private: | |
| int front; | |
| int rear; | |
| int maxSize; | |
| int size; |
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 <string.h> | |
| #include <sstream> | |
| using namespace std; | |
| template <class T> | |
| class AStack { | |
| private: | |
| T * arr; | |
| int size; |
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
| import 'package:flutter/material.dart'; | |
| class HeaderWithSearchBox extends StatelessWidget { | |
| const HeaderWithSearchBox({ | |
| Key key, | |
| @required this.size, | |
| }) : super(key: key); | |
| final Size size; | |
| @override | |
| Widget build(BuildContext context) { |
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
| void setup() { | |
| // put your setup code here, to run once: | |
| Serial.begin(9600); | |
| } | |
| void loop() { | |
| // put your main code here, to run repeatedly: | |
| int number, res; | |
| String c; | |
| if (Serial.available()) |
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
| #define LEFT_FORWARD 11 | |
| #define LEFT_BACKWARD 8 | |
| #define LEFT_SPEED 9 | |
| #define RIGHT_FORWARD 13 | |
| #define RIGHT_BACKWARD 12 | |
| #define RIGHT_SPEED 10 | |
| void setup() { | |
| pinMode(LEFT_FORWARD, OUTPUT); | |
| pinMode(LEFT_BACKWARD, OUTPUT); |
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 <string.h> | |
| #include <iomanip> | |
| using namespace std; | |
| const int MAX = 100; | |
| struct student | |
| { |
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 <fstream> | |
| using namespace std; | |
| bool checkLuhn(const string& cardNo) | |
| { | |
| int nDigits = cardNo.length(); | |
| int nSum = 0, isSecond = false; |