Giter Site home page Giter Site logo

Syed Ali Hassan's Projects

rootofnumber icon rootofnumber

Many times, we need to re-implement basic functions without using any standard library functions already implemented.

searchinsertposition-binarysearch icon searchinsertposition-binarysearch

Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.

sortbycolor icon sortbycolor

Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent

stackmin icon stackmin

Implement a min function in stack other than push and pop

strstr icon strstr

Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.

superbalanced-binarytree icon superbalanced-binarytree

A tree is "superbalanced" if the difference between the depths of any two leaf nodes ↴ is no greater than one.

swapnodesinpairs icon swapnodesinpairs

Given a linked list, swap every two adjacent nodes and return its head.

taskoptimization-sorting icon taskoptimization-sorting

You need to write a function, which computes the maximum number of tasks that can be completed within the given time T.

timeplanner-earliestcommontimeslot icon timeplanner-earliestcommontimeslot

Implement a function meetingPlanner that given the availability, slotsA and slotsB, of two people and a meeting duration dur, returns the earliest time slot that works for both of them and is of duration dur.

tree1-contains-tree2 icon tree1-contains-tree2

Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s.

urlify icon urlify

Write a method to replace all spaces in a string with '%20'.

validsudoku icon validsudoku

Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.

wordcountengine icon wordcountengine

Implement a document scanning function wordCountEngine, which receives a string document and returns a list of all unique words in it and their number of occurrences, sorted by the number of occurrences in a descending order.

wordladder icon wordladder

Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord, such that:

wordpattern icon wordpattern

Given a pattern and a string str, find if str follows the same pattern.

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.