Coding & Skills
369 articles in this topic

Minimum Spanning Trees: Kruskal, Prim, Cut Property, and Worked Examples for GATE CS
Build MST intuition from first principles, trace Kruskal and Prim on the same graph, count tied MSTs, and avoid common GATE CS traps.

Rust Tutorial for Beginners: Ownership, Types and a Text Counter
Build a small Rust text analyser and trace what the compiler sees. The example connects basic types and control flow to moves, borrows and owned results.

C++ Encapsulation and Class Invariants: Build Objects That Stay Valid
Learn to design a C++ BankAccount that cannot be created or changed into an invalid state. Trace constructor checks, guarded operations, representation leaks, and boundary tests.

Alpha-Beta Pruning Explained: Bounds, Cutoffs and a Complete Game-Tree Trace
A complete left-to-right alpha-beta trace shows how MAX and MIN update bounds, where cutoffs happen, and why move ordering changes the work without changing the minimax result.

Variables and Data Types in C: Declarations, Conversions and Runnable Examples
Learn how C types control stored values, expressions and I/O. Compile a complete marks program, trace its conversions and repair common type mistakes.

Error Handling in JavaScript: try, catch, throw and Async Examples
Learn where JavaScript errors cross a boundary, then handle parsing, validation, timers and failed async work through one runnable inventory example.

Methods in Java: Syntax, Parameters, Return Values and Examples
Build and trace a complete Java score program, then learn how arguments, return types, void methods, instance calls and overloads work.

Introduction to Python: Core Concepts, Worked Trace and Exam Patterns
Build a reliable Python tracing method from names and types to loops and mutable lists. Follow one function across every iteration and check its exact output.

Greedy Algorithms for GATE CS: Concepts, Worked Examples, and Where Greedy Fails
Learn when a greedy choice is provably correct, trace Kruskal step by step, and use numeric counterexamples to see why the same idea fails for coin change and 0/1 knapsack.

Kotlin vs Java for JVM Applications: A Clear Trade-off Guide
Choose between Kotlin and Java using the same Ticket #42 service example, a migration checklist, and a scorecard whose winner changes when team priorities change.

C++ deque, list and forward_list: Choose the Right Non-Vector Container
Use one controlled sequence-editing workload to compare deque, list and forward_list. See where search cost, iterator validity and memory locality change the decision.

Unsupervised Learning and Clustering Explained: K-Means Worked Example and Exam Traps
Build intuition for unlabelled data, then follow k-means from assignment to updated centroids and SSE. Compare medoids, hierarchical clustering, DBSCAN and neural representations.