Giter VIP home page Giter VIP logo

30-days-of-code's Introduction

  1. Find the median of two sorted arrays.
  2. Given a list of items with values and weights, as well as a max weight, find the maximum value you can generate from items where the sum of the weights is less than the max.
  3. Given an array of integers where each value 1 <= x <= len(array), write a function that finds all the duplicates in the array.
  4. Given an unsorted array, find the length of the longest sequence of consecutive numbers in the array.
  5. Given a boolean matrix, update it so that if any cell is true, all the cells in that row and column are true.
  6. Given a directed graph, find the shortest path between two nodes if one exists.
  7. Given a list of array of N integers, Print the sums of all subset in it.
  8. Write a function that returns all permutations of a given list.
  9. Given a string s, find the length of the longest substring without repeating characters.
  10. Given a binary tree, where every node value is a Digit from 1-9 .Find the sum of all the numbers which are formed from root to leaf paths.
  11. Given an n x m array where all rows and columns are in sorted order, write a function to determine whether the array contains an element x.
  12. Given an unsorted array( A )of size N that contains only non-negative integers, find a continuous sub-array which adds to a given number S.
  13. Implement a binary tree with a method getRandomNode() that returns a random node.
  14. Given a linked list, write a function that prints the nodes of the list in reverse order.
  15. Given a binary tree, write a function to determine whether the tree is balanced.
  16. Given a stack, sort the elements in the stack using one additional stack.
  17. Given a linked list, determine whether it contains a cycle.
  18. Given an unsorted linked list, write a function to remove all the duplicates.
  19. Given a string, write a function to compress it by shortening every sequence of the same character to that character followed by the number of repetitions. If the compressed string is longer than the original, you should return the original string.
  20. Given two integers, write a function to determine whether or not their binary representations differ by a single bit.
  21. Given two strings, write a function that returns the longest common substring length.
  22. Implement priotity queue.
  23. Given an integer array nums that may contain duplicates, return all possible subsets.
  24. Robot bounded in circle.
  25. You are given an array of integers arr, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window moves right by one position. Return the max sliding window.
  26. Given a non-empty array of integers nums, every element appears twice except for one. Find that single one.
  27. Given a sorted array and a number x, find the pair in array whose sum is closest to x
  28. Given an m x n matrix, return all elements of the matrix in spiral order.
  29. Given a 2D integer array matrix, return the transpose of matrix.
  30. Given an unsorted integer array nums, return the smallest missing positive integer.

30-days-of-code's People

Contributors

payalpatra avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.