Skip to content

Post Import

Shadow
Recent News
  • Writing a Concurrent Queue
  • Writing a Concurrent Stack
  • Young’s Table
  • Why “OUTPUT THE ANSWER MODULO 10^9 + 7″?
  • Wilson’s theorem
  • Working with datetime module and timezones in Python
  • Writing a C program without a main()
  • void pointer in C
  • Want to make Rails hosting faster than ever?
  • What happens when you press a key on keyboard

Author: admin

admin

Writing a Concurrent Queue

March 25, 2021 by admin

In myprevious note, I discussed about writing a concurrent stack.In this post, I am going to describe writing a non-blocking queue using the Interlocked family of functions like my previous post. However, this time the implementation is in C# (Being an automatically…

No comment
Continue Reading

Young’s Table

March 25, 2021 by admin

A Young’s table is a mxn matrix such that the entries of each row are in sorted order from left to right and the entries in each column are in sorted order from top to bottom. Some of the elements in the…

No comment
Continue Reading

Writing a Concurrent Stack

March 25, 2021 by admin

The stack is one of the most basic data structures and also one of the most widely used. In this post, I am going to take a stab at writing a concurrent stack – one that may be mutated simultaneously by more…

No comment
Continue Reading

Why “OUTPUT THE ANSWER MODULO 10^9 + 7″?

March 25, 2021 by admin

You might have noticed that many programming problems ask you to output the answer “modulo 1000000007 (10^9 + 7)”. In this note I’m going to discuss what this means and the right way to deal with this type of questions. So, here…

No comment
Continue Reading

Working with datetime module and timezones in Python

March 25, 2021 by admin

I generally find Python a very versatile language that allows you to do a lot of things without having to expend a lot of effort. However I have run into some issues with the datetime module.For basic purpose the datetime module is…

No comment
Continue Reading

Writing a C program without a main()

March 25, 2021 by admin

This post is a simple example of deception. It shows how a programmer can defy the very important rule of having a main() in c program and still make the program run. This illustrates the concept on a simple program though it…

No comment
Continue Reading

Wilson’s theorem

March 25, 2021 by admin

In number theory, Wilson’s theorem states that a natural number n > 1 is a prime number if and only if((n-1)!) mod n =(n-1)That is, it asserts that the factorial (n – 1)! = 1 * 2 * 3 * ……………*(n –…

No comment
Continue Reading

What happens when you press a key on keyboard

March 25, 2021 by admin

Below step by step execution will happen when we pressed a key on the keyboard:-1) The keyboard sends a scan code of the key to the keyboard controller (Scan code for key pressed and key released is different)2) The keyboard controller interprets…

No comment
Continue Reading

Want to make Rails hosting faster than ever?

March 25, 2021 by admin

The gemzeusdoes exactly this.The commandrails serveroften takes too long to start up a simple WEBrick server. And in case something major changes in your application, you often have to restart the server.After installing the gem zeus, we can do all of this…

No comment
Continue Reading

void pointer in C

March 25, 2021 by admin

A void pointer is a pointer that has no associated data type with it. A void pointer can hold address of any type and can be typcasted to any type.int a = 10; char b = ‘x’; void *p = &a; //…

No comment
Continue Reading

Posts navigation

1 2 … 26 Next
42 Gears Logo

48521 Warm Springs Blvd, Suite 303 Fremont, CA 94539
United States
Call +1.424.284.2574
Email – sales@42gears.com

  • Twitter
  • LinkedIn
  • Facebook

Number Theory – III

October 15, 2015
No comment

Simple Data Encoding and Decoding in Python

August 24, 2015
No comment

Writing a Concurrent Stack

March 25, 2021
No comment

Detecting device details in PHP

April 28, 2015
No comment

How to configure a Private Cloud using Open Nebula

March 27, 2015
No comment
  • Young’s Table
  • Writing a Concurrent Stack
  • Writing a Concurrent Queue
  • Writing a C program without a main()
  • Working with datetime module and timezones in Python

Industries

Products

Copyright © 2022 Post Import - Powered By WordPress
Designed & Developed by Sparkle Themes

test

thanks