Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Solves problems from EPI book (Dr. Adnan Aziz et all.)

NotificationsYou must be signed in to change notification settings

nawazish-github/elements-of-programming-interviews-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Solves problems from "Elements of Programming Interview" in Java (Adnan Aziz et all)

  • Merge Sorted Lists
  • Reverse LinkedList (iteratively)
  • Reverse sublist
  • Segregate even and odd nodes in a LinkedList (!EPI)
  • Detect Overlapping Lists
  • You are given two linked-lists representing two non-negative integers. The digits are stored in reverse order andeach of their nodes contain a single digit. Add the two numbers and return it as a linked list. (Microsoft)
  • Write a function to delete Kth node from behind in a single linked list

Dynamic Programming

  • Write a function that takes in an array of positive integers and returns an integer representing the maximumsum of non-adjacent elements in the array. If a sum cannot be generated, the function should return 0 (!EPI).

  • Given an array of positive integers representing coin denominations and a single non-negative integer representinga target amount of money, implement a function that returns the number of ways to make change for that targetamount using the given coin denominations. Note that an unlimited amount of coind is at your disposal.

  • Solve Levenshtein distance problem.

Tree

  • Solve a descendant tree to find the Youngest Common Ancestor given the root node, and two descendant nodes.

Recursion

  • Write a function to generate all permutations of a given array of elements
  • Write a function to generate Powerset of a given set. Two solutions: iterative and recursive

About

Solves problems from EPI book (Dr. Adnan Aziz et all.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp