We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Mohit and Swiggy
- Discussions
Mohit and Swiggy
Mohit and Swiggy
Sort by
recency
|
6 Discussions
|
Please Login in order to post a comment
java solution using kruskal is giving TLE which author posted in C++. How does that supposed to work? Or should I post this question on leetcode who can create better test cases and better runtime benchmark?
K's MST algo is giving timeouts. Anyone found a way to solve this? Any hints will be appreciated.
huy peeps!!! i have encountered a problem.how to travel back to junction 0 once we have explored all the junctions...???please give the code in C or C++..
import math import os import random import re import sys import numpy as np
def solve(n, roads): # Write your code here a = np.array(roads) b = a[:,n] c = np.sum(b)
if name == 'main':
## fptr = open(os.environ['OUTPUT_PATH'], 'w')
**## fptr.write(str(result) + '\n')
#
fptr.close()**
it tsp travelling saleman prblm