Code Monkey home page Code Monkey logo

Comments (3)

scozv avatar scozv commented on June 26, 2024

From Algo.js of Google Code on October 16, 2013 09:44:25

still failed in following input in revision da291ac

8
1 2
2 3
3 1
3 4
5 4
6 4
8 6
6 7
7 8

Answer: 3,3,1,1,0, Failed in T

14
1 9
1 7
2 6
3 6
4 1
4 6
14 2
6 3
7 9
9 4
3 1

Answer: 6,1,1,0,0, Failed in T

11
1 4
4 3
3 1
4 6
6 7
6 10
10 11
11 10
7 6
2 5
5 2
5 7
5 8
8 9
7 11

Answer: 3,2,2,2,1 the 6th value is also a 1, 7th is 0, Failed in T

// http://algs4.cs.princeton.edu/42directed/mediumDG.txt 
info = line.split(' ')
    .filter(function(x){return x.length;})
    .map(function(x){
        return (+(x.replace(/^\s\s*/, '').replace(/\s\s*$/, '')));
    });
    gh.__pushEdge__(info[0]+1, info[1]+1);

Failed in T

Status: Started

from algo-js.

scozv avatar scozv commented on June 26, 2024

From Algo.js of Google Code on October 17, 2013 02:50:04

improved on revision 87edee2 to pass test above except mediumDG.txt and following test:

12
1 2
2 3
2 4
2 5
3 6
4 5
4 7
5 2
5 6
5 7
6 3
6 8
7 8
7 10
8 7
9 7
10 9
10 11
11 12
12 10

from algo-js.

scozv avatar scozv commented on June 26, 2024

From Algo.js of Google Code on October 18, 2013 02:20:20

proudly fixed in revision 4542b93 , and verified to pass the test of a graph containing over 870000 vertex.

Status: Fixed

from algo-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.