Click here to Skip to main content
16,017,881 members

Comments by karma2447 (Top 5 by date)

karma2447 13-Jul-20 1:01am View    
Your idea is correct,
1. In case there is no memory bound, and you already know the number of the island, so you can create array of that length. arrayThatStoresOutDegree[#islands]
2. When bounded by space, add island to list of vertex, meaning your Graph will look and if present just increment outbounds connections.
Best way to do is, Map<#island, ouboundList>.

Also, to answer your question, use add method, instead
public void addEgde(int u, int v) {
adjList[u].add(v);
}
karma2447 13-Jul-20 0:23am View    
https://www.youtube.com/watch?v=fEmWUj708y0
karma2447 13-Jul-20 0:16am View    
Well, your code is extremely complex to comprehend, add comments also, Please break it down and point to location where issue is.
karma2447 6-Jul-20 1:03am View    
Check permissions on your folder {place where jar is or file info-store is}.
if jar is not able to write new user info to the file that jar accesses as info-store, then you'll see this.

Use sql-lite or there are tons of ways to store data.
karma2447 6-Jul-20 0:54am View    
Quote:In prior versions, using .loc[list-of-labels] would work as long as at least 1 of the keys was found (otherwise it would raise a KeyError). This behavior is deprecated and will show a warning message pointing to this section. The recommended alternative is to use .reindex().

Please refer : Indexing and selecting data — pandas 1.0.5 documentation[^]


Use labels, or reindex with labels.
What it means is, data.reindex(['Date', 'Open', 'High', 'Low', 'Close']])
Not 100% sure though, don't know what data looks like.