Open in app
Home
Notifications
Lists
Stories

Write
Pankaj Jhawar
Pankaj Jhawar

Home

Apr 7, 2020

JAVA Type Casting and Overflows

These are some of the concepts we often tend to overlook and do not bother much about. Unknowingly, we can introduce serious bugs in the code. Also, most of the competitive programming challenges will always have some of the test cases judging the candidate's knowledge of these concepts. Examples are…

Type Casting

3 min read


Apr 7, 2020

Thinking the Divide and Conquer Way (Counting Inversions)

Let's start with a problem to understand this great algorithmic technique to solve problems recursively. Consider the famous reverse pair problem: Given an array A on size N, you need to find the number of ordered pairs (i,j) such that i<j and A[i]>A[j]. Sample Input: N = 5 A[i]: 1 4…

Divide And Conquer

3 min read

Thinking the Divide and Conquer Way (Counting Inversions)
Thinking the Divide and Conquer Way (Counting Inversions)
Pankaj Jhawar

Pankaj Jhawar

Following
  • Eugenio Culurciello

    Eugenio Culurciello

  • Priya Dwivedi

    Priya Dwivedi

  • Divya Godayal

    Divya Godayal

  • Sameer Gulati

    Sameer Gulati

  • Prathap Manohar Joshi

    Prathap Manohar Joshi

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable