Skip to content

Instantly share code, notes, and snippets.

View rkt2spc's full-sized avatar
🏎️

Tuan rkt2spc

🏎️
View GitHub Profile
@rkt2spc
rkt2spc / Answer.html
Last active March 28, 2016 14:04
Answer
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<link rel="stylesheet" href="css/normalize.css"/>
<link rel="stylesheet" href="css/bootstrap.min.css"/>
</head>
<body>
<div class="container-fluid">
@rkt2spc
rkt2spc / NMTC_ChienThuatTruyenTin
Last active March 14, 2016 14:27
Chiến lược vòng Nối Mạng Toàn Cầu
Truyền tin dạng DEC:
...
Truyền tin dạng Binary:
...
@rkt2spc
rkt2spc / Decoder.h
Last active March 21, 2016 08:35
Encoder và Decoder cho vòng thi Nối Mạng Toàn Cầu cuộc thi Thách Thức 2016
#pragma once
#include <string>
#include <vector>
#include <math.h>
using namespace std;
class Decoder
{
public:
char K = 0;
@rkt2spc
rkt2spc / PrintTriangle.cpp
Created March 12, 2016 13:27
Print out n-layered number-triangle
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int n = 15;
for (int i = 1; i <= n; i++)
{
@rkt2spc
rkt2spc / MedianPoint2D.cpp
Last active December 8, 2017 13:31
Find the point closest to all other points in a given points-collection O(NlogN)
#include <vector>
#include <algorithm>
#include "Point2D.h"
using namespace std;
Point2D FindMedianPoint(vector<Point2D> points)
{
#pragma region Calculating Horizontal Cost
//===========================================================================================
//O(NLogN) Sort - sort horizontal x-coor increasing