• Search
  • Software Engineering Jobs
  • Interview Puzzles
  • Disclaimer and Privacy

Algorithms, Blockchain and Cloud

Menu
  • Archive
    • About This Blog
    • Source Code & Binaries
    • Tweets History
    • List of Comments
    • Hot Articles
  • Coding
    • Interview Questions
    • Python
    • C / C++
    • Delphi
    • C# (C Sharp)
    • Javascript
    • Php
    • Java
    • Database
    • WordPress
    • Machine Learning
    • Node.js
    • SQL
  • Linux
    • List of Online Tools
    • Script32
    • Processing Examples
    • Animation
    • List of Software (Freeware)
  • Forum
    • Forum – New Users / Login
    • Forum – Loss Password / Login
    • SEO, WordPress, Coding for the Web
    • Data Structure & Algorithms
    • Shell Scripting & Database
    • Programming Languages
    • How-Tos and Everything Else *
  • Algorithms
    • Dynamic Programming (DP)
    • Breadth First Search (BFS)
    • Depth First Search (DFS)
    • Greedy Algorithm
    • Project Euler
    • Teaching Kids Programming
  • Hardware
    • Microbit Programming
    • Raspberry PI
    • Computer Keyboard
    • VPS Database

Greedy Algorithm: What is the Best Time to Buy and Sell Stock?

April 8, 2016 algorithms, c / c++, greedy algorithm, math No Comments
Greedy Algorithm: What is the Best Time to Buy and Sell Stock?
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You …
[Continue Reading...]

How to Design a Stack with constant time in Push, Pop, Top, and GetMin ?

April 8, 2016 c / c++, data structure, leetcode online judge No Comments
How to Design a Stack with constant time in Push, Pop, Top, and GetMin ?
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. This is an data-structure problem that you would need to come up with …
[Continue Reading...]

C++ Coding Exercise – How to Find First Missing Number?

April 8, 2016 algorithms, c / c++, leetcode online judge, math No Comments
C++ Coding Exercise – How to Find First Missing Number?
For example, Given nums = return 2. Note: Your algorithm should run in linear runtime complexity. Could you implement it using only constant extra space complexity? How many solutions …
[Continue Reading...]

How to Reverse Bits for 32-bit Unsigned Integer in C/C++?

April 8, 2016 algorithms, bit hacks, c / c++, math 2 Comments
How to Reverse Bits for 32-bit Unsigned Integer in C/C++?
Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 00111001011110000010100101000000). Follow up: If …
[Continue Reading...]

C++ Coding Exercise – Majority Element

April 8, 2016 c / c++, leetcode online judge No Comments
C++ Coding Exercise – Majority Element
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the …
[Continue Reading...]

How to Check for Duplication in C++?

April 8, 2016 algorithms, c / c++, code, coding exercise, data structure, leetcode online judge No Comments
How to Check for Duplication in C++?
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it …
[Continue Reading...]

Posts pagination

Previous 1 … 416 417 418 419 420 421 422 … 572 Next
Vultr VPS $25 Free Credit
Free $25 credit when you sign up with Vultr Cloud VPS (10 Months Giveaway!)

Free $20 credit when you sign up with Linode Cloud VPS (4 Months Giveaway!) - (Promotional Code: PodcastInIt2018)
Free $10 credit when you sign up with DigitalOcean Cloud VPS (2 Months Giveaway!)
Free $10 credit when you sign up with Aliyun Cloud VPS (2 Months Giveaway!)

Get more promotion deals by using VPS Database and VPS Search Tool

Popular Posts

  • Bitcoin has reached All-Time-High 118K
    No Comments
  • Last Month’s Scam Experience on Telegram (NordVPN Impersonation)
    No Comments
  • How to Clean Up NVM Node Versions Except …
    No Comments
  • PHP7.x is deprecated by WordPress: Why You Should …
    No Comments
  • C++ Forward References: The Key to Perfect Forwarding
    No Comments
  • Understanding the LEA Instruction: A Powerful Tool for …
    No Comments

RSS Coding For Speed

  • AI coding assistants (Risks, Mitigation, Future and Insights)
  • Documentation is Your Secret Weapon
  • The Battle of Dev Philosophies ⚔️
This domain is hosted proudly on QuickHostUK & Namesilo Domain Vultr VPS $25 Credit
Free $25 credit when you sign up with Vultr Cloud VPS (10 Months Giveaway!)

Free $20 credit when you sign up with Linode Cloud VPS (4 Months Giveaway!) - (Promotional Code: podcastinit2018)
Free $10 credit when you sign up with DigitalOcean Cloud VPS (2 Months Giveaway!)
Free $10 credit when you sign up with Aliyun Cloud VPS (2 Months Giveaway!)

Get more promotion deals by using VPS Database and VPS Search Tool

Forums

  • Data Structure & Algorithms
  • How-Tos and Everything Else *
  • Programming Languages
  • SEO, WordPress, Coding for the Web
  • Shell Scripting & Database

Recent Topics

  • Facebook Interview
  • stack
  • Adsense Earning Report Nov/2016
  • Adsense Earning Report October/2016
  • Adsense Earning Report Sept/2016
  • Adsense Earning Report Aug/2016

Tag Cloud

acm algorithm algorithms bfs binary tree blockchain breadth first search algorithm bruteforce algorithm c++ C++ coding exercise C/C++ chrome extension code coding exercise data structure delphi depth first search algorithm dfs dynamic programming dynamic programming algorithm greedy algorithm hardware implementation java javascript linux math online judges php programming programming language python Python Programming recursion script shell steemit string algorithm Teaching Kids Programming tutorial Two pointer algorithm vbscript website wordpress Youtube Video
Algorithms, Blockchain and Cloud Copyright © 2026.
This Wordpress Theme is Schema
Donate me and I'll send you the schema theme
so it is a lot cheaper for you - win win situation! 
All rights Reserved © 2014~ 2026 | Uptime 5168 Days, 3430 Posts and 13 Pages, 849 comments
Highly Recommended: TopCashBack UK | Quidco CashBack UK | $2.5 Vultr Cloud VPS | $5 Linode Cloud VPS | $5 DO Cloud VPS | PlusNet Fibre | QuickHostUK | Namesilo Domain | Watch TV Online (Video Streaming) | Weibo & Miaopai Video Parser | Steem Tools | VPS Reviews | Popular Link Resources
Follow Us: Linkedin Page | Facebook Page | Twitter | Sites @ Github
Make Your Wordpress Fast Again! This Wordpress is accelerated by WP Rocket Plugin!