Skip to content

Instantly share code, notes, and snippets.

🙂
🙃

Gede Wahyu Adi Pramana wahyuoi

🙂
🙃
View GitHub Profile
View Solution.java
package WordLadder;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
class Solution {
public int ladderLength(String beginWord, String endWord, List<String> wordList) {
HashSet<String> c = new HashSet<>();
View Solution.java
public class Solution {
public int missingNumber(int[] nums) {
for (int num : nums) {
jump(num, nums);
}
for (int i = 0; i < nums.length; i++) {
if (nums[i] != -1) return i;
}
return nums.length;
}
You can’t perform that action at this time.