Skip to content

Proactive in Big Data Solutions

Harshit Jain

Harshit Jain

  • Java
    • Trapping Rain Water between Towers
    • JVM Architecture – Understanding JVM Internals
    • Memory Management In Java – Stack And Heap
    • Idempotent REST APIs
    • Minimum Absolute Difference Between Any Two Elements Of An Array
    • How To Find Type, Total Space, Free Space And Usable Space Of All Drives In Java?
    • Memoization in java
    • Writing Java 7 functions in Lambda form:
    • Disjoint a connected Graph by removing minimum edges.
    • Solid Principles in Java:
    • Java 8 Streams
    • Multithreading Interview Question & Answers
    • Core Java Tricky Interview Questions
    • Difference-between-shallow-copy-vs-deep-copy-in-java/
    • Various Forms of SimpleDateFormat
    • Double Brace Initialization
    • Best Practise to Override Equals Method of Object Class
    • Random Number with Seed
    • Java String intern()
    • String Pool Constant
    • JVM: Does the 32-Bit JVM or 64-Bit JVM Decision Matter Anymore?
    • Print Odd And Even Numbers By Two Threads In Java
    • Configuration to Create Java Project Jar with Dependencies
    • Java SynchronousQueue Examples
    • Solving Real Time Queries Using Java 8 Features -Employee Management System
    • Java 8 Collectors Tutorial
    • Java is Pass by Value and Not Pass by Reference
    • Simple Deadlock Program in Java
    • Best Time to Buy and Sell Stock
    • Find Moving Average of Last N numbers in a Stream.
    • Authentication and Authorization in Microservices
  • Scala
    • Scala : Get Start with
    • Implicit keyword in SCALA:
    • Closures in Scala
    • Currying Functions in Scala
    • Basic Scala Interview Questions and Answers
    • Intermediate Scala Interview Questions and Answers
    • Null, null, Nil, Nothing, None, and Unit in Scala
  • Spark
    • Spark Performance Tuning
    • Big Data File Formats
    • A comparison between RDD, DataFrame and Dataset in Spark
    • groupByKey vs reduceByKey vs aggregateByKey in Apache Spark/Scala
    • Pivot and Unpivot a Spark DataFrame
    • Spark SQL functions lit() and typedLit()
    • Spark Word Count Example Using Hadoop as File Store
  • Sorting
    • Bubble Sort
    • Selection Sort
    • Insertion Sort
    • Merge Sort
    • Quick Sort
    • Sorting
    • RADIX SORT
    • Big O Notation and Time Complexity of Algorithm
    • Heap Sort
  • SQL
    • SQL Indexing
    • PostgreSQL: How To Delete Duplicate Rows in PostgreSQL
    • PostgreSQL: Common Table Expressions or CTEs:
    • PostgreSQL: Compare Two Tables in PostgreSQL
    • PostgreSQL: Self-Join:
    • PostgreSQL: How to Generate a Random Number in a Range
    • PostgreSQL: NULLIF function:
    • PostgreSQL: COALESCE function:

Find Moving Average of Last N numbers in a Stream.

August 21, 2019August 21, 2019 by HARHSIT JAIN, posted in JAVA

Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window.

Tagged Dynamic Programming, JAVALeave a comment

Trapping Rain Water between Towers

August 21, 2019 by HARHSIT JAIN, posted in JAVA

How Much Water Can A Bar Graph Hold?

Tagged Dynamic Programming, JAVA2 Comments

Closures in Scala

August 14, 2019August 21, 2019 by HARHSIT JAIN, posted in Scala

Function depends on a free variable.

Tagged Closures, ScalaLeave a comment

Currying Functions in Scala

August 13, 2019August 21, 2019 by HARHSIT JAIN, posted in Scala

Converting multiple argument function into single argument function.

Tagged Currying, ScalaLeave a comment

Implicit keyword in SCALA:

August 13, 2019August 21, 2019 by HARHSIT JAIN, posted in Scala

Implicit val, var or def

Tagged Implicit, ScalaLeave a comment

Memory Management In Java – Stack And Heap

August 11, 2019 by HARHSIT JAIN, posted in JAVA

Java Memory Management - Stack & Heap.

Tagged Heap Memory, JAVA, Memory, Memory Management, Stack MemoryLeave a comment

How To Find Type, Total Space, Free Space And Usable Space Of All Drives In Java?

August 10, 2019August 10, 2019 by HARHSIT JAIN, posted in JAVA

Drive Details

Tagged JAVALeave a comment

Minimum Absolute Difference Between Any Two Elements Of An Array

August 10, 2019 by HARHSIT JAIN, posted in JAVA

Absolute value means signs are ignored, only value is considered.

Tagged JAVALeave a comment

Java 8 Collectors Tutorial

August 9, 2019 by HARHSIT JAIN, posted in JAVA, JAVA 8, Streams

Java 8 Collectors tutorials - Stream.collect(), Collector interface and Collectors class

Tagged JAVA, JAVA8, StreamsLeave a comment

Print Odd And Even Numbers By Two Threads In Java

August 8, 2019 by HARHSIT JAIN, posted in JAVA, Multithreading

Odd And Even Numbers By Two Threads Java Program.

Tagged JAVA, Multithreading1 Comment

JVM: Does the 32-Bit JVM or 64-Bit JVM Decision Matter Anymore?

July 24, 2019August 27, 2019 by HARHSIT JAIN, posted in JAVA

Yes. 32-Bit JVM or 64-Bit JVM Decision Matters.

Leave a comment

Scala : Get Start with

July 16, 2019August 25, 2019 by HARHSIT JAIN, posted in Scala

Getting started with SCALA

Tagged ScalaLeave a comment

Posts navigation

Older posts
Newer posts

Categories

Recent Posts

  • Java 8 interview questions & answers January 16, 2022
  • SPARK: Coalesce VS Repartition October 15, 2019
  • Pivot and Unpivot a Spark DataFrame September 27, 2019
  • Spark SQL functions lit() and typedLit() September 26, 2019
  • Spark Performance Tuning September 10, 2019

Archives

Contact

+91 9773270975
Follow Harshit Jain on WordPress.com

Translate

Java & Big Data Interview Notes

Java & Big Data Interview Notes

Follow Us

  • LinkedIn
Create a website or blog at WordPress.com
Harshit Jain
Create a website or blog at WordPress.com
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Harshit Jain
    • Already have a WordPress.com account? Log in now.
    • Harshit Jain
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    Design a site like this with WordPress.com
    Get started