Skip to content
CodeMarvels
All's the Code !
  • Home
  • Privacy Policy
  • About

Tag: code

Algorithms

Largest Sum Contiguous Subarray

Posted on July 7, 2013 by saurabh / 1 Comment

We have a sequence of integers and we need the maximum sum from the continuous sub-sequences. Example- Let the sequence of integers be (3,-4,5,-7,8,-6,21,-14,-9...

Algorithms

Subarray with given sum

Posted on July 7, 2013 by saurabh / 0 Comment

Given a list of integers,our task is to find if a sub-sequence which adds to a given number exists or not. Example- The given list is (1,4,20,5,5) and the given...

Algorithms

Binary Search

Posted on July 5, 2013 by saurabh / 0 Comment

This is a short note on using binary search, in continuance of my series on Algorithms. Suppose we have to find whether a particular element exists in the sorte...

Algorithms

Best Code to find n to the power k(n^k)

Posted on July 4, 2013 by saurabh / 0 Comment

To find n^k,using brute force, ALGORITHM- Initialize result to 1. Iterate from 1 to k and multiply n to result. Return result. CODE- result=1; for(i=1;i<=k;i...

Algorithms

Tips & Tweaks when programming Math !

Posted on July 4, 2013 by saurabh / 0 Comment

In this post,I am going to tell you some tips and tricks which you should know & you can implement in your codes if required.You dont need to require long c...

Posts navigation

« Previous 1 2 3

Categories

  • Algorithms
  • Android Development
  • BoshServlet
  • C++ projects
  • Code Philosophies
  • Conversational AI
  • Machine Learning
  • Miscellaneous
  • Notes
  • Society
  • Technology
  • Tutorial / Run-book
  • Uncategorized

Recent Posts

  • SSH without running .bashrc
  • Migrate data from one Cassandra server to another using medusa
  • A JS assistant to remind us to exercise during WFH days
  • Flush DNS cache in Ubuntu 20.xx and above
  • Change the datacenter set in cassandra-rackdc on Ubuntu

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2022 CodeMarvels
Powered by WordPress | Theme: Graphy by Themegraphy