Vikas Shukla Profile
Vikas Shukla

@vik_7_

Followers
1
Following
101
Media
160
Statuses
161

Joined November 2024
Don't wanna be here? Send us removal request.
@vik_7_
Vikas Shukla
3 months
πŸš€ Day [160] of #gfg160dayschallenge @geeksforgeeks.πŸ† Problem: Unique Number II.πŸ’‘ Key Takeaway: Use XOR Partitioning to efficiently find two non-repeating numbers by isolating differing bits β€” achieves O(n) time and O(1) space. #DSA #problemsolving
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
3 months
πŸš€ Day [159] of #gfg160dayschallenge @geeksforgeeks.πŸ† Problem: Unique Number I.πŸ’‘ Key Takeaway: Leverage the XOR property β€” a^a = 0 and a^0 = a β€” to find the single number in O(n) time and O(1) space. #BitManipulation #XORTrick #DSA #UniqueElement
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
3 months
πŸš€ Day [158] of #gfg160dayschallenge @geeksforgeeks.πŸ† Problem: Missing in Array.πŸ’‘ Key Takeaway: Use sum formula or XOR technique to efficiently find the missing number in O(n) time and O(1) space. #Arrays #Maths #XORTrick #CodingChallenge #MissingNumber
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
3 months
πŸš€ Day [157] of #gfg160dayschallenge @geeksforgeeks.πŸ† Problem: Find Only Repetitive Element from 1 to n-1.πŸ’‘ Key Takeaway: Use Floyd’s Cycle Detection or frequency tracking to find the only repeated number in linear time without extra space. #Array #CycleDetection
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
3 months
πŸš€ Day [156] of #gfg160dayschallenge @geeksforgeeks.πŸ† Problem: Maximum XOR of Two Numbers in an Array.πŸ’‘ Key Takeaway: Using bit manipulation and Trie optimization, we efficiently compute the max XOR of any pair in O(n). #BitManipulation #Trie #XOR #ArrayProblems
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
3 months
πŸš€ Day [155] of #gfg160dayschallenge @geeksforgeeks.πŸ† Problem: Implement Trie.πŸ’‘ Key Takeaway: Mastering the Trie data structure enables ultra-fast prefix lookups, making it perfect for autocomplete, dictionary, and search engine implementations. #Trie #PrefixTree #StringSearch
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
3 months
πŸš€ Day [154] of #gfg160dayschallenge @geeksforgeeks.πŸ† Problem: Minimum Weight Cycle.πŸ’‘ Key Takeaway: Use modified Floyd Warshall to detect and track cycles during path updates. Efficient for finding the lightest cycle in dense graphs. #GraphAlgorithms #FloydWarshall #gfg160
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
3 months
πŸš€ Day [153] of #gfg160dayschallenge @geeksforgeeks.πŸ† Problem: Floyd Warshall.πŸ’‘ Key Takeaway: Update all-pairs shortest paths using intermediate nodes. Handles negative weights efficiently without negative cycles. In-place dynamic programming solution. #FloydWarshall #Graph
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
3 months
πŸš€ Day [152] of #gfg160dayschallenge @geeksforgeeks.πŸ† Problem: Bellman-Ford.πŸ’‘ Key Takeaway: Relax all edges V-1 times to compute shortest paths. Detect negative cycles in one more pass. Handles negative weights safely. #BellmanFord #ShortestPath #GraphAlgorithm #NegativeCycle
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
3 months
πŸš€ Day [151] of #gfg160dayschallenge @geeksforgeeks.πŸ† Problem: Alien Dictionary.πŸ’‘ Key Takeaway: Build a graph of character precedence using adjacent word comparisons, then apply topological sort to find valid order. #TopologicalSort #Graph #AlienDictionary #LexicographicOrder
Tweet media one
0
0
3
@vik_7_
Vikas Shukla
3 months
πŸš€ Day [150] of #gfg160dayschallenge @geeksforgeeks.πŸ† Problem: Clone an Undirected Graph.πŸ’‘ Key Takeaway: Use DFS or BFS with a hash map to track original-to-clone mappings, ensuring deep copies of all connected nodes. #GraphClone #DFS #BFS #HashMap #GFGChallenge
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
3 months
πŸš€ Day [149] of #gfg160dayschallenge @geeksforgeeks.πŸ† Problem: Flood fill Algorithm.πŸ’‘ Key Takeaway: Perform DFS/BFS from the start pixel, updating connected pixels with the same original color in four directions. #FloodFill #DFS #BFS #GraphTraversal #GFGChallenge
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
3 months
πŸš€ Day [148] of #gfg160dayschallenge @geeksforgeeks.πŸ† Problem: Dijkstra Algorithm.πŸ’‘ Key Takeaway: Use a priority queue to pick the minimum distance vertex and update neighboring vertices’ shortest distances without revisiting nodes. #Dijkstra #ShortestPath #PriorityQueue #DSA
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
4 months
πŸš€ Day [147] of #gfg160dayschallenge @geeksforgeeks.πŸ† Problem: Minimum Cost to Connect All Houses.πŸ’‘ Key Takeaway: Model as a graph and use Prim’s algorithm with Manhattan distances to find the minimum spanning tree and connect all houses. #Prim #MST #ManhattanDistance #Graphs
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
4 months
πŸš€ Day [146] of #gfg160dayschallenge @geeksforgeeks.πŸ† Problem: Articulation Point - II.πŸ’‘ Key Takeaway: Use DFS with discovery and low times to find articulation points whose removal increases connected components in a graph. #Graph #DFS #ArticulationPoint #Tarjan #GFGChallenge
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
4 months
πŸ“Œ Day [145] of #gfg160dayschallenge @geeksforgeeks .🧩 Problem: Bridge Edge in an Undirected Graph.πŸ’‘ Key Idea: Use DFS to track discovery and low times. An edge (u,v) is a bridge if low[v] > disc[u], meaning no alternate path exists. #Graph #BridgeEdge #DFS #Tarjan #DSA
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
4 months
πŸ“Œ Day [144] of #gfg160dayschallenge.🧩 Problem: Cycle Detection in a Directed Graph.πŸ’‘ Key Idea: Use DFS with recursion stack or Kahn’s Algorithm to detect cycles. If a node is revisited while still in the recursion stack, a cycle exists. #Graph #CycleDetection #DirectedGraph
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
4 months
πŸ“Œ Day [143] of #gfg160dayschallenge.🧩 Problem: Topological Sort of a DAG.πŸ’‘ Key Idea: Use Kahn’s Algorithm (BFS) or DFS-based approach to order nodes such that for each edge u β†’ v, u comes before v. πŸ“Ž Tip: Topo sort only works on DAGs β€” no cycles allowed!.#Graph #DSA
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
4 months
🌊 Day [142] of #gfg160dayschallenge @geeksforgeeks.🏝️ Problem: Find the Number of Islands.πŸ’‘ Key Takeaway: Use DFS/BFS to explore connected 'L's in all 8 directions. Count how many times you initiate a new DFS/BFS to identify total islands. #Graph #DFS #IslandCounter
Tweet media one
0
0
0
@vik_7_
Vikas Shukla
4 months
πŸš€ Day [141] of #gfg160dayschallenge @geeksforgeeks.πŸ”„ Problem: Undirected Graph Cycle Detection.πŸ’‘ Key Takeaway: Use DFS with parent tracking or BFS with visited set. If a visited node is reached again without backtracking through parent, a cycle exists. #Graph #CycleDetection
Tweet media one
0
0
0