r/codinginterview • • Aug 06 '20

Insertion Sort - Sorting Algorithms Series (Episode 2)

Thumbnail
youtu.be
2 Upvotes

r/codinginterview • • Aug 02 '20

Words Concatenation

Thumbnail
youtu.be
2 Upvotes

r/codinginterview • • Jul 29 '20

Parentheses Checker. Medium level Coding problem. Hope this will be helpful to someone.

Thumbnail
youtu.be
2 Upvotes

r/codinginterview • • Jul 28 '20

Longest Substring with Same Letters after Replacement

Thumbnail
youtu.be
2 Upvotes

r/codinginterview • • Jul 25 '20

Join the Live Leetcode Coding Today at 4 pm EST

Thumbnail
us02web.zoom.us
2 Upvotes

r/codinginterview • • Jul 13 '20

Problem Definition Phase

2 Upvotes

It is critical to define the problem and devise requirements. I have created a document that illustrates how you can define a problem: https://drive.google.com/file/d/1SqO7q5F-9s0wX1a8LrWjZjhxw_0hJCD4/view?usp=sharing Any feedback is welcome.


r/codinginterview • • Jul 02 '20

First Recurring Letter using Recursion

Thumbnail
youtu.be
2 Upvotes

r/codinginterview • • Jun 27 '20

Can someone please recommend a Java Beginners Book/resource for me that covers all the fundamentals? Thanks.

2 Upvotes

r/codinginterview • • Jun 12 '20

Square a Number using Recursion

Thumbnail
youtu.be
2 Upvotes

r/codinginterview • • Jun 08 '20

Base Conversion - Decimal to Binary using Recursion

Thumbnail
youtu.be
2 Upvotes

r/codinginterview • • May 31 '20

Insert Operation in BST using Recursion

2 Upvotes
  • Introduction

  • Interface

  • Size of the problem

  • Base case

  • Code

https://youtu.be/cnGXHsQWvXA


r/codinginterview • • May 31 '20

Why You Must Learn Prefix Sum Algorithm? | Need of prefix-sum Algorithm | EP1

2 Upvotes

This tutorial ranked number 1 on Google and YouTube.so thought of sharing with you all.

If you are a competitive programmer or preparing for competitive programming or solve coding problems online then you would have come across one algorithm called prefix sum.But most of people do know the benefit of this algorithm.

Here is the tutorial which explains why you must know prefix-sum algorithm.
https://youtu.be/scD312I7kkE

#tutorial #coding #programming #learntocode #algorithm #prefixsum #competitiveprogramming


r/codinginterview • • May 30 '20

Searching in a Binary Search Tree

2 Upvotes
  • Introduction - Covers the basic concepts of a Binary Search Tree

  • Implement search using recursion

  • Size of the problem

  • Base cases

  • Problem decomposition

  • Recursive cases

  • Recursive solution

  • Time complexity

https://youtu.be/Ro85XgWa1GY


r/codinginterview • • May 28 '20

Tree traversals using Recursion

2 Upvotes
  • How to decompose the tree traversal problem?

  • How to find the base case and the recursive cases?

  • How to traverse a binary search tree inorder, postorder and preorder?

https://youtu.be/u0yDUXsYq9g


r/codinginterview • • May 27 '20

Binary Search using Recursion

2 Upvotes
  • Binary Search Explanation

  • Problem decomposition

  • Base cases

  • Time complexity of binary search

  • Walkthrough of the code (method parameters, base cases and recursive cases)

https://youtu.be/1X4GrzAqhzU


r/codinginterview • • May 23 '20

Equal Strings using Recursion

2 Upvotes
  • Interface (input and output)

  • Base case

  • Size of the problem

  • Linear recursive algorithm

  • Recursion diagram

  • Problem decomposition

  • Boolean function

  • Recursive solution

  • Tail recursive algorithm

  • Short circuit evaluation

  • Recursion diagram

  • Comparison of linear and recursive solution

https://youtu.be/jIIghpILhXs


r/codinginterview • • May 22 '20

Contains Digit using Recursion

2 Upvotes
  • Problem Statement

  • Program interface

  • Assumption on input

  • Linear recursive algorithm

  • Recursion diagram

  • Tail recursive algorithm

  • Short circuit evaluation

  • Relationship between base cases and recursive case

  • One base case vs Two base cases

  • Time complexity

  • Similar problem

https://youtu.be/iVPYG5CsCFY


r/codinginterview • • May 15 '20

DP == Optimization of repeated sub problems.

2 Upvotes

How to identify every DP problem.

  1. Check if greedy (Choosing an optimal decision at every step) works for the problems. If not

  2. Draw the recursive brute force solution of a problem and Identify the repeated sub problem.

  3. Decide whether to use a 1D array or a 2D to memoize the repeated sub problems results.

Every DP problem can be identified using above cardinal rules. DP problems are easiest to decipher.


r/codinginterview • • May 14 '20

Golang REST API With Mux #4 | Build an Inventory System, FAST!

Thumbnail
youtu.be
2 Upvotes

r/codinginterview • • May 14 '20

Power Function using Recursion

2 Upvotes
  • Powers of 2 (warmup)

  • Exponentiation operator

  • Implement without using exponentiation operator

  • Iterative solution

  • Product accumulator

  • Powers of a given base

  • Recursive implementation in linear time

  • Size of the problem

  • Base cases

  • Reduce and combine

  • Allow negative integer exponents

  • Problem decomposition

  • Recursive case

  • Relationship between reduction step and base case

  • Function to express recursive case

  • Multiple recursive cases

  • Powers in logarithmic time

  • Handling multiple cases and its effect on recursion diagram

  • Recursive function with multiple recursive cases

  • Direct translation of mathematical function to code

https://www.youtube.com/watch?v=66eNlUxLK6s&feature=share


r/codinginterview • • May 13 '20

Even Number using Recursion

2 Upvotes
  • Implement iteratively without using % operator

  • Time and space complexity

    • Iterative Solution

    • Using multiply and divide

  • Recursion diagram

  • Recursive solution

  • Fixing stack overflow error

  • Reduction step

  • Trivial combine step

  • Tail recursion

  • Two base cases

  • How many base cases are required?

  • Time and space complexity

  • Linear recursion

https://www.youtube.com/watch?v=P-mP_VWKuUI&feature=share


r/codinginterview • • May 12 '20

Remainder using Recursion

2 Upvotes
  • Deriving equation to solve a problem

  • Time complexity for equation based implementation

  • Solving the problem by hand (brute force)

  • Solving the problem by translating manual steps to iterative code

  • Recognizing nothing to be done in combine step using recursion diagram

  • Trivial combine step in recursion leads to tail recursion

  • Comparison of iterative and recursive solution to see how terminating condition maps to base case, result and reduced value are the same in this case

Modulo using Recursion


r/codinginterview • • May 06 '20

Which is the most challenging topic to master for coding interview preparation?

2 Upvotes

If other, please mention the topic in the comments.

38 votes, May 13 '20
28 Recursion and Dynamic Programming
3 Tree and Graph Algorithms
1 Sorting and Searching
3 Runtime Analysis and Performance Optimization
3 Greedy Algorithms
0 Other

r/codinginterview • • May 04 '20

Division using Recursion

2 Upvotes

Implement division without using / operator using recursion. The outline for the lesson:

  • Using a counter

  • How to create a trace table

  • Concrete case analysis using recursion diagram

  • Reducing the problem size by more than one unit

  • Recognize implicit counter in recursive code

Solution with diagrams: https://www.rubyplus.net/2020/05/division-using-recursion.html


r/codinginterview • • Apr 30 '20

Preparing for Coding Interviews Be Like ! Ft. Leetcode

Thumbnail
youtu.be
2 Upvotes