We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8cc6eb commit f92662aCopy full SHA for f92662a
src/main/java/com/fishercoder/solutions/_1377.java
@@ -47,6 +47,7 @@
47
* */
48
public class _1377 {
49
public static class Solution1 {
50
+ /**credit: https://leetcode.com/problems/frog-position-after-t-seconds/discuss/532505/Java-Straightforward-BFS-Clean-code-O(N)*/
51
public double frogPosition(int n, int[][] edges, int t, int target) {
52
List<Integer>[] graph = new ArrayList[n];
53
for (int i = 0; i < n; i++) {
0 commit comments