Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

University of Maryland Masters of Economics Leaderboard
Click here
University of Maryland Masters of Economics  Leaderboard
University of California Irvine Leaderboard
Click here
NYU Tandon School of Engineering Leaderboard
Click here
MAFI_728x90
University of California Irvine Leaderboard
MAFI_728x90
RPI Leaderboard
Brandeis University Master of Finance Leaderboard 728x90
  • Business
  • Culture
    • Beer Guide
    • Cheese Guide
    • Cigar Guide
    • Coffee Guide
    • Wine Guide
  • Technology
  • International Rankings
    • Bangladesh
    • Canada
    • Egypt
    • India
    • Nigeria
    • Pakistan
    • Philippines
    • United Kingdom
    • United States of America
  • Masters Rankings
    • Accounting
    • Business Analytics
    • Chiropractic
    • Computer Engineering
    • Computer Science
    • Economics
    • Education
    • Finance
    • Financial Economics
    • Financial Engineering
    • Law
    • Management
    • Marketing
    • MBA
    • Nursing
    • Social Work
  • Resources
    • C++
      • Beginner’s Guide to C++
      • An Introduction to the Imperative Part of C++
      • C++ Code
        • Sorts
        • Binary Search Trees
        • Strings
        • Binary Search
        • Math
        • Quant
        • Puzzles/Games
        • Language Concepts
        • Graphics
        • OS Operations
        • Graphs
      • C++ Full Course
      • C++ Crash Course
      • C++ Interview Questions
      • C++ Q/A
      • C++ Books
      • C++ Free Books
      • C++ Videos
    • C Questions
    • C Programming Tips
    • Java Questions
    • Quant Data Sources
    • Quant Questions
  • WSET
    • WSET Level 1 Beer
    • WSET Level 2 Beer
    • WSET Level 1 Sake
    • WSET Level 2 Sake
    • WSET Level 3 Sake
    • WSET Level 1 Spirits
    • WSET Level 2 Spirits
    • WSET Level 3 Spirits
    • WSET Level 1 Wine
    • WSET Level 2 Wine
    • WSET Level 3 Wine
    • WSET Level 4 Wine

Category: C++ Puzzles

C++: Luhn Test of Credit Card Numbers

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ PuzzlesTagged Credit card, luhn test, numbers, of
C++: Luhn Test of Credit Card Numbers

The Luhn test is used by some credit card companies to distinguish valid credit card numbers from what could be a random selection of digits. Those

Continue Reading

C++: Dining Philosophers

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged dining, philosophers, problem, semaphores

The dining philosophers problem illustrates non-composability of low-level synchronization primitives like semaphores. It is a modification of a probl

Continue Reading

C++: Input/Output for Pairs of Numbers

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged file reading, for, input, numbers, of, output, pairs
C++: Input/Output for Pairs of Numbers

From lines of input starting with a line containing the numbers of pairs to follows, followed by that number of pairs of integers separated by a space

Continue Reading

C++: LZW Compression

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ PuzzlesTagged compression, lzw, lzw algorithm
C++: LZW Compression

The Lempel-Ziv-Welch (LZW) algorithm provides lossless data compression. You can read a complete description of it in the Wikipedia article on the sub

Continue Reading

C++: Floyd’s Triangle

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged floyd's triangle, natural numbers
C++: Floyd’s Triangle

Floyd's triangle lists the natural numbers in a right triangle aligned to the left where the first row is just 1 successive rows start towards

Continue Reading

C++: Balanced Brackets

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged balanced, brackets
C++: Balanced Brackets

Task: Generate a string with N opening brackets (“[”) and N closing brackets (“]”), in some arbitrary order. Determine whether the gen

Continue Reading

C++: Generate Chess960 Starting Position

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged 960, bobby fisher, chess, chess960, generate, position, starting
C++: Generate Chess960 Starting Position

Chess960 is a variant of chess created by world champion Bobby Fisher. Unlike other variants of the game, Chess960 does not require a different materi

Continue Reading

C++: Knuth’s Algorithm S

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ PuzzlesTagged algorithm, algorithm s, knuths, s
C++: Knuth’s Algorithm S

This is a method of randomly sampling n items from a set of M items, with equal probability; where M >= n and M, the number of items is unknown unt

Continue Reading

C++: Knapsack Problem

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ PuzzlesTagged knapsack, knapsack problem, problem
C++: Knapsack Problem

A tourist wants to make a good trip at the weekend with his friends. They will go to the mountains to see the wonders of nature, so he needs to pack w

Continue Reading

C++: Box the Compass

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged box, compass, the
C++: Box the Compass

Avast me hearties! There be many a land lubber that knows naught of the pirate ways and gives direction by degree! They know not how to box the com

Continue Reading

Posts navigation

Older posts
Newer posts
University of California Berkeley Master of Financial Engineering MFE Sideboard
output_8BgzjE
University of Maryland Masters of Economics Sideboard
Brandeis Business School
NYU Tandon School of Engineering Sideboard
Click here
University of Maryland Masters of Economics Sideboard
University of California Irvine Leaderboard
  • Illustrated history cover for the Atlanta Falcons

    History of the Atlanta Falcons: From Atlanta’s Expansion Years to Two Super Bowl Runs and Reinvention

    November 23, 2026October 17, 2026 by TFE Times
  • Original illustration of three fictional unbranded cars: an ochre city hatchback, a pale blue sedan and a dark green wagon on an ivory background.

    What Is an Automobile? A Beginner’s Guide

    November 23, 2026November 21, 2026 by TFE Times
  • Copper jigger, spring-coil strainer and twisted bar spoon beside glassware, ice and a lemon twist on a dark plum shelf.

    Common Cocktail Terms Explained

    November 23, 2026October 25, 2026 by TFE Times
  • Two conceptual snow trays compare a narrow curved edge track with a broad brushed track.

    Carving vs. Skidding: What’s the Difference?

    November 22, 2026October 26, 2026 by TFE Times
  • Week 13 college football power rankings with helmets for No. 1 Georgia, No. 2 Utah, No. 3 Notre Dame, No. 4 Miami, and No. 5 Texas.

    2026 College Football Power Rankings — Week 13: Georgia Stays No. 1 as Miami and Texas Rise

    November 22, 2026 by TFE Times
  • Conceptual architectural model of a fictional courtyard framed by a terracotta arcade, a timber reading pavilion, and a pale stone building.

    What Is Architecture? A Beginner’s Guide

    November 22, 2026November 22, 2026 by TFE Times
  • The History of the 0-Iron: Golf’s Most Extreme Club

    November 22, 2026November 21, 2026 by TFE Times
  • Best Restaurants in Phoenix: 15 Standout Places to Eat — illustrative editorial food collage

    Best Restaurants in Phoenix: 15 Standout Places to Eat

    November 22, 2026October 17, 2026 by TFE Times
  • Narrow paired curved ski tracks beside a broader brushed turn mark in sunlit snow.

    Skidded Turns vs. Carved Turns: What’s the Difference?

    November 22, 2026November 22, 2026 by TFE Times
  • How to Read a Social Casino Coin Package Like a Price Sheet

    November 22, 2026 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes