This is a repository for the codes that I write for my blog posts at http://kartikkukreja.wordpress.com.
This contents of this project are licensed under the MIT license.
This is a repository for the codes that I write for my blog posts at http://kartikkukreja.wordpress.com.
License: MIT License
This is a repository for the codes that I write for my blog posts at http://kartikkukreja.wordpress.com.
This contents of this project are licensed under the MIT license.
I cant create NFA.txt format that matchs please give me an example thank you
In spoj_GSS1.cpp at line 56, shouldn't int left = 2*stIndex+1
and int right = 2*stIndex+2
? Since you are following a zero based indexing system, your calculation would not leave space for the root of the tree.
%d is not correct . It should be %lu
I guess there is a bug in the implementation of Graham's Scan algorithm.
Try the following testcase:
Input: { 0, 0 }, { 1, 1 }, { 2, 2 }, { 1, 4 }
output: { 1, 4 }, { 2, 2 }, { 1, 1 }, { 0, 0 }
correct output: { 1, 4 }, { 2, 2 }, { 0, 0 }
I believe the problem is in line 70: points[1] is not necessarily a vertex of convex hull if points[1] and points[2] have the same direction.
Btw: thank you for your wonderful blogs and readable code!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.