Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

University of California Irvine Leaderboard
NYU Tandon School of Engineering Leaderboard
University of Maryland Masters of Economics  Leaderboard
MAFI_728x90
Click here
University of California Irvine Leaderboard
MAFI_728x90
Click here
University of Maryland Masters of Economics Leaderboard
RPI Leaderboard
Brandeis University Master of Finance Leaderboard 728x90
Click here
  • 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++: Continuous Knapsack Problem

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

A robber burgles a butcher's shop, where he can select from some items. He knows the weights and prices of each items. Because he has a knapsack with

Continue Reading

C++: Move-To-Front Algorithm

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ PuzzlesTagged algorithm, array, move to front, movetofront
C++: Move-To-Front Algorithm

Given a symbol table of a zero-indexed array of all possible input symbols this algorithm reversibly transforms a sequence of input symbols into an ar

Continue Reading

C++: Mad Libs

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ PuzzlesTagged mad libs
C++: Mad Libs

Mad Libs is a phrasal template word game where one player prompts another for a list of words to substitute for blanks in a story, usually with funny

Continue Reading

C++: Empty Program

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged empty, program

In this task, the goal is to create the simplest possible program that is still considered "correct." int main(){} SOURCE Content is available un

Continue Reading

C++: Execute HQ9+

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged compiler, compilers, execute, interpreter, interpreters
C++: Execute HQ9+

Implement a HQ9+ interpreter or compiler. Basically the same as the C example, although this has been C++'ified with strings and streams. void

Continue Reading

C++: Execute Brain****

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged brain, brainf***, compiler, compilers, execute, interpreter, interpreters
C++: Execute Brain****

RCBF is a set of Brainf*** compilers and interpreters written for Rosetta Code in a variety of languages. Below are links to each of the versions o

Continue Reading

C++: 100 Doors Problem

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged 100, doors, problem
C++: 100 Doors Problem

Problem: You have 100 doors in a row that are all initially closed. You make 100 passes by the doors. The first time through, you visit every door and

Continue Reading

C++: Loop Over Multiple Arrays Simultaneously

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ PuzzlesTagged array, loop, multiple, over, s, simultaneously
C++: Loop Over Multiple Arrays Simultaneously

Loop over multiple arrays (or lists or tuples or whatever they're called in your language) and print the ith element of each. Use your language's "for

Continue Reading

C++: Find the Missing Permutation

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged find, missing, permutation, permutations, the
C++: Find the Missing Permutation

These are all of the permutations of the symbols A, B, C and D, except for one that's not listed. Find that missing permutation. (cf. Permutations)

Continue Reading

C++: Knight’s Tour

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ PuzzlesTagged chess, knight, knight's tour, s, tour

Problem: you have a standard 8x8 chessboard, empty but for a single knight on some square. Your task is to emit a series of legal knight moves that re

Continue Reading

Posts navigation

Older posts
Newer posts
output_8BgzjE
University of Maryland Masters of Economics Sideboard
University of California Irvine Leaderboard
Brandeis Business School
NYU Tandon School of Engineering Sideboard
Click here
University of Maryland Masters of Economics Sideboard
University of California Berkeley Master of Financial Engineering MFE Sideboard
  • 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