Skip to content

Instantly share code, notes, and snippets.

public class Jewel
{
public int Weight { get; set; }
public int Value { get; set; }
}
public static int KnapSack(int bagCapacity, List jewels)
{
var itemCount = jewels.Count;
using System;
using System.Collections.Generic;
using System.Linq;
//A* Search Pathfinding Example from : https://dotnetcoretutorials.com/2020/07/25/a-search-pathfinding-algorithm-in-c/
namespace PathfindingExample
{
class Program
{
static void Main(string[] args)